[llvm-branch-commits] [llvm] [DataLayout][LangRef] Split non-integral and unstable pointer properties (PR #105735)

Alexander Richardson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Sep 21 13:25:36 PDT 2025


================
@@ -440,8 +461,12 @@ Error DataLayout::parsePointerSpec(StringRef Spec) {
     return createStringError(
         "index size cannot be larger than the pointer size");
 
+  if (ExternalState && BitWidth == IndexBitWidth)
+    return createStringError(
+        "pointers with external state must be non-integral");
----------------
arichardson wrote:

Yes we could definitely have that, I believe this would apply to something like the now deprecated Intel MPX fat pointer solution. Will drop the restrictions 

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


More information about the llvm-branch-commits mailing list