================ @@ -117,13 +117,15 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeNVPTXTarget() { static std::string computeDataLayout(bool is64Bit, bool UseShortPointers) { std::string Ret = "e"; - if (!is64Bit) - Ret += "-p:32:32"; - else if (UseShortPointers) - Ret += "-p3:32:32-p4:32:32-p5:32:32"; - // Tensor Memory (addrspace:6) is always 32-bits. - Ret += "-p6:32:32"; + // Distributed Shared Memory (addrspace:7) follows shared memory + // (addrspace:3). + if (!is64Bit) + Ret += "-p:32:32-p6:32:32-p7:32:32"; + else if (UseShortPointers) { + Ret += "-p3:32:32-p4:32:32-p5:32:32-p6:32:32-p7:32:32"; + } else + Ret += "-p6:32:32"; ---------------- modiking wrote:
To keep the address spaces in order `p6:32:32` is also moved to the conditions above so the comment applies to every case now. https://github.com/llvm/llvm-project/pull/135444 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits