brintos

brintos / llvm-project-archived public Read only

0
0
Text · 735 B · 2d4dc6b Raw
23 lines · plain
1; RUN: llvm-as <%s -bitcode-mdindex-threshold=0 | llvm-bcanalyzer -dump | FileCheck %s2; Check that distinct nodes are emitted before uniqued nodes, even if that3; breaks post-order traversals.4 5; Nodes in this testcase are numbered to match how they are referenced in6; bitcode.  !1 is referenced as opN=1.7 8; CHECK:       <DISTINCT_NODE op0=2/>9!1 = distinct !{!2}10 11; CHECK-NEXT:  <NODE op0=1/>12!2 = !{!1}13 14; Before the named records we emit the index containing the position of the15; previously emitted records16; CHECK-NEXT:   <INDEX {{.*}} (offset match)17 18; Note: named metadata nodes are not cannot reference null so their operands19; are numbered off-by-one.20; CHECK-NEXT:  <NAME21; CHECK-NEXT:  <NAMED_NODE op0=1/>22!named = !{!2}23