mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Begin adding static dependence information to passes, which will allow us to
perform initialization without static constructors AND without explicit initialization by the client. For the moment, passes are required to initialize both their (potential) dependencies and any passes they preserve. I hope to be able to relax the latter requirement in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -91,7 +91,11 @@ namespace {
|
||||
} // end anonymous namespace
|
||||
|
||||
char MachineCSE::ID = 0;
|
||||
INITIALIZE_PASS(MachineCSE, "machine-cse",
|
||||
INITIALIZE_PASS_BEGIN(MachineCSE, "machine-cse",
|
||||
"Machine Common Subexpression Elimination", false, false)
|
||||
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
|
||||
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
|
||||
INITIALIZE_PASS_END(MachineCSE, "machine-cse",
|
||||
"Machine Common Subexpression Elimination", false, false)
|
||||
|
||||
FunctionPass *llvm::createMachineCSEPass() { return new MachineCSE(); }
|
||||
|
Reference in New Issue
Block a user