llvm-project/llvm/test/CodeGen/MIR/X86
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
..
auto-successor.mir Add missing target triple to test 2017-05-05 21:50:26 +00:00
basic-block-liveins.mir CodeGen: Assert that liveness is up to date when reading block live-ins. 2017-01-05 20:01:19 +00:00
basic-block-not-at-start-of-line-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
block-address-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
branch-probabilities.mir MIParser/MIRPrinter: Compute block successors if not explicitely specified 2017-05-05 21:09:30 +00:00
callee-saved-info.mir MIR: Serialize CaleeSavedInfo Restored flag 2017-09-28 18:52:14 +00:00
cfi-def-cfa-offset.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
cfi-def-cfa-register.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
cfi-offset.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
constant-pool-item-redefinition-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
constant-pool.mir [MIR] Print target-specific constant pools 2017-08-02 11:09:30 +00:00
constant-value-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
dead-register-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
def-register-already-tied-error.mir MIRParser/MIRPrinter: Compute HasInlineAsm instead of printing/parsing it 2016-08-24 22:34:06 +00:00
diexpr-win32.mir [codeview] Generalize DIExpression parsing to handle load chains 2017-08-31 15:56:49 +00:00
duplicate-memory-operand-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
duplicate-register-flag-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
dynamic-regmask.ll [MIR] Test assumes x64 windows calling convention upon printing/parsing MIR output/input. 2017-03-19 13:23:20 +00:00
early-clobber-register-flag.mir MIRParser/MIRPrinter: Compute HasInlineAsm instead of printing/parsing it 2016-08-24 22:34:06 +00:00
empty0.mir CodeGen: Refactor MIR parsing 2017-06-06 00:44:35 +00:00
empty1.mir CodeGen: Refactor MIR parsing 2017-06-06 00:44:35 +00:00
empty2.mir CodeGen: Refactor MIR parsing 2017-06-06 00:44:35 +00:00
expected-align-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-alignment-after-align-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-basic-block-at-start-of-body.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-block-reference-in-blockaddress.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-comma-after-cfi-register.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
expected-comma-after-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-different-implicit-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-different-implicit-register-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-function-reference-after-blockaddress.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-global-value-after-blockaddress.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-integer-after-offset-sign.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-integer-after-tied-def.mir GlobalISel: disambiguate types when printing MIR 2016-09-12 11:20:10 +00:00
expected-integer-in-successor-weight.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-load-or-store-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-machine-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-metadata-node-after-debug-location.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
expected-metadata-node-after-exclaim.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
expected-metadata-node-in-stack-object.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-named-register-in-allocation-hint.mir MIRTests: Remove unnecessary 2>&1 redirection 2017-02-22 18:47:41 +00:00
expected-named-register-in-callee-saved-register.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-named-register-in-functions-livein.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
expected-named-register-livein.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-newline-at-end-of-list.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-number-after-bb.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-offset-after-cfi-operand.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
expected-pointer-value-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-positive-alignment-after-align.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-register-after-cfi-operand.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
expected-register-after-flags.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-size-integer-after-memory-operation.mir MIR: parse & print the atomic parts of a MachineMemOperand. 2017-02-13 22:14:08 +00:00
expected-stack-object.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-subregister-after-colon.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
expected-target-flag-name.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-tied-def-after-lparen.mir GlobalISel: disambiguate types when printing MIR 2016-09-12 11:20:10 +00:00
expected-value-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
expected-virtual-register-in-functions-livein.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
external-symbol-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
fixed-stack-memory-operands.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
fixed-stack-object-redefinition-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
fixed-stack-objects.mir Add an ID field to StackObjects 2017-07-20 21:03:45 +00:00
frame-info-save-restore-points.mir Add extra operand to CALLSEQ_START to keep frame part set up previously 2017-05-09 13:35:13 +00:00
frame-info-stack-references.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
frame-setup-instruction-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
function-liveins.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
generic-instr-type.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
global-value-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
immediate-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
implicit-register-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
inline-asm-registers.mir MIRParser/MIRPrinter: Compute HasInlineAsm instead of printing/parsing it 2016-08-24 22:34:06 +00:00
inline-asm.mir MIRPrinter: Avoid assert() when printing empty INLINEASM strings. 2017-06-06 19:00:58 +00:00
instructions-debug-location.mir Parse and print DIExpressions inline to ease IR and MIR testing 2017-08-23 20:31:27 +00:00
invalid-constant-pool-item.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
invalid-metadata-node-type.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
invalid-target-flag-name.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
invalid-tied-def-index-error.mir MIRParser/MIRPrinter: Compute HasInlineAsm instead of printing/parsing it 2016-08-24 22:34:06 +00:00
jump-table-info.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
jump-table-redefinition-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
killed-register-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
large-cfi-offset-number-error.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
large-immediate-operand-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
large-index-number-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
large-offset-number-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
large-size-in-memory-operand-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
lit.local.cfg
liveout-register-mask.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
machine-basic-block-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
machine-instructions.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
machine-verifier.mir CodeGen: Assert that liveness is up to date when reading block live-ins. 2017-01-05 20:01:19 +00:00
memory-operands.mir MIRParser: Use shorter cfi identifiers 2016-07-26 18:20:00 +00:00
metadata-operands.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
missing-closing-quote.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
missing-comma.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
missing-implicit-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
named-registers.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
newline-handling.mir [MIRPrinter] Print raw branch probabilities as expected by MIRParser 2016-11-18 19:37:24 +00:00
null-register-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
register-mask-operands.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
register-operand-class-invalid0.mir MIRParser: Allow regclass specification on operand 2017-01-18 00:59:19 +00:00
register-operand-class-invalid1.mir MIRParser: Allow regclass specification on operand 2017-01-18 00:59:19 +00:00
register-operand-class.mir [Improve CodeGen Testing] This patch renables MIRPrinter print fields which have value equal to its default. 2017-06-06 08:16:19 +00:00
register-operands-target-flag-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
roundtrip.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
simple-register-allocation-hints.mir [Improve CodeGen Testing] This patch renables MIRPrinter print fields which have value equal to its default. 2017-06-06 08:16:19 +00:00
simple-register-allocation-read-undef.mir [RegisterCoalescer] Don't set read-undef in pruneValues, only clear 2017-10-12 06:21:28 +00:00
spill-slot-fixed-stack-object-aliased.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
spill-slot-fixed-stack-object-immutable.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
spill-slot-fixed-stack-objects.mir MIR: Serialize CaleeSavedInfo Restored flag 2017-09-28 18:52:14 +00:00
stack-object-debug-info.mir MIR: Serialize CaleeSavedInfo Restored flag 2017-09-28 18:52:14 +00:00
stack-object-invalid-name.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
stack-object-operand-name-mismatch-error.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
stack-object-operands.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
stack-object-redefinition-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
stack-objects.mir MIR: Serialize CaleeSavedInfo Restored flag 2017-09-28 18:52:14 +00:00
standalone-register-error.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
subreg-on-physreg.mir MIRParser: Use dot instead of colon to mark subregisters 2016-07-26 21:49:34 +00:00
subregister-index-operands.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
subregister-operands.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
successor-basic-blocks-weights.mir [MIRPrinter] Print raw branch probabilities as expected by MIRParser 2016-11-18 19:37:24 +00:00
successor-basic-blocks.mir MIParser/MIRPrinter: Compute block successors if not explicitely specified 2017-05-05 21:09:30 +00:00
tied-def-operand-invalid.mir MIRParser/MIRPrinter: Compute HasInlineAsm instead of printing/parsing it 2016-08-24 22:34:06 +00:00
tied-physical-regs-match.mir [MachineVerifier] Add check that tied physregs aren't different. 2017-07-06 13:18:21 +00:00
undef-register-flag.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-fixed-stack-object.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
undefined-global-value.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-ir-block-in-blockaddress.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-ir-block-slot-in-blockaddress.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-jump-table-id.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-named-global-value.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-register-class.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
undefined-stack-object.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
undefined-value-in-memory-operand.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
undefined-virtual-register.mir MIRParser: Rewrite register info initialization; mostly NFC 2016-10-11 03:13:01 +00:00
unexpected-type-phys.mir [MIRParser] Fix a typo in comment and error message. 2016-12-22 21:56:35 +00:00
unknown-instruction.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
unknown-machine-basic-block.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
unknown-metadata-keyword.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
unknown-metadata-node.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
unknown-named-machine-basic-block.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
unknown-register.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
unknown-subregister-index-op.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
unknown-subregister-index.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
unreachable-mbb-undef-phi.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
unreachable_block.ll [MIRPrinter] Print empty successor lists when they cannot be guessed 2017-09-19 23:34:12 +00:00
unrecognized-character.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
variable-sized-stack-object-size-error.mir llc: Add support for -run-pass none 2016-07-16 02:24:59 +00:00
variable-sized-stack-objects.mir MIR: Serialize CaleeSavedInfo Restored flag 2017-09-28 18:52:14 +00:00
virtual-register-redefinition-error.mir MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it. 2016-08-24 01:32:41 +00:00
virtual-registers.mir MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00