[llvm] r225479 - LangRef: Add usage points for distinct MDNodes
Duncan P. N. Exon Smith
dexonsmith at apple.com
Thu Jan 8 15:50:26 PST 2015
Author: dexonsmith
Date: Thu Jan 8 17:50:26 2015
New Revision: 225479
URL: http://llvm.org/viewvc/llvm-project?rev=225479&view=rev
Log:
LangRef: Add usage points for distinct MDNodes
Omission pointed out by Sean Silva!
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=225479&r1=225478&r2=225479&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Thu Jan 8 17:50:26 2015
@@ -2854,6 +2854,10 @@ Metadata nodes that aren't uniqued use t
!0 = distinct !{!"test\00", i32 10}
+``distinct`` nodes are useful when nodes shouldn't be merged based on their
+content. They can also occur when transformations cause uniquing collisions
+when metadata operands change.
+
A :ref:`named metadata <namedmetadatastructure>` is a collection of
metadata nodes, which can be looked up in the module symbol table. For
example:
More information about the llvm-commits
mailing list