diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:06:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:06:36 +0000 |
commit | dbe0deca339585dfbaed5951ef0ca2c6a0df173c (patch) | |
tree | ffc084b3987295cbaa43c84a62a00b17a3451d91 /include | |
parent | d2f340b746e54fca27b654fd6740973fdf6b85f1 (diff) | |
download | external_llvm-dbe0deca339585dfbaed5951ef0ca2c6a0df173c.zip external_llvm-dbe0deca339585dfbaed5951ef0ca2c6a0df173c.tar.gz external_llvm-dbe0deca339585dfbaed5951ef0ca2c6a0df173c.tar.bz2 |
Split the sdisel code munging stuff out into its own opt-pass, CodeGenPrepare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/LinkAllPasses.h | 1 | ||||
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index 834fe48..7bf1c16 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -109,6 +109,7 @@ namespace { (void) llvm::createIndMemRemPass(); (void) llvm::createInstCountPass(); (void) llvm::createPredicateSimplifierPass(); + (void) llvm::createCodeGenPreparePass(); (void)new llvm::IntervalPartition(); (void)new llvm::ImmediateDominators(); diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index a675730..379ee57 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -121,7 +121,7 @@ LoopPass *createLICMPass(); // optional parameter used to consult the target machine whether certain // transformations are profitable. // -LoopPass *createLoopStrengthReducePass(const TargetLowering *TLI = NULL); +LoopPass *createLoopStrengthReducePass(const TargetLowering *TLI = 0); //===----------------------------------------------------------------------===// // @@ -309,6 +309,12 @@ extern const PassInfo *LCSSAID; // FunctionPass *createPredicateSimplifierPass(); +//===----------------------------------------------------------------------===// +// +// CodeGenPrepare - This pass prepares a function for instruction selection. +// +FunctionPass *createCodeGenPreparePass(const TargetLowering *TLI = 0); + } // End llvm namespace #endif |