diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:57 +0000 |
| commit | b7653df0853f06112b741be09f1b7ae5a6aa6fde (patch) | |
| tree | a1e93978838a2c98fa8e3e1293d25055952c975b /lib/CodeGen | |
| parent | 75cf7cf00d391ac6ca22d6240fa9d99ed427d1d5 (diff) | |
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/InstrSched/InstrScheduling.cpp | 4 | ||||
| -rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 | ||||
| -rw-r--r-- | lib/CodeGen/RegAlloc/RegClass.h | 15 |
4 files changed, 13 insertions, 14 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index 31eca3903b..69813c744e 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -1504,13 +1504,13 @@ namespace { Destroyed.push_back(MethodLiveVarInfo::ID); } - bool runOnMethod(Method *M); + bool runOnMethod(Function *F); }; } // end anonymous namespace bool -InstructionSchedulingWithSSA::runOnMethod(Method *M) +InstructionSchedulingWithSSA::runOnMethod(Function *M) { if (SchedDebugLevel == Sched_Disable) return false; diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index 810692f7ba..02e50c0cc7 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -25,7 +25,7 @@ #include <iostream> using std::cerr; -SchedPriorities::SchedPriorities(const Method *method, const SchedGraph *G, +SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G, MethodLiveVarInfo &LVI) : curTime(0), graph(G), methodLiveVarInfo(LVI), nodeDelayVec(G->getNumNodes(), INVALID_LATENCY), // make errors obvious diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index ce92298587..a38197191b 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -62,7 +62,7 @@ typedef std::hash_map<const MachineInstr *, AddedInstrns *> AddedInstrMapType; //---------------------------------------------------------------------------- // class PhyRegAlloc: // Main class the register allocator. Call allocateRegisters() to allocate -// registers for a Method. +// registers for a Function. //---------------------------------------------------------------------------- @@ -70,7 +70,7 @@ class PhyRegAlloc: public NonCopyable { std::vector<RegClass *> RegClassList; // vector of register classes const TargetMachine &TM; // target machine - const Method* Meth; // name of the method we work on + const Function *Meth; // name of the function we work on MachineCodeForMethod &mcInfo; // descriptor for method's native code MethodLiveVarInfo *const LVI; // LV information for this method // (already computed for BBs) @@ -85,7 +85,7 @@ class PhyRegAlloc: public NonCopyable { // currently not used public: - PhyRegAlloc(Method *M, const TargetMachine& TM, MethodLiveVarInfo *Lvi, + PhyRegAlloc(Function *F, const TargetMachine& TM, MethodLiveVarInfo *Lvi, cfg::LoopInfo *LoopDepthCalc); ~PhyRegAlloc(); diff --git a/lib/CodeGen/RegAlloc/RegClass.h b/lib/CodeGen/RegAlloc/RegClass.h index 1e5f551372..3db72b7363 100644 --- a/lib/CodeGen/RegAlloc/RegClass.h +++ b/lib/CodeGen/RegAlloc/RegClass.h @@ -36,7 +36,7 @@ typedef std::vector<unsigned> ReservedColorListType; // //----------------------------------------------------------------------------- class RegClass { - const Method *const Meth; // Method we are working on + const Function *const Meth; // Function we are working on const MachineRegClassInfo *const MRC; // corresponding MRC const unsigned RegClassID; // my int ID @@ -47,7 +47,7 @@ class RegClass { const ReservedColorListType *const ReservedColorList; // // for passing registers that are pre-allocated and cannot be used by the - // register allocator for this method. + // register allocator for this function. bool *IsColorUsedArr; // @@ -69,14 +69,13 @@ class RegClass { public: - RegClass(const Method *const M, - const MachineRegClassInfo *const MRC, - const ReservedColorListType *const RCL = NULL); + RegClass(const Function *M, + const MachineRegClassInfo *MRC, + const ReservedColorListType *RCL = 0); - ~RegClass() { delete[] IsColorUsedArr; }; + ~RegClass() { delete[] IsColorUsedArr; } - inline void createInterferenceGraph() - { IG.createGraph(); } + inline void createInterferenceGraph() { IG.createGraph(); } inline InterferenceGraph &getIG() { return IG; } |
