[llvm] XCOFF associated metadata (PR #159096)

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 26 11:13:29 PDT 2025


================
@@ -8440,6 +8440,35 @@ Example:
 The ``nofree`` metadata indicates the memory pointed by the pointer will not be
 freed after the attached instruction.
 
+'``ref``' Metadata
+^^^^^^^^^^^^^^^^^^
+
+The ``ref`` metadata may be attached to a global variable definition with a
----------------
w2yehia wrote:

Technically, today we can allow `!ref` on functions but not on ifuncs because the support is not there yet (PR #153049).
Is the plan for this PR to be for llvm::GlobalVariables only, and I extend it for ifuncs as part of its PR, and decide later whether to support functions?

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


More information about the llvm-commits mailing list