diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-08 23:50:26 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-08 23:50:26 +0000 |
commit | 99010348222f53e542f10db6c59eeb7e546334dc (patch) | |
tree | d700fef8b7757b7f377c1bc8501fad676631b5b8 | |
parent | 8cc4002df2a8a07aa14d01ac9f7c2402254f27a8 (diff) | |
download | bcm5719-llvm-99010348222f53e542f10db6c59eeb7e546334dc.tar.gz bcm5719-llvm-99010348222f53e542f10db6c59eeb7e546334dc.zip |
LangRef: Add usage points for distinct MDNodes
Omission pointed out by Sean Silva!
llvm-svn: 225479
-rw-r--r-- | llvm/docs/LangRef.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 0a1c7768d5a..b3f97de25b4 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -2854,6 +2854,10 @@ Metadata nodes that aren't uniqued use the ``distinct`` keyword. For example: !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: |