llvm.org GIT mirror llvm / 9826bdb
Factory methods for FunctionPasses now return type FunctionPass *. Correct one of the functions' comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7816 91177308-0d34-0410-b5e6-96231b3b80d8 Brian Gaeke 17 years ago
1 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
99
1010 #include
1111 class TargetMachine;
12 class Pass;
12 class FunctionPass;
1313
1414 /// createX86SimpleInstructionSelector - This pass converts an LLVM function
1515 /// into a machine code representation in a very simple peep-hole fashion. The
1616 /// generated code sucks but the implementation is nice and simple.
1717 ///
18 Pass *createX86SimpleInstructionSelector(TargetMachine &TM);
18 FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
1919
2020 /// createX86PatternInstructionSelector - This pass converts an LLVM function
2121 /// into a machine code representation using pattern matching and a machine
2222 /// description file.
2323 ///
24 Pass *createX86PatternInstructionSelector(TargetMachine &TM);
24 FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM);
2525
2626 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
2727 /// optimizations.
2828 ///
29 Pass *createX86PeepholeOptimizerPass();
29 FunctionPass *createX86PeepholeOptimizerPass();
3030
3131 /// createX86FloatingPointStackifierPass - This function returns a pass which
3232 /// converts floating point register references and pseudo instructions into
3333 /// floating point stack references and physical instructions.
3434 ///
35 Pass *createX86FloatingPointStackifierPass();
35 FunctionPass *createX86FloatingPointStackifierPass();
3636
3737 /// createX86CodePrinterPass - Returns a pass that prints the X86
3838 /// assembly code for a MachineFunction to the given output stream,
3939 /// using the given target machine description. This should work
4040 /// regardless of whether the function is in SSA form.
4141 ///
42 Pass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm);
42 FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
4343
44 /// X86EmitCodeToMemory - This function converts a register allocated function
45 /// into raw machine code in a dynamically allocated chunk of memory. A pointer
46 /// to the start of the function is returned.
44 /// createX86EmitCodeToMemory - Returns a pass that converts a register
45 /// allocated function into raw machine code in a dynamically
46 /// allocated chunk of memory.
4747 ///
48 Pass *createEmitX86CodeToMemory();
48 FunctionPass *createEmitX86CodeToMemory();
4949
5050 // Defines symbolic names for X86 registers. This defines a mapping from
5151 // register name to register number.