[TableGen][DirectX] generate DXIL operation table with TableGen.
authorXiang Li <python3kgae@outlook.com>
Thu, 16 Jun 2022 21:35:47 +0000 (14:35 -0700)
committerXiang Li <python3kgae@outlook.com>
Fri, 17 Jun 2022 06:25:57 +0000 (23:25 -0700)
commit0d2dde20be14e42a26280fd80b78f09edf7befe6
tree1aa679a01e34aaf086c8da78314cf8d9a7581a92
parentf4b7b66c4c75d40c099ef41ecea0d3be27bdb6c1
[TableGen][DirectX] generate DXIL operation table with TableGen.

Add more feature to tableGen backend gen-dxil-operation.

It will generate getOpCodeProperty, getOpCodeClassName and getOpCodeName when build DirectX target.
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.

Reviewed By: bogner

Differential Revision: https://reviews.llvm.org/D125520
llvm/lib/Target/DirectX/DXILOpLowering.cpp
llvm/utils/TableGen/DXILEmitter.cpp