[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
Thu Mar 7 09:59:46 PST 2024
================
@@ -251,6 +253,15 @@ template <typename IntTy> static Error getInt(StringRef R, IntTy &Result) {
return Error::success();
}
+template <typename IntTy>
+static Error getIntForAddrSpace(StringRef R, IntTy &Result) {
+ if (R.equals("neg"))
+ Result = -1;
+ else
+ return getInt<IntTy>(R, Result);
+ return Error::success();
----------------
ranapratap55 wrote:
updated in the latest patch.
https://github.com/llvm/llvm-project/pull/83109
More information about the llvm-commits
mailing list