[llvm] [LLVM][IR] Add support for address space names in DataLayout (PR #170559)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 22:58:16 PST 2025
================
@@ -687,19 +748,37 @@ DataLayout::getPointerSpec(uint32_t AddrSpace) const {
void DataLayout::setPointerSpec(uint32_t AddrSpace, uint32_t BitWidth,
Align ABIAlign, Align PrefAlign,
uint32_t IndexBitWidth, bool HasUnstableRepr,
- bool HasExternalState) {
+ bool HasExternalState,
+ StringRef AddrSpaceName) {
----------------
arichardson wrote:
Don't we have access to these offsets at all the call sites? Probably no need to recompute them
https://github.com/llvm/llvm-project/pull/170559
More information about the llvm-commits
mailing list