[Mlir-commits] [flang] [mlir] [mlir][LLVM] Add LLVMAddrSpaceAttrInterface and NVVMMemorySpaceAttr (PR #157339)

Justin Fargnoli llvmlistbot at llvm.org
Thu Oct 9 17:22:35 PDT 2025


================
@@ -3592,7 +3627,7 @@ def NVVM_MapaOp: NVVM_Op<"mapa",
   string llvmBuilder = [{
     int addrSpace = llvm::cast<LLVMPointerType>(op.getA().getType()).getAddressSpace();
     
-    bool isSharedMemory = addrSpace == NVVM::NVVMMemorySpace::kSharedMemorySpace;
+    bool isSharedMemory = addrSpace == static_cast<int> (NVVM::NVVMMemorySpace::Shared);
----------------
justinfargnoli wrote:

@fabianmcg is this supposed to be a `static_cast<unsigned>`? If not, why? 

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


More information about the Mlir-commits mailing list