[PATCH] D125520: [TableGen][DirectX] Add tableGen backend to generate DXIL operation table.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 22:36:13 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: dsanders, Bigcheese, labath, beanz, pow2clk, jdoerfert, jdenny, thakis, nhaehnle.
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-operation-table is added to generate table of DXIL operations.

A new file "DXILOperationTable.inc" will be generated when build DirectX target which include 3 functions,
getOpCodeProperty, getOpCodeName and getOpCodeClassName.
Each of these functions has a table which generate based on DXIL operations.

These generated functions will replace the manually written functions which used for query DXIL operation information.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125520

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125520.429140.patch
Type: text/x-patch
Size: 10525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220513/1226233f/attachment.bin>


More information about the llvm-commits mailing list