]> granicus.if.org Git - llvm/commit
[MIRPrinter] Use %subreg.xxx syntax for subregister index operands
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 6 Nov 2017 21:46:06 +0000 (21:46 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 6 Nov 2017 21:46:06 +0000 (21:46 +0000)
commit4cbab70b62524aeaa820e691ffe770dd42027856
tree02c5fc496b660f48ec3032a143fa7ff6a5f015d8
parentaceaaf0aecb41634ae29940a021745fd98221e63
[MIRPrinter] Use %subreg.xxx syntax for subregister index operands

Summary:
Print %subreg.<subregidxname> instead of just the subregister
index when printing immediate operands corresponding to subreg
indices in INSERT_SUBREG, EXTRACT_SUBREG, SUBREG_TO_REG and
REG_SEQUENCE.

Reviewers: qcolombet, MatzeB

Reviewed By: MatzeB

Subscribers: nhaehnle, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D39696

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317513 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/AArch64/GlobalISel/select-insert-extract.mir
test/CodeGen/AArch64/GlobalISel/select-int-ext.mir
test/CodeGen/AMDGPU/GlobalISel/inst-select-load-smrd.mir
test/CodeGen/AMDGPU/detect-dead-lanes.mir
test/CodeGen/AMDGPU/opt-sgpr-to-vgpr-copy.mir
test/CodeGen/MIR/X86/subregister-index-operands.mir
test/CodeGen/X86/GlobalISel/select-cmp.mir
test/CodeGen/X86/GlobalISel/select-copy.mir
test/CodeGen/X86/GlobalISel/select-ext-x86-64.mir
test/CodeGen/X86/GlobalISel/select-ext.mir
test/CodeGen/X86/GlobalISel/select-intrinsic-x86-flags-read-u32.mir