llvm-project/llvm/test/CodeGen/MIR/AMDGPU
Justin Bogner 6c452834a1 MIR: Print the register class or bank in vreg defs
This updates the MIRPrinter to include the regclass when printing
virtual register defs, which is already valid syntax for the
parser. That is, given 64 bit %0 and %1 in a "gpr" regbank,

  %1(s64) = COPY %0(s64)

would now be written as

  %1:gpr(s64) = COPY %0(s64)

While this change alone introduces a bit of redundancy with the
registers block, it allows us to update the tests to be more concise
and understandable and brings us closer to being able to remove the
registers block completely.

Note: We generally only print the class in defs, but there is one
exception. If there are uses without any defs whatsoever, we'll print
the class on all uses. I'm not completely convinced this comes up in
meaningful machine IR, but for now the MIRParser and MachineVerifier
both accept that kind of stuff, so we don't want to have a situation
where we can print something we can't parse.

llvm-svn: 316479
2017-10-24 18:04:54 +00:00
..
expected-target-index-name.mir AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernel 2017-03-21 21:39:51 +00:00
fold-imm-f16-f32.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
fold-multiple.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
intrinsics.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
invalid-target-index-operand.mir AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernel 2017-03-21 21:39:51 +00:00
lit.local.cfg
memory-legalizer-atomic-insert-end.mir AMDGPU: Implement memory model 2017-07-21 21:19:23 +00:00
memory-legalizer-multiple-mem-operands-atomics.mir AMDGPU: Handle more than one memory operand in SIMemoryLegalizer 2017-09-07 16:14:21 +00:00
memory-legalizer-multiple-mem-operands-nontemporal-1.mir AMDGPU: Handle non-temporal loads and stores 2017-09-07 17:14:54 +00:00
memory-legalizer-multiple-mem-operands-nontemporal-2.mir AMDGPU: Handle non-temporal loads and stores 2017-09-07 17:14:54 +00:00
stack-id.mir Add an ID field to StackObjects 2017-07-20 21:03:45 +00:00
syncscopes.mir AMDGPU: Handle non-temporal loads and stores 2017-09-07 17:14:54 +00:00
target-flags.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
target-index-operands.mir AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernel 2017-03-21 21:39:51 +00:00