llvm.org GIT mirror llvm / 8474f6f
Move getAnalysisUsage method from header to .cpp file. Add a normal file header comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8679 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
4 changed file(s) with 44 addition(s) and 42 deletion(s). Raw diff Collapse all Expand all
4141 FunctionPass *getRegisterAllocator(TargetMachine &T) {
4242 return new PhyRegAlloc (T);
4343 }
44
45 void PhyRegAlloc::getAnalysisUsage(AnalysisUsage &AU) const {
46 AU.addRequired ();
47 AU.addRequired ();
48 }
49
4450
4551
4652 //----------------------------------------------------------------------------
None /* Title: PhyRegAlloc.h -*- C++ -*-
1 Author: Ruchira Sasanka
2 Date: Aug 20, 01
3 Purpose: This is the main entry point for register allocation.
4
5 Notes:
6 =====
7
8 * RegisterClasses: Each RegClass accepts a
9 TargetRegClass which contains machine specific info about that register
10 class. The code in the RegClass is machine independent and they use
11 access functions in the TargetRegClass object passed into it to get
12 machine specific info.
13
14 * Machine dependent work: All parts of the register coloring algorithm
15 except coloring of an individual node are machine independent.
16 */
0 //===-- PhyRegAlloc.h - Graph Coloring Register Allocator -------*- c++ -*-===//
1 //
2 // This is the main entry point for register allocation.
3 //
4 // Notes:
5 // * RegisterClasses: Each RegClass accepts a
6 // TargetRegClass which contains machine specific info about that register
7 // class. The code in the RegClass is machine independent and they use
8 // access functions in the TargetRegClass object passed into it to get
9 // machine specific info.
10 //
11 // * Machine dependent work: All parts of the register coloring algorithm
12 // except coloring of an individual node are machine independent.
13 //
14 //===----------------------------------------------------------------------===//
1715
1816 #ifndef PHYREGALLOC_H
1917 #define PHYREGALLOC_H
9088 ///
9189 virtual bool runOnFunction (Function &F);
9290
93 virtual void getAnalysisUsage (AnalysisUsage &AU) const {
94 AU.addRequired ();
95 AU.addRequired ();
96 }
91 virtual void getAnalysisUsage (AnalysisUsage &AU) const;
9792
9893 const char *getPassName () const {
9994 return "Traditional graph-coloring reg. allocator";
4141 FunctionPass *getRegisterAllocator(TargetMachine &T) {
4242 return new PhyRegAlloc (T);
4343 }
44
45 void PhyRegAlloc::getAnalysisUsage(AnalysisUsage &AU) const {
46 AU.addRequired ();
47 AU.addRequired ();
48 }
49
4450
4551
4652 //----------------------------------------------------------------------------
None /* Title: PhyRegAlloc.h -*- C++ -*-
1 Author: Ruchira Sasanka
2 Date: Aug 20, 01
3 Purpose: This is the main entry point for register allocation.
4
5 Notes:
6 =====
7
8 * RegisterClasses: Each RegClass accepts a
9 TargetRegClass which contains machine specific info about that register
10 class. The code in the RegClass is machine independent and they use
11 access functions in the TargetRegClass object passed into it to get
12 machine specific info.
13
14 * Machine dependent work: All parts of the register coloring algorithm
15 except coloring of an individual node are machine independent.
16 */
0 //===-- PhyRegAlloc.h - Graph Coloring Register Allocator -------*- c++ -*-===//
1 //
2 // This is the main entry point for register allocation.
3 //
4 // Notes:
5 // * RegisterClasses: Each RegClass accepts a
6 // TargetRegClass which contains machine specific info about that register
7 // class. The code in the RegClass is machine independent and they use
8 // access functions in the TargetRegClass object passed into it to get
9 // machine specific info.
10 //
11 // * Machine dependent work: All parts of the register coloring algorithm
12 // except coloring of an individual node are machine independent.
13 //
14 //===----------------------------------------------------------------------===//
1715
1816 #ifndef PHYREGALLOC_H
1917 #define PHYREGALLOC_H
9088 ///
9189 virtual bool runOnFunction (Function &F);
9290
93 virtual void getAnalysisUsage (AnalysisUsage &AU) const {
94 AU.addRequired ();
95 AU.addRequired ();
96 }
91 virtual void getAnalysisUsage (AnalysisUsage &AU) const;
9792
9893 const char *getPassName () const {
9994 return "Traditional graph-coloring reg. allocator";