mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
Declare that lowerinvoke doesn't interact with other lowering passes.
Patch written by Domagoj Babic! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -46,6 +46,7 @@ namespace {
|
|||||||
AU.addPreservedID(PromoteMemoryToRegisterID);
|
AU.addPreservedID(PromoteMemoryToRegisterID);
|
||||||
AU.addPreservedID(LowerSelectID);
|
AU.addPreservedID(LowerSelectID);
|
||||||
AU.addPreservedID(LowerSwitchID);
|
AU.addPreservedID(LowerSwitchID);
|
||||||
|
AU.addPreservedID(LowerInvokePassID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// doPassInitialization - For the lower allocations pass, this ensures that
|
/// doPassInitialization - For the lower allocations pass, this ensures that
|
||||||
|
@ -72,6 +72,14 @@ namespace {
|
|||||||
bool doInitialization(Module &M);
|
bool doInitialization(Module &M);
|
||||||
bool runOnFunction(Function &F);
|
bool runOnFunction(Function &F);
|
||||||
|
|
||||||
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
// This is a cluster of orthogonal Transforms
|
||||||
|
AU.addPreservedID(PromoteMemoryToRegisterID);
|
||||||
|
AU.addPreservedID(LowerSelectID);
|
||||||
|
AU.addPreservedID(LowerSwitchID);
|
||||||
|
AU.addPreservedID(LowerAllocationsID);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void createAbortMessage();
|
void createAbortMessage();
|
||||||
void writeAbortMessage(Instruction *IB);
|
void writeAbortMessage(Instruction *IB);
|
||||||
|
@ -43,6 +43,8 @@ namespace {
|
|||||||
AU.addPreserved<UnifyFunctionExitNodes>();
|
AU.addPreserved<UnifyFunctionExitNodes>();
|
||||||
AU.addPreservedID(PromoteMemoryToRegisterID);
|
AU.addPreservedID(PromoteMemoryToRegisterID);
|
||||||
AU.addPreservedID(LowerSwitchID);
|
AU.addPreservedID(LowerSwitchID);
|
||||||
|
AU.addPreservedID(LowerInvokePassID);
|
||||||
|
AU.addPreservedID(LowerAllocationsID);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnFunction(Function &F);
|
bool runOnFunction(Function &F);
|
||||||
|
@ -40,6 +40,8 @@ namespace {
|
|||||||
AU.addPreserved<UnifyFunctionExitNodes>();
|
AU.addPreserved<UnifyFunctionExitNodes>();
|
||||||
AU.addPreservedID(PromoteMemoryToRegisterID);
|
AU.addPreservedID(PromoteMemoryToRegisterID);
|
||||||
AU.addPreservedID(LowerSelectID);
|
AU.addPreservedID(LowerSelectID);
|
||||||
|
AU.addPreservedID(LowerInvokePassID);
|
||||||
|
AU.addPreservedID(LowerAllocationsID);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef std::pair<Constant*, BasicBlock*> Case;
|
typedef std::pair<Constant*, BasicBlock*> Case;
|
||||||
|
@ -42,6 +42,8 @@ namespace {
|
|||||||
AU.addPreserved<UnifyFunctionExitNodes>();
|
AU.addPreserved<UnifyFunctionExitNodes>();
|
||||||
AU.addPreservedID(LowerSelectID);
|
AU.addPreservedID(LowerSelectID);
|
||||||
AU.addPreservedID(LowerSwitchID);
|
AU.addPreservedID(LowerSwitchID);
|
||||||
|
AU.addPreservedID(LowerInvokePassID);
|
||||||
|
AU.addPreservedID(LowerAllocationsID);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user