[llvm] [IR] Require that ptrmask mask matches pointer index size (PR #69343)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 00:45:03 PDT 2023
================
@@ -26965,10 +26966,20 @@ to facilitate alias analysis and underlying-object detection.
Semantics:
""""""""""
-The result of ``ptrmask(ptr, mask)`` is equivalent to
-``getelementptr ptr, (ptrtoint(ptr) & mask) - ptrtoint(ptr)``. Both the returned
-pointer(s) and the first argument are based on the same underlying object (for more
-information on the *based on* terminology see
+The result of ``ptrmask(%ptr, %mask)`` is equivalent to the following expansion,
----------------
nikic wrote:
I've added a sentence to clarify that ptrmaks only captures via the return value.
https://github.com/llvm/llvm-project/pull/69343
More information about the llvm-commits
mailing list