aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-30 03:55:29 +0000
committerChris Lattner <sabre@nondot.org>2002-07-30 03:55:29 +0000
commitb5eb8668828049d9b1a0e0be98d730e8ab793037 (patch)
treefaa7aacaff32db45dde6e848c5788d3f93818585 /include
parent5d1cf5b4ebff14861745e1216ea9095ea8e6bf71 (diff)
downloadexternal_llvm-b5eb8668828049d9b1a0e0be98d730e8ab793037.zip
external_llvm-b5eb8668828049d9b1a0e0be98d730e8ab793037.tar.gz
external_llvm-b5eb8668828049d9b1a0e0be98d730e8ab793037.tar.bz2
Expose instruction selection as a pass instead of a global function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/InstrSelection.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/InstrSelection.h b/include/llvm/CodeGen/InstrSelection.h
index 18f4b7f..ed3e128 100644
--- a/include/llvm/CodeGen/InstrSelection.h
+++ b/include/llvm/CodeGen/InstrSelection.h
@@ -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 *****************************/