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 | f739fa8541804b5f89a2ed9a448e03616381d610 (patch) | |
tree | 4c087c687a341aac872fb0d3d90cc69748f3c4e4 /llvm/lib/CodeGen/RegAlloc | |
parent | c0b4c7bc3296cf7dd5be9392800b855ceb48c44d (diff) | |
download | bcm5719-llvm-f739fa8541804b5f89a2ed9a448e03616381d610.tar.gz bcm5719-llvm-f739fa8541804b5f89a2ed9a448e03616381d610.zip |
s/Method/Function
llvm-svn: 2180
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc')
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/RegClass.h | 15 |
2 files changed, 10 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h index ce922985871..a38197191b1 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/llvm/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/llvm/lib/CodeGen/RegAlloc/RegClass.h b/llvm/lib/CodeGen/RegAlloc/RegClass.h index 1e5f5513725..3db72b73639 100644 --- a/llvm/lib/CodeGen/RegAlloc/RegClass.h +++ b/llvm/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; } |