[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
Mon Jul 27 01:53:14 PDT 2026
================
@@ -7116,6 +7116,12 @@ 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, including the reserved address spaces
+ // in between.
+ if (!DL.contains("-p15") && !DL.starts_with("p15"))
----------------
Pierre-vh wrote:
I just did a loop instead so it checks all AS properly.
I did not add tests for every single permutation possible though, just for p15, is that fine?
https://github.com/llvm/llvm-project/pull/209746
More information about the llvm-branch-commits
mailing list