Skip to content

Commit e007be2

Browse files
remove unnecessary multiclass
1 parent 4fb5784 commit e007be2

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,6 @@ def Ordering_sequentially_consistent : PatLeaf<(i32 7)>; // SequentiallyConsiste
8080
def Ordering_volatile : PatLeaf<(i32 8)>; // Volatile = 8
8181
def Ordering_relaxed_mmio : PatLeaf<(i32 9)>; // RelaxedMMIO = 9
8282

83-
multiclass nvvm_ternary_atomic_op_scoped<SDPatternOperator frag> {
84-
defvar frag_pat = (frag node:$ptr, node:$cmp, node:$val);
85-
def NAME#_cta: PatFrag<!setdagop(frag_pat, ops),
86-
(!cast<SDPatternOperator>(NAME) node:$ptr, node:$cmp, node:$val), [{
87-
return Scopes[cast<MemSDNode>(N)->getSyncScopeID()] == NVPTX::Scope::Block;
88-
}]>;
89-
def NAME#_cluster : PatFrag<!setdagop(frag_pat, ops),
90-
(!cast<SDPatternOperator>(NAME) node:$ptr, node:$cmp, node:$val), [{
91-
return Scopes[cast<MemSDNode>(N)->getSyncScopeID()] == NVPTX::Scope::Cluster;
92-
}]>;
93-
def NAME#_gpu: PatFrag<!setdagop(frag_pat, ops),
94-
(!cast<SDPatternOperator>(NAME) node:$ptr, node:$cmp, node:$val), [{
95-
return Scopes[cast<MemSDNode>(N)->getSyncScopeID()] == NVPTX::Scope::Device;
96-
}]>;
97-
def NAME#_sys: PatFrag<!setdagop(frag_pat, ops),
98-
(!cast<SDPatternOperator>(NAME) node:$ptr, node:$cmp, node:$val), [{
99-
return Scopes[cast<MemSDNode>(N)->getSyncScopeID()] == NVPTX::Scope::System;
100-
}]>;
101-
}
102-
10383

10484
// A node that will be replaced with the current PTX version.
10585
class PTX {

0 commit comments

Comments
 (0)