[llvm] [IR] Introduce !captures metadata (PR #160913)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 30 04:00:07 PDT 2025
================
@@ -3025,6 +3025,9 @@ static void combineMetadata(Instruction *K, const Instruction *J,
// Preserve !nosanitize if both K and J have it.
K->setMetadata(Kind, JMD);
break;
+ case LLVMContext::MD_captures:
+ K->setMetadata(Kind, JMD ? MDNode::concatenate(JMD, KMD) : nullptr);
----------------
nikic wrote:
I've updated the implementation to always produce the canonical representation.
https://github.com/llvm/llvm-project/pull/160913
More information about the llvm-commits
mailing list