Skip to content

Commit 00a45d2

Browse files
committed
Rename getMembarLevelID to getMembarIntrinsicID
1 parent 4f3be47 commit 00a45d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def NVVM_MembarOp : NVVM_Op<"memory_barrier">,
12491249

12501250
let assemblyFormat = "$scope attr-dict";
12511251
let llvmBuilder = [{
1252-
createIntrinsicCall(builder, getMemoryBarrierLevelID($scope), {});
1252+
createIntrinsicCall(builder, getMembarIntrinsicID($scope), {});
12531253
}];
12541254
}
12551255

mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static unsigned getUnidirectionalFenceProxyID(NVVM::ProxyKind fromProxy,
291291
llvm_unreachable("Unsupported proxy kinds");
292292
}
293293

294-
static unsigned getMemoryBarrierLevelID(NVVM::MemScopeKind scope) {
294+
static unsigned getMembarIntrinsicID(NVVM::MemScopeKind scope) {
295295
switch (scope) {
296296
case NVVM::MemScopeKind::CTA: {
297297
return llvm::Intrinsic::nvvm_membar_cta;

0 commit comments

Comments
 (0)