[llvm] [WIP] Extend data layout to add non zero null value for address space. (PR #83109)
Rana Pratap Reddy via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 21:35:59 PST 2024
================
@@ -299,6 +302,17 @@ class DataLayout {
return ManglingMode == MM_WinCOFFX86;
}
+ uint64_t getNonZeroValueForAddrSpace(uint64_t AddrSpace) {
+ auto It = AddrSpaceToNonZeroValueMap.find(AddrSpace);
+ if (It == AddrSpaceToNonZeroValueMap.end())
+ return 0x000000000;
+ return AddrSpaceToNonZeroValueMap[AddrSpace];
----------------
ranapratap55 wrote:
renamed to getNullPointerValue.
https://github.com/llvm/llvm-project/pull/83109
More information about the llvm-commits
mailing list