Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/machine-metadata-err7.mir
Michael Liao e818eface8 [MIRParser] Add machine metadata.
- Add standalone metadata parsing support so that machine metadata nodes
  could be populated before and accessed during MIR is parsed.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D103282
2021-06-28 22:29:36 -04:00

16 lines
336 B
YAML

# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that the MIR parser detects errors when parsing machine
# metadata.
--- |
define i32 @t0() {
ret i32 0
}
...
---
name: t0
machineMetadataNodes:
- '!9 = distinct !{!, !7, !"Dst"}'
...
# CHECK: [[@LINE-2]]:23: expected metadata id after '!'