[llvm-branch-commits] [clang] [lld] [llvm] [mlir] [RFC][AMDGPU] Add BARRIER address space (PR #209746)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 24 03:05:50 PDT 2026


================
@@ -7116,6 +7116,10 @@ std::string llvm::UpgradeDataLayoutString(StringRef DL, StringRef TT) {
         Res.replace(Res.find(OldP8), OldP8.size(), "-p8:128:128:128:48-");
       if (!DL.contains("-p9") && !DL.starts_with("p9"))
         Res.append("-p9:192:256:256:32");
+
+      // Add sizing for address space 15
+      if (!DL.contains("-p15") && !DL.starts_with("p15"))
----------------
Pierre-vh wrote:

I am not sure I understand, do you mean that instead of adding `-p15:32:32`, I add some default values for all other reserved pointers as well and leave it at that ?

Or do you mean add a generic way to upgrade pointers here, for example by creating a small map and automating this entire thing instead of having multiple if/else ?

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


More information about the llvm-branch-commits mailing list