[clang] [CIR] Upstream TernaryOp (PR #137184)

Morris Hafner via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 25 07:07:15 PDT 2025


================
@@ -609,8 +609,8 @@ def ConditionOp : CIR_Op<"condition", [
 //===----------------------------------------------------------------------===//
 
 def YieldOp : CIR_Op<"yield", [ReturnLike, Terminator,
-                               ParentOneOf<["IfOp", "ScopeOp", "WhileOp",
-                                            "ForOp", "DoWhileOp"]>]> {
+                               ParentOneOf<["DoWhileOp", "ForOp", "WhileOp",
----------------
mmha wrote:

See Erichs comment about my placement of `"TernaryOp"` in that list. I just created a PR in the incubator here: https://github.com/llvm/clangir/pull/1586

https://github.com/llvm/llvm-project/pull/137184


More information about the cfe-commits mailing list