[llvm-branch-commits] [AMDGPU] Set AS8 address width to 48 bits (PR #139419)

Alexander Richardson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat May 10 17:01:30 PDT 2025


https://github.com/arichardson created https://github.com/llvm/llvm-project/pull/139419

Of the 128-bits of buffer descriptor only 48 bits are address bits, so
following the discussion on https://discourse.llvm.org/t/clarifiying-the-semantics-of-ptrtoint/83987/54,
the logic conclusion is to set the index width to 48 bits instead of
the current value of 128.

Most of the test changes are mechanical datalayout updates, but there
is one actual change: the ptrmask test now uses .i48 instead of .i128
and I had to update SelectionDAGBuilder to correctly extend the mask.





More information about the llvm-branch-commits mailing list