[Mlir-commits] [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
llvmlistbot at llvm.org
Tue Sep 17 19:14:13 PDT 2024
================
@@ -245,6 +246,7 @@ class DataLayout {
unsigned getDefaultGlobalsAddressSpace() const {
return DefaultGlobalsAddrSpace;
}
+ unsigned getFlatAddressSpace() const { return FlatAddressSpace; }
----------------
shiltian wrote:
I added an enum such that all the checks can be against `DataLayout::AS_INVALID`.
https://github.com/llvm/llvm-project/pull/108786
More information about the Mlir-commits
mailing list