[PATCH] D143454: [CodeGen] Add standard print/debug utilities to EVT

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 18:28:19 PST 2023


reames created this revision.
reames added reviewers: craig.topper, paulwalker-arm, frasercrmck, RKSimon.
Herald added subscribers: bollu, hiraditya, mcrosier.
Herald added a project: All.
reames requested review of this revision.
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 debug is handled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143454

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  llvm/lib/CodeGen/ValueTypes.cpp

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


More information about the llvm-commits mailing list