Skip to content

Commit

Permalink
Added support for emitting multiple guard blocks for goto that cut th…
Browse files Browse the repository at this point in the history
…rough more than 2 loops
  • Loading branch information
VedantParanjape committed Jan 28, 2024
1 parent 7f69c81 commit 863b433
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 73 deletions.
2 changes: 1 addition & 1 deletion include/blocks/loops.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class loop_info;
class loop {
public:
loop(std::shared_ptr<basic_block> header): header_block(header) {}
stmt::Ptr convert_to_ast_impl(loop_info &li, dominator_analysis &dta_, std::vector<std::pair<std::shared_ptr<basic_block>, stmt_block::Ptr>> &return_blocks, stmt::Ptr &jump_condition_def, stmt::Ptr &jump_condition_block);
stmt::Ptr convert_to_ast_impl(loop_info &li, dominator_analysis &dta_, std::vector<std::pair<std::shared_ptr<basic_block>, stmt_block::Ptr>> &return_blocks);

struct loop_bounds_ {
stmt::Ptr ind_var;
Expand Down
Loading

0 comments on commit 863b433

Please sign in to comment.