Expose instruction selection as a pass instead of a global function
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 03:55:29 +0000 (03:55 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 03:55:29 +0000 (03:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3145 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/InstrSelection.h

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