[PATCH] D125435: [TableGen][DirectX] Add tableGen backend to generate DXIL operation for DirectX backend.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 16:59:40 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: dsanders, Bigcheese, labath, beanz, pow2clk, jdoerfert, jdenny, thakis.
Herald added subscribers: mgrang, hiraditya, mgorny.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A new tableGen backend gen-dxil-enum is added to generate enum for DXIL operation and operation class.

A new file "DXILConstants.inc" will be generated when build DirectX target which include the enums.

More tableGen backends will be added to replace manually written table in DirectX backend.
The unused fields in dxil_inst will be used in future PR.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125435

Files:
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/DXIL.td
  llvm/lib/Target/DirectX/DXILConstants.h
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/DXILEmitter.cpp
  llvm/utils/TableGen/TableGen.cpp
  llvm/utils/TableGen/TableGenBackends.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125435.428821.patch
Type: text/x-patch
Size: 13715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/9a56cbf4/attachment.bin>


More information about the llvm-commits mailing list