[llvm-commits] [dragonegg] r131826 - /dragonegg/trunk/src/Backend.cpp
Chris Lattner
sabre at nondot.org
Sat May 21 17:28:09 PDT 2011
Author: lattner
Date: Sat May 21 19:28:09 2011
New Revision: 131826
URL: http://llvm.org/viewvc/llvm-project?rev=131826&view=rev
Log:
my attempt at switching dragonegg, not tested since I can't build it.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=131826&r1=131825&r2=131826&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Sat May 21 19:28:09 2011
@@ -39,7 +39,7 @@
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/RegAllocRegistry.h"
#include "llvm/Support/ManagedStatic.h"
-#include "llvm/Support/StandardPasses.h"
+#include "llvm/Support/PassManagerBuilder.h"
#include "llvm/Target/SubtargetFeature.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetLibraryInfo.h"
@@ -795,11 +795,15 @@
}
HasPerModulePasses = true;
- createStandardModulePasses(PerModulePasses, IROptLevel(),
- optimize_size,
- flag_unit_at_a_time, flag_unroll_loops,
- !flag_no_simplify_libcalls, flag_exceptions,
- InliningPass);
+
+ PassManagerBuilder Builder;
+ Builder.OptLevel = IROptLevel();
+ Builder.SizeLevel = optimize_size;
+ Builder.Inliner = InliningPass;
+ Builder.DisableSimplifyLibCalls = flag_no_simplify_libcalls;
+ Builder.DisableUnrollLoops = !flag_unroll_loops;
+ Builder.DisableUnitAtATime = !flag_unit_at_a_time;
+ Builder.populateModulePassManager(*PerModulePasses);
if (EmitIR && 0) {
// Emit an LLVM .bc file to the output. This is used when passed
More information about the llvm-commits
mailing list