File tree Expand file tree Collapse file tree 3 files changed +266
-91
lines changed Expand file tree Collapse file tree 3 files changed +266
-91
lines changed Original file line number Diff line number Diff line change 27
27
#include " llvm/ADT/SmallVector.h"
28
28
#include " llvm/IR/PassManager.h"
29
29
#include " llvm/Support/Error.h"
30
+ #include " llvm/Target/CGPassBuilderOption.h"
30
31
31
32
#include < map>
32
33
@@ -150,10 +151,7 @@ class MachineFunctionPassManager
150
151
using Base = PassManager<MachineFunction, MachineFunctionAnalysisManager>;
151
152
152
153
public:
153
- MachineFunctionPassManager (bool RequireCodeGenSCCOrder = false ,
154
- bool VerifyMachineFunction = false )
155
- : RequireCodeGenSCCOrder(RequireCodeGenSCCOrder),
156
- VerifyMachineFunction (VerifyMachineFunction) {}
154
+ MachineFunctionPassManager () : Opt(getCGPassBuilderOption()) {}
157
155
MachineFunctionPassManager (MachineFunctionPassManager &&) = default ;
158
156
MachineFunctionPassManager &
159
157
operator =(MachineFunctionPassManager &&) = default ;
@@ -261,10 +259,7 @@ class MachineFunctionPassManager
261
259
using PassIndex = decltype (Passes)::size_type;
262
260
std::map<PassIndex, llvm::unique_function<FuncTy>> MachineModulePasses;
263
261
264
- // Run codegen in the SCC order.
265
- bool RequireCodeGenSCCOrder;
266
-
267
- bool VerifyMachineFunction;
262
+ CGPassBuilderOption Opt;
268
263
};
269
264
270
265
} // end namespace llvm
You can’t perform that action at this time.
0 commit comments