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

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 24 15:39:04 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",
----------------
andykaylor wrote:

What's the reason for the reordering here?

I've been trying to keep things like this in the same order there are in in the incubator, but it probably makes sense to alphabetize them both places so we don't have to keep comparing to see where things should be.

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


More information about the cfe-commits mailing list