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

Fabian Mora via flang-commits flang-commits at lists.llvm.org
Fri Oct 10 03:59:57 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);
----------------
fabianmcg wrote:

I think you're right, that should be an unsigned cast, line 3628 also should be changed to unsigned.

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


More information about the flang-commits mailing list