Skip to content

Commit

Permalink
hl: Add to_hlbi to simplify pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Mar 12, 2024
1 parent 363fdb8 commit e325d84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/vast/Conversion/Passes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ namespace vast

namespace conv::pipeline
{
pipeline_step_ptr to_hlbi();
pipeline_step_ptr abi();
pipeline_step_ptr irs_to_llvm();
pipeline_step_ptr core_to_llvm();
Expand Down
4 changes: 4 additions & 0 deletions lib/vast/Conversion/FromHL/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ VAST_UNRELAX_WARNINGS

namespace vast::conv::pipeline {

pipeline_step_ptr to_hlbi() {
return pass(createHLToHLBI);
}

pipeline_step_ptr hl_to_ll_cf() {
// TODO add dependencies
return pass(createHLToLLCFPass);
Expand Down
3 changes: 2 additions & 1 deletion lib/vast/Dialect/HighLevel/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ VAST_RELAX_WARNINGS
#include <mlir/Pass/PassManager.h>
VAST_UNRELAX_WARNINGS

#include "vast/Conversion/Passes.hpp"
#include "vast/Dialect/HighLevel/Passes.hpp"

namespace vast::hl::pipeline {
Expand Down Expand Up @@ -52,7 +53,7 @@ namespace vast::hl::pipeline {
}

pipeline_step_ptr simplify() {
return compose("simplify", ude, dce, desugar);
return compose("simplify", conv::pipeline::to_hlbi, ude, dce, desugar);
}

//
Expand Down

0 comments on commit e325d84

Please sign in to comment.