From 50b18d4140cf10c1bb5aeac6a89eab5d840853d5 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 9 Jan 2023 15:03:31 -0500 Subject: [PATCH] LangRef: Add !associated to list of preserved global metadata --- llvm/docs/LangRef.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 360e23d..2cfceb0 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -5406,9 +5406,10 @@ and ``g2`` using the ``!dbg`` identifier: Unlike instructions, global objects (functions and global variables) may have multiple metadata attachments with the same identifier. -A transformation is required to drop any metadata attachment that it does not -know or know it can't preserve. Currently there is an exception for metadata -attachment to globals for ``!func_sanitize``, ``!type`` and ``!absolute_symbol`` which can't be +A transformation is required to drop any metadata attachment that it +does not know or know it can't preserve. Currently there is an +exception for metadata attachment to globals for ``!func_sanitize``, +``!type``, ``!absolute_symbol`` and ``!associated`` which can't be unconditionally dropped unless the global is itself deleted. Metadata attached to a module using named metadata may not be dropped, with -- 2.7.4