[llvm] [DataLayout] Refactor storage of non-integral address spaces (PR #105734)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 18:17:32 PDT 2024


================
@@ -454,11 +454,13 @@ Error DataLayout::parsePointerSpec(StringRef Spec) {
     return createStringError(
         "index size cannot be larger than the pointer size");
 
-  setPointerSpec(AddrSpace, BitWidth, ABIAlign, PrefAlign, IndexBitWidth);
+  setPointerSpec(AddrSpace, BitWidth, ABIAlign, PrefAlign, IndexBitWidth,
+                 false);
   return Error::success();
 }
 
-Error DataLayout::parseSpecification(StringRef Spec) {
+Error DataLayout::parseSpecification(
+    StringRef Spec, SmallVectorImpl<unsigned> &NonIntegralAddressSpaces) {
   // The "ni" specifier is the only two-character specifier. Handle it first.
   if (Spec.starts_with("ni")) {
----------------
arichardson wrote:

I tried this and it added more extra code so keeping as is.

https://github.com/llvm/llvm-project/pull/105734


More information about the llvm-commits mailing list