[PATCH] D42239: [CodeGen] Print RegClasses on MI in verbose mode

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 05:51:42 PST 2018


thegameg created this revision.
thegameg added reviewers: MatzeB, dsanders.
Herald added a subscriber: javed.absar.

r322086 removed the trailing information describing reg classes for each register.

This patch adds printing reg classes next to every register when individual operands/instructions/basic blocks are printed. In the case of dumping MIR or printing a full function, by default don't print it.


https://reviews.llvm.org/D42239

Files:
  include/llvm/CodeGen/MachineBasicBlock.h
  include/llvm/CodeGen/MachineInstr.h
  include/llvm/CodeGen/MachineOperand.h
  lib/CodeGen/MIRPrinter.cpp
  lib/CodeGen/MachineBasicBlock.cpp
  lib/CodeGen/MachineFunction.cpp
  lib/CodeGen/MachineInstr.cpp
  lib/CodeGen/MachineOperand.cpp
  lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
  test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
  test/CodeGen/AArch64/aarch64-stp-cluster.ll
  test/CodeGen/AArch64/arm64-misched-forwarding-A53.ll
  test/CodeGen/AArch64/arm64-misched-memdep-bug.ll
  test/CodeGen/ARM/misched-int-basic-thumb2.mir
  test/CodeGen/ARM/misched-int-basic.mir
  test/CodeGen/ARM/single-issue-r52.mir
  test/CodeGen/X86/GlobalISel/x86_64-fallback.ll
  test/CodeGen/X86/misched-copy.ll
  unittests/CodeGen/MachineOperandTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42239.130398.patch
Type: text/x-patch
Size: 32982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180118/7e8b2add/attachment.bin>


More information about the llvm-commits mailing list