[Mlir-commits] [llvm] [mlir] [NVPTX] Add "exclusive" intrinsic variants for tcgen05.alloc/dealloc (PR #216016)

Durgadoss R llvmlistbot at llvm.org
Fri Aug 14 02:34:09 PDT 2026


================
@@ -4977,17 +4977,12 @@ Tcgen05AllocOp::getIntrinsicIDAndArgs(Operation &op,
   auto curOp = cast<NVVM::Tcgen05AllocOp>(op);
   unsigned as = llvm::cast<LLVM::LLVMPointerType>(curOp.getAddr().getType())
                     .getAddressSpace();
-  bool isShared = as == NVVMMemorySpace::Shared;
+  assert((as == NVVMMemorySpace::Generic || as == NVVMMemorySpace::Shared) &&
+         "expected generic or shared memory address");
----------------
durga4github wrote:

I am not sure if we need this assert. I think the AnyType of the `addr` argument will catch if it is something else.

https://github.com/llvm/llvm-project/pull/216016


More information about the Mlir-commits mailing list