Skip to content

Commit 39f881e

Browse files
committed
Keep the pointer as shared instead of any
1 parent 6a69cba commit 39f881e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ def LdStMatrixEltTypeAttr : EnumAttr<NVVM_Dialect, LdStMatrixEltType, "ld_st_mat
20122012
}
20132013

20142014
def NVVM_StMatrixOp: NVVM_Op<"stmatrix">,
2015-
Arguments<(ins LLVM_AnyPointer: $ptr, Variadic<I32>:$sources, MMALayoutAttr:$layout,
2015+
Arguments<(ins LLVM_PointerShared: $ptr, Variadic<I32>:$sources, MMALayoutAttr:$layout,
20162016
LdStMatrixShapeAttr:$shape, LdStMatrixEltTypeAttr:$eltType)> {
20172017
let summary = "cooperative matrix store";
20182018
let description = [{

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,6 @@ LogicalResult NVVM::LdMatrixOp::verify() {
819819
}
820820

821821
LogicalResult NVVM::StMatrixOp::verify() {
822-
unsigned addressSpace =
823-
llvm::cast<LLVM::LLVMPointerType>(getPtr().getType()).getAddressSpace();
824-
if (addressSpace != NVVM::kSharedMemorySpace)
825-
return emitOpError("expected source pointer in memory space 3");
826-
827822
int numMatrix = getSources().size();
828823
if (numMatrix != 1 && numMatrix != 2 && numMatrix != 4)
829824
return emitOpError("expected num attribute to be 1, 2 or 4");

0 commit comments

Comments
 (0)