Skip to content

Commit

Permalink
hl: Remove ChooseExpr region type verifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko authored and xlauko committed Sep 4, 2024
1 parent 432ed1f commit f8ecacf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions include/vast/Dialect/HighLevel/HighLevelCF.td
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ def HighLevel_ChooseExprOp : HighLevel_CondOpBase< "choose_expr" > {

let arguments = (ins OptionalAttr< BoolAttr >:$condTrue);

// ChooseExpr can have different types.
// Often used as __builtin_choose_expr(static_cond, 1, (void)0)
let hasRegionVerifier = 0;

let skipDefaultBuilders = 1;
let builders = [
OpBuilder<(ins
Expand Down
4 changes: 0 additions & 4 deletions lib/vast/Dialect/HighLevel/HighLevelOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,6 @@ namespace vast::hl
return verify_condop_yields(getThenRegion(), getElseRegion(), getLoc());
}

logical_result ChooseExprOp::verifyRegions() {
return verify_condop_yields(getThenRegion(), getElseRegion(), getLoc());
}

logical_result BinaryCondOp::verifyRegions() {
return verify_condop_yields(getThenRegion(), getElseRegion(), getLoc());
}
Expand Down

0 comments on commit f8ecacf

Please sign in to comment.