Skip to content

Commit c5f0f97

Browse files
authored
Reorder YieldOp parents lexicographically (#1586)
This is a backport from llvm/llvm-project#137184 Co-authored-by: Morris Hafner <[email protected]>
1 parent d071f2f commit c5f0f97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,9 @@ def ConditionOp : CIR_Op<"condition", [
924924
//===----------------------------------------------------------------------===//
925925

926926
def YieldOp : CIR_Op<"yield", [ReturnLike, Terminator,
927-
ParentOneOf<["IfOp", "ScopeOp", "SwitchOp", "WhileOp", "ForOp", "AwaitOp",
928-
"TernaryOp", "GlobalOp", "DoWhileOp", "TryOp", "ArrayCtor",
929-
"ArrayDtor", "CallOp", "CaseOp"]>]> {
927+
ParentOneOf<["ArrayCtor", "ArrayDtor", "AwaitOp", "CallOp", "CaseOp",
928+
"DoWhileOp", "ForOp", "GlobalOp", "IfOp", "ScopeOp",
929+
"SwitchOp", "TernaryOp", "TryOp", "WhileOp"]>]> {
930930
let summary = "Represents the default branching behaviour of a region";
931931
let description = [{
932932
The `cir.yield` operation terminates regions on different CIR operations,

0 commit comments

Comments
 (0)