mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
[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
This commit is contained in:
parent
19c6b95399
commit
043b23526d
@ -37,6 +37,9 @@ void initializeVectorization(PassRegistry&);
|
||||
/// Initialize all passes linked into the InstCombine library.
|
||||
void initializeInstCombine(PassRegistry&);
|
||||
|
||||
/// Initialize all passes linked into the AggressiveInstCombine library.
|
||||
void initializeAggressiveInstCombine(PassRegistry&);
|
||||
|
||||
/// Initialize all passes linked into the IPO library.
|
||||
void initializeIPO(PassRegistry&);
|
||||
|
||||
|
@ -111,6 +111,11 @@ INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
|
||||
INITIALIZE_PASS_END(AggressiveInstCombinerLegacyPass, "aggressive-instcombine",
|
||||
"Combine pattern based expressions", false, false)
|
||||
|
||||
// Initialization Routines
|
||||
void llvm::initializeAggressiveInstCombine(PassRegistry &Registry) {
|
||||
initializeAggressiveInstCombinerLegacyPassPass(Registry);
|
||||
}
|
||||
|
||||
FunctionPass *llvm::createAggressiveInstCombinerPass() {
|
||||
return new AggressiveInstCombinerLegacyPass();
|
||||
}
|
||||
|
@ -130,6 +130,7 @@ int main(int argc, char **argv) {
|
||||
initializeAnalysis(Registry);
|
||||
initializeTransformUtils(Registry);
|
||||
initializeInstCombine(Registry);
|
||||
initializeAggressiveInstCombine(Registry);
|
||||
initializeInstrumentation(Registry);
|
||||
initializeTarget(Registry);
|
||||
|
||||
|
@ -192,6 +192,7 @@ extern "C" LLVM_ATTRIBUTE_USED int LLVMFuzzerInitialize(
|
||||
initializeAnalysis(Registry);
|
||||
initializeTransformUtils(Registry);
|
||||
initializeInstCombine(Registry);
|
||||
initializeAggressiveInstCombine(Registry);
|
||||
initializeInstrumentation(Registry);
|
||||
initializeTarget(Registry);
|
||||
|
||||
|
@ -388,7 +388,7 @@ int main(int argc, char **argv) {
|
||||
initializeAnalysis(Registry);
|
||||
initializeTransformUtils(Registry);
|
||||
initializeInstCombine(Registry);
|
||||
initializeAggressiveInstCombinerLegacyPassPass(Registry);
|
||||
initializeAggressiveInstCombine(Registry);
|
||||
initializeInstrumentation(Registry);
|
||||
initializeTarget(Registry);
|
||||
// For codegen passes, only passes that do IR to IR transformation are
|
||||
|
Loading…
Reference in New Issue
Block a user