MIRParser: Fix asserting with invalid flags on machine operands
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Mar 2022 13:36:47 +0000 (09:36 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 Apr 2022 01:46:26 +0000 (21:46 -0400)
commitced1250b0f458c3dfeecb8157dd4838d87c8288d
tree3d2878ab4e796430b7a68f41ffffff43c6e4c063
parentbcf8f2188bd53b2874bcd142960d22f3334e2051
MIRParser: Fix asserting with invalid flags on machine operands

Constructing an operand with kills on defs and deads on uses asserts
in the constructor, so diagnose these.
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/test/CodeGen/MIR/AMDGPU/dead-flag-on-use-operand-parse-error.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/AMDGPU/killed-flag-on-def-parse-error.mir [new file with mode: 0644]