[clang] [lld] [llvm] [mlir] [IR] Introduce `T<address space>` to `DataLayout` to represent flat address space if a target supports it (PR #108786)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 07:56:04 PDT 2024
================
@@ -245,6 +246,7 @@ class DataLayout {
unsigned getDefaultGlobalsAddressSpace() const {
return DefaultGlobalsAddrSpace;
}
+ unsigned getFlatAddressSpace() const { return FlatAddressSpace; }
----------------
shiltian wrote:
@arsenm made a point in https://github.com/llvm/llvm-project/pull/108594#discussion_r1759254548 that, address space is already defined as a 24-bit int, `~0U` should not carry anything. I'm fine either way.
https://github.com/llvm/llvm-project/pull/108786
More information about the cfe-commits
mailing list