llvm.org GIT mirror llvm / 043b235
[AggressiveInstCombine] Add library initializer routine for AggressiveInstCombine library. Use it in bugpoint and llvm-opt-fuzzer to match regular InstCombine. This should make aggressive instcombine usable with these tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330663 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 1 year, 3 months ago
5 changed file(s) with 11 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3535
3636 /// Initialize all passes linked into the InstCombine library.
3737 void initializeInstCombine(PassRegistry&);
38
39 /// Initialize all passes linked into the AggressiveInstCombine library.
40 void initializeAggressiveInstCombine(PassRegistry&);
3841
3942 /// Initialize all passes linked into the IPO library.
4043 void initializeIPO(PassRegistry&);
110110 INITIALIZE_PASS_END(AggressiveInstCombinerLegacyPass, "aggressive-instcombine",
111111 "Combine pattern based expressions", false, false)
112112
113 // Initialization Routines
114 void llvm::initializeAggressiveInstCombine(PassRegistry &Registry) {
115 initializeAggressiveInstCombinerLegacyPassPass(Registry);
116 }
117
113118 FunctionPass *llvm::createAggressiveInstCombinerPass() {
114119 return new AggressiveInstCombinerLegacyPass();
115120 }
129129 initializeAnalysis(Registry);
130130 initializeTransformUtils(Registry);
131131 initializeInstCombine(Registry);
132 initializeAggressiveInstCombine(Registry);
132133 initializeInstrumentation(Registry);
133134 initializeTarget(Registry);
134135
191191 initializeAnalysis(Registry);
192192 initializeTransformUtils(Registry);
193193 initializeInstCombine(Registry);
194 initializeAggressiveInstCombine(Registry);
194195 initializeInstrumentation(Registry);
195196 initializeTarget(Registry);
196197
387387 initializeAnalysis(Registry);
388388 initializeTransformUtils(Registry);
389389 initializeInstCombine(Registry);
390 initializeAggressiveInstCombinerLegacyPassPass(Registry);
390 initializeAggressiveInstCombine(Registry);
391391 initializeInstrumentation(Registry);
392392 initializeTarget(Registry);
393393 // For codegen passes, only passes that do IR to IR transformation are