[PATCH] D143511: [CodeGen] Add standard print/debug utilities to MVT

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 09:10:58 PST 2023


reames created this revision.
reames added reviewers: craig.topper, RKSimon, paulwalker-arm, frasercrmck.
Herald added subscribers: jobnoorman, luke, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, asb, kbarton, hiraditya, arichardson, nemanjai, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, MaskRay.
Herald added a project: LLVM.

Doing so makes it easier to do printf style debugging in idiomatic manner. I followed the code structure of Value with only the definition of dump being #ifdef out in non-debug builds. Not sure if this is the "right" option; we don't seem to have any single consistent scheme on how dump is handled.

Note: This is a follow up to D143454 <https://reviews.llvm.org/D143454> which did the same for EVT.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143511

Files:
  llvm/include/llvm/Support/MachineValueType.h
  llvm/lib/CodeGen/CallingConvLower.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  llvm/lib/CodeGen/ValueTypes.cpp
  llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
  llvm/lib/Target/Lanai/LanaiISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/XCore/XCoreISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143511.495571.patch
Type: text/x-patch
Size: 8442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230207/bebf9607/attachment.bin>


More information about the llvm-commits mailing list