================ @@ -609,8 +609,8 @@ def ConditionOp : CIR_Op<"condition", [ //===----------------------------------------------------------------------===// def YieldOp : CIR_Op<"yield", [ReturnLike, Terminator, - ParentOneOf<["IfOp", "ScopeOp", "WhileOp", - "ForOp", "DoWhileOp"]>]> { + ParentOneOf<["IfOp", "TernaryOp", "ScopeOp", ---------------- mmha wrote:
I put it next to `IfOp` since both are about branching. But maybe lexicographic ordering is more sensible. The incubator does neither FWIW. https://github.com/llvm/llvm-project/pull/137184 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits