Commit 53d82fe 1 parent 9e6ffc2 commit 53d82fe Copy full SHA for 53d82fe
File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ namespace vast::cc
73
73
constexpr string_ref emit_mlir = " emit-mlir" ;
74
74
75
75
constexpr string_ref print_pipeline = " print-pipeline" ;
76
+ constexpr string_ref emit_crash_reproducer = " emit-crash-reproducer" ;
76
77
78
+ constexpr string_ref disable_multithreading = " disable-multithreading" ;
77
79
constexpr string_ref debug = " debug" ;
78
80
79
81
constexpr string_ref simplify = " simplify" ;
Original file line number Diff line number Diff line change @@ -214,10 +214,6 @@ namespace vast::cc {
214
214
);
215
215
VAST_CHECK (pipeline, " failed to setup pipeline" );
216
216
217
- if (vargs.has_option (opt::print_pipeline)) {
218
- pipeline->dump ();
219
- }
220
-
221
217
auto result = pipeline->run (mod.get ());
222
218
VAST_CHECK (mlir::succeeded (result), " MLIR pass manager failed when running vast passes" );
223
219
Original file line number Diff line number Diff line change @@ -128,6 +128,20 @@ namespace vast::cc {
128
128
*passes << std::move (step);
129
129
}
130
130
131
+ if (vargs.has_option (opt::print_pipeline)) {
132
+ passes->dump ();
133
+ }
134
+
135
+ if (vargs.has_option (opt::disable_multithreading) || vargs.has_option (opt::emit_crash_reproducer)) {
136
+ mctx.disableMultithreading ();
137
+ }
138
+
139
+ if (vargs.has_option (opt::emit_crash_reproducer)) {
140
+ auto reproducer_path = vargs.get_option (opt::emit_crash_reproducer);
141
+ VAST_CHECK (reproducer_path.has_value (), " expected path to reproducer" );
142
+ passes->enableCrashReproducerGeneration (reproducer_path.value (), true /* local reproducer */ );
143
+ }
144
+
131
145
return passes;
132
146
}
133
147
You can’t perform that action at this time.
0 commit comments