Skip to content

Commit

Permalink
cc: Allow -vast-pipeline when emitting mlir.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkorenc authored and xlauko committed Nov 20, 2023
1 parent c4824fd commit f6f1064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vast/Frontend/Consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ namespace vast::cc {
}

auto setup_pipeline_and_execute = [&] {
auto pipeline = parse_pipeline(vargs.get_options_list(opt::opt_pipeline));
switch (target) {
case target_dialect::high_level:
break;
case target_dialect::llvm: {
// TODO: These should probably be moved outside of `target::llvmir`.
llvmir::register_vast_to_llvm_ir(*mctx);
llvmir::lower_hl_module(mod.get());
llvmir::lower_hl_module(mod.get(), pipeline);
break;
}
default:
Expand Down

0 comments on commit f6f1064

Please sign in to comment.