mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add pass ID's for various passes, so they can be AddRequiredID. Patch by
Domagoj Babic! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51b776d259
commit
b3674e4753
@ -163,6 +163,7 @@ FunctionPass *createLoopUnrollPass();
|
||||
// ret int %Y
|
||||
//
|
||||
FunctionPass *createPromoteMemoryToRegisterPass();
|
||||
extern const PassInfo *PromoteMemoryToRegisterID;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
@ -239,6 +240,24 @@ extern const PassInfo *BreakCriticalEdgesID;
|
||||
FunctionPass *createLoopSimplifyPass();
|
||||
extern const PassInfo *LoopSimplifyID;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass converts SelectInst instructions into conditional branch and PHI
|
||||
// instructions. If the OnlyFP flag is set to true, then only floating point
|
||||
// select instructions are lowered.
|
||||
//
|
||||
FunctionPass *createLowerSelectPass(bool OnlyFP = false);
|
||||
extern const PassInfo *LowerSelectID;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// LowerAllocations Pass - Turn malloc and free instructions into %malloc and
|
||||
// %free calls.
|
||||
//
|
||||
// AU.addRequiredID(LowerAllocationsID);
|
||||
//
|
||||
FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
|
||||
extern const PassInfo *LowerAllocationsID;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This pass eliminates call instructions to the current function which occur
|
||||
@ -246,25 +265,12 @@ extern const PassInfo *LoopSimplifyID;
|
||||
//
|
||||
FunctionPass *createTailCallEliminationPass();
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass convert malloc and free instructions to %malloc & %free function
|
||||
// calls.
|
||||
//
|
||||
FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass converts SwitchInst instructions into a sequence of chained binary
|
||||
// branch instructions.
|
||||
//
|
||||
FunctionPass *createLowerSwitchPass();
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass converts SelectInst instructions into conditional branch and PHI
|
||||
// instructions. If the OnlyFP flag is set to true, then only floating point
|
||||
// select instructions are lowered.
|
||||
//
|
||||
FunctionPass *createLowerSelectPass(bool OnlyFP = false);
|
||||
extern const PassInfo *LowerSwitchID;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass converts PackedType operations into low-level scalar operations.
|
||||
|
@ -60,6 +60,8 @@ namespace {
|
||||
X("lowerallocs", "Lower allocations from instructions to calls");
|
||||
}
|
||||
|
||||
// Publically exposed interface to pass...
|
||||
const PassInfo *llvm::LowerAllocationsID = X.getPassInfo();
|
||||
// createLowerAllocationsPass - Interface to this file...
|
||||
FunctionPass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
|
||||
return new LowerAllocations(LowerMallocArgToInteger);
|
||||
|
@ -47,6 +47,8 @@ namespace {
|
||||
X("lowerselect", "Lower select instructions to branches");
|
||||
}
|
||||
|
||||
// Publically exposed interface to pass...
|
||||
const PassInfo *llvm::LowerSelectID = X.getPassInfo();
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This pass converts SelectInst instructions into conditional branch and PHI
|
||||
// instructions. If the OnlyFP flag is set to true, then only floating point
|
||||
|
@ -60,6 +60,8 @@ namespace {
|
||||
X("lowerswitch", "Lower SwitchInst's to branches");
|
||||
}
|
||||
|
||||
// Publically exposed interface to pass...
|
||||
const PassInfo *llvm::LowerSwitchID = X.getPassInfo();
|
||||
// createLowerSwitchPass - Interface to this file...
|
||||
FunctionPass *llvm::createLowerSwitchPass() {
|
||||
return new LowerSwitch();
|
||||
|
@ -74,6 +74,8 @@ bool PromotePass::runOnFunction(Function &F) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
// Publically exposed interface to pass...
|
||||
const PassInfo *llvm::PromoteMemoryToRegisterID = X.getPassInfo();
|
||||
// createPromoteMemoryToRegister - Provide an entry point to create this pass.
|
||||
//
|
||||
FunctionPass *llvm::createPromoteMemoryToRegisterPass() {
|
||||
|
Loading…
Reference in New Issue
Block a user