[all-commits] [llvm/llvm-project] 3be1ae: [CodeGen] Add standard print/debug utilities to MVT
Philip Reames via All-commits
all-commits at lists.llvm.org
Tue Feb 7 10:50:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3be1ae24fb17bf90cb3d8fc8e83ebd9d4523a594
https://github.com/llvm/llvm-project/commit/3be1ae24fb17bf90cb3d8fc8e83ebd9d4523a594
Author: Philip Reames <preames at rivosinc.com>
Date: 2023-02-07 (Tue, 07 Feb 2023)
Changed paths:
M llvm/include/llvm/Support/MachineValueType.h
M llvm/lib/CodeGen/CallingConvLower.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
M llvm/lib/CodeGen/ValueTypes.cpp
M llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
M llvm/lib/Target/Lanai/LanaiISelLowering.cpp
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/XCore/XCoreISelLowering.cpp
Log Message:
-----------
[CodeGen] Add standard print/debug utilities to MVT
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 which did the same for EVT.
Differential Revision: https://reviews.llvm.org/D143511
More information about the All-commits
mailing list