[PATCH] D146906: Generate `MachineValueType.h` (partially) from `ValueTypes.td`

NAKAMURA Takumi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 26 03:37:34 PDT 2023


chapuni created this revision.
Herald added a project: All.
chapuni requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- Implement `VTEmitter` as `llvm-tblgen -gen-vt`.
- Create a copy of `llvm/Support/MachineValueType.h` into `unittests/Support`. It includes `GenVT.inc` generated by `VTEmitter`.
- Implement `MVTTest` in `SupportTests`. It checks equivalence between `llvm/Support/MachineValueType.h` and the generated header.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146906

Files:
  llvm/unittests/Support/CMakeLists.txt
  llvm/unittests/Support/MVTTest.cpp
  llvm/unittests/Support/MachineValueType.h
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/VTEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146906.508394.patch
Type: text/x-patch
Size: 47233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230326/18dbbf71/attachment.bin>


More information about the llvm-commits mailing list