================ @@ -552,6 +553,11 @@ class DataLayout { /// /// This includes an explicitly requested alignment (if the global has one). Align getPreferredAlign(const GlobalVariable *GV) const; + + /// Returns the sentinel pointer value for a given address space. If the + /// address space is invalid, it defaults to the sentinel pointer value of + /// address space 0, aligning with the behavior of \p getPointerSpec. + APInt getSentinelPointerValue(unsigned AS) const; ---------------- shiltian wrote:
I'd prefer to leave some space for future extension. The challenging part is how to "encode" it. Do we really want to allow something like `0xfffdddfffddd` in the data layout string? https://github.com/llvm/llvm-project/pull/131557 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits