[clang] [llvm] [mlir] [NVPTX] Add support for Shared Cluster Memory address space. (PR #135444)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 14:14:39 PDT 2025
================
@@ -982,8 +982,9 @@ void NVPTXDAGToDAGISel::SelectAddrSpaceCast(SDNode *N) {
case ADDRESS_SPACE_SHARED:
Opc = TM.is64Bit() ? NVPTX::cvta_shared_64 : NVPTX::cvta_shared;
break;
- case ADDRESS_SPACE_DSHARED:
- Opc = TM.is64Bit() ? NVPTX::cvta_dshared_64 : NVPTX::cvta_dshared;
+ case ADDRESS_SPACE_SHARED_CLUSTER:
+ Opc = TM.is64Bit() ? NVPTX::cvta_shared_cluster_64
+ : NVPTX::cvta_shared_cluster;
----------------
gonzalobg wrote:
If a program/user requests 32-bit ABI and sm_90, that's an error. I'd expect this to be reported either by the frontend (e.g. clang) or when parsing the llvm module target data. At that point, NVPTX can just assume that this never happens and we can hard fail here to be helpful to other compiler developers, since they are the only ones that should be seeing this failure.
https://github.com/llvm/llvm-project/pull/135444
More information about the cfe-commits
mailing list