[llvm] [IR] Allow nofree metadata to inttoptr (PR #153149)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 07:09:20 PDT 2025


================
@@ -8481,6 +8481,14 @@ specific. The behavior is undefined if the runtime memory address does
 resolve to an object defined in one of the indicated address spaces.
 
 
+'``nofree``' Metadata
+^^^^^^^^^^^^^^^^^^^^^
+
+The ``nofree`` metadata indicates the memory pointed by the pointer will not be
+freed after the attached instruction. This is analogous to the ``nofree``
----------------
nikic wrote:

I'd probably drop the mention of the `nofree` attribute here, as that one has different semantics (function-local).

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


More information about the llvm-commits mailing list