Skip to content

Commit d39336a

Browse files
Move fetch kind
1 parent afff547 commit d39336a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4985,6 +4985,11 @@ def CIR_AtomicFetchKind : CIR_I32EnumAttr<
49854985
I32EnumAttrCase<"Min", 7, "min">
49864986
]>;
49874987

4988+
def CIR_SyncScopeKind : CIR_I32EnumAttr<"SyncScopeKind", "sync scope kind", [
4989+
I32EnumAttrCase<"SingleThread", 0, "single_thread">,
4990+
I32EnumAttrCase<"System", 1, "system">
4991+
]>;
4992+
49884993
def CIR_AtomicFetchOp : CIR_Op<"atomic.fetch", [
49894994
AllTypesMatch<["result", "val"]>,
49904995
TypesMatchWith<"type of 'val' must match the pointee type of 'ptr'",
@@ -5208,11 +5213,6 @@ def CIR_AtomicClearOp : CIR_Op<"atomic.clear"> {
52085213
}];
52095214
}
52105215

5211-
def CIR_SyncScopeKind : CIR_I32EnumAttr<"SyncScopeKind", "sync scope kind", [
5212-
I32EnumAttrCase<"SingleThread", 0, "single_thread">,
5213-
I32EnumAttrCase<"System", 1, "system">
5214-
]>;
5215-
52165216
def CIR_AtomicFence : CIR_Op<"atomic.fence"> {
52175217
let summary = "Atomic thread fence";
52185218
let description = [{

0 commit comments

Comments
 (0)