================
@@ -245,6 +246,7 @@ class DataLayout {
   unsigned getDefaultGlobalsAddressSpace() const {
     return DefaultGlobalsAddrSpace;
   }
+  unsigned getFlatAddressSpace() const { return FlatAddressSpace; }
----------------
jrtc27 wrote:

> The absence of this specification indicates the target does not have such a 
> flat address space to optimize away.

Yet this isn't an optional? Is the expectation that callers check against a 
magic ~0U sentinel? (Is there precedent for that in DataLayout?)

https://github.com/llvm/llvm-project/pull/108786
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to