diff options
-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: |