Skip to content

Commit cea27bc

Browse files
WIP v3: Handle the non-loop blocks using a iterative algorithm
1 parent 6bc60f8 commit cea27bc

File tree

3 files changed

+254
-441
lines changed

3 files changed

+254
-441
lines changed

include/blocks/loops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using namespace block;
1010
class loop {
1111
public:
1212
loop(std::shared_ptr<basic_block> header): header_block(header) {}
13-
stmt::Ptr convert_to_ast_impl(dominator_analysis &dta_);
13+
stmt::Ptr convert_to_ast_impl(dominator_analysis &dta_, std::vector<std::pair<std::shared_ptr<basic_block>, stmt_block::Ptr>> &return_blocks);
1414

1515
struct loop_bounds_ {
1616
stmt::Ptr ind_var;

0 commit comments

Comments
 (0)