Expose instruction selection as a pass instead of a global function

llvm-svn: 3145
This commit is contained in:
Chris Lattner 2002-07-30 03:55:29 +00:00
parent bd3e2a09ec
commit c3b3a825eb
1 changed files with 4 additions and 5 deletions

View File

@ -19,6 +19,7 @@ class InstrForest;
class MachineInstr; class MachineInstr;
class InstructionNode; class InstructionNode;
class TargetMachine; class TargetMachine;
class Pass;
/************************* Required Functions ******************************* /************************* Required Functions *******************************
* Target-dependent functions that MUST be implemented for each target. * Target-dependent functions that MUST be implemented for each target.
@ -39,16 +40,14 @@ extern bool ThisIsAChainRule (int eruleno);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Function: SelectInstructionsForMethod // Function: createInstructionSelectionPass
// //
// Purpose: // Purpose:
// Entry point for instruction selection using BURG. // Entry point for instruction selection using BURG.
// Returns true if instruction selection failed, false otherwise. // Return a pass that performs machine dependant instruction selection.
// Implemented in machine-specific instruction selection file.
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
bool SelectInstructionsForMethod (Function* function, Pass *createInstructionSelectionPass(TargetMachine &Target);
TargetMachine &Target);
//************************ Exported Data Types *****************************/ //************************ Exported Data Types *****************************/