mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Prototype these functions more accurately
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e47e7292c
commit
4b50156049
@ -106,7 +106,7 @@ private:
|
||||
RegisterOpt<ADCE> X("adce", "Aggressive Dead Code Elimination");
|
||||
} // End of anonymous namespace
|
||||
|
||||
Pass *llvm::createAggressiveDCEPass() { return new ADCE(); }
|
||||
FunctionPass *llvm::createAggressiveDCEPass() { return new ADCE(); }
|
||||
|
||||
void ADCE::markBlockAlive(BasicBlock *BB) {
|
||||
// Mark the basic block as being newly ALIVE... and mark all branches that
|
||||
|
@ -42,7 +42,7 @@ namespace {
|
||||
RegisterOpt<ConstantPropagation> X("constprop","Simple constant propagation");
|
||||
}
|
||||
|
||||
Pass *llvm::createConstantPropagationPass() {
|
||||
FunctionPass *llvm::createConstantPropagationPass() {
|
||||
return new ConstantPropagation();
|
||||
}
|
||||
|
||||
|
@ -285,7 +285,9 @@ namespace {
|
||||
RegisterOpt<CEE> X("cee", "Correlated Expression Elimination");
|
||||
}
|
||||
|
||||
Pass *llvm::createCorrelatedExpressionEliminationPass() { return new CEE(); }
|
||||
FunctionPass *llvm::createCorrelatedExpressionEliminationPass() {
|
||||
return new CEE();
|
||||
}
|
||||
|
||||
|
||||
bool CEE::runOnFunction(Function &F) {
|
||||
|
@ -53,7 +53,7 @@ namespace {
|
||||
RegisterOpt<DeadInstElimination> X("die", "Dead Instruction Elimination");
|
||||
}
|
||||
|
||||
Pass *llvm::createDeadInstEliminationPass() {
|
||||
FunctionPass *llvm::createDeadInstEliminationPass() {
|
||||
return new DeadInstElimination();
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ namespace {
|
||||
RegisterOpt<DSE> X("dse", "Dead Store Elimination");
|
||||
}
|
||||
|
||||
Pass *llvm::createDeadStoreEliminationPass() { return new DSE(); }
|
||||
FunctionPass *llvm::createDeadStoreEliminationPass() { return new DSE(); }
|
||||
|
||||
bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
||||
TargetData &TD = getAnalysis<TargetData>();
|
||||
|
@ -328,7 +328,7 @@ namespace {
|
||||
RegisterOpt<IndVarSimplify> X("indvars", "Canonicalize Induction Variables");
|
||||
}
|
||||
|
||||
Pass *llvm::createIndVarSimplifyPass() {
|
||||
FunctionPass *llvm::createIndVarSimplifyPass() {
|
||||
return new IndVarSimplify();
|
||||
}
|
||||
|
||||
|
@ -274,7 +274,7 @@ private:
|
||||
|
||||
|
||||
// createSCCPPass - This is the public interface to this file...
|
||||
Pass *llvm::createSCCPPass() {
|
||||
FunctionPass *llvm::createSCCPPass() {
|
||||
return new SCCP();
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ namespace {
|
||||
}
|
||||
|
||||
// Public interface to the ScalarReplAggregates pass
|
||||
Pass *llvm::createScalarReplAggregatesPass() { return new SROA(); }
|
||||
FunctionPass *llvm::createScalarReplAggregatesPass() { return new SROA(); }
|
||||
|
||||
|
||||
bool SROA::runOnFunction(Function &F) {
|
||||
|
@ -47,10 +47,10 @@ namespace {
|
||||
"Strip symbols from module and functions");
|
||||
}
|
||||
|
||||
Pass *llvm::createSymbolStrippingPass() {
|
||||
FunctionPass *llvm::createSymbolStrippingPass() {
|
||||
return new SymbolStripping();
|
||||
}
|
||||
|
||||
Pass *llvm::createFullSymbolStrippingPass() {
|
||||
FunctionPass *llvm::createFullSymbolStrippingPass() {
|
||||
return new FullSymbolStripping();
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ namespace {
|
||||
}
|
||||
|
||||
// Public interface to the Tail Duplication pass
|
||||
Pass *llvm::createTailDuplicationPass() { return new TailDup(); }
|
||||
FunctionPass *llvm::createTailDuplicationPass() { return new TailDup(); }
|
||||
|
||||
/// runOnFunction - Top level algorithm - Loop over each unconditional branch in
|
||||
/// the function, eliminating it if it looks attractive enough.
|
||||
|
@ -88,7 +88,7 @@ namespace {
|
||||
|
||||
// Publically exposed interface to pass...
|
||||
const PassInfo *llvm::LoopSimplifyID = X.getPassInfo();
|
||||
Pass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); }
|
||||
FunctionPass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); }
|
||||
|
||||
/// runOnFunction - Run down all loops in the CFG (recursively, but we could do
|
||||
/// it in any convenient order) inserting preheaders...
|
||||
|
@ -76,7 +76,7 @@ bool PromotePass::runOnFunction(Function &F) {
|
||||
|
||||
// createPromoteMemoryToRegister - Provide an entry point to create this pass.
|
||||
//
|
||||
Pass *llvm::createPromoteMemoryToRegister() {
|
||||
FunctionPass *llvm::createPromoteMemoryToRegister() {
|
||||
return new PromotePass();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user