[TableGen][DirectX] Add tableGen backend to generate DXIL operation for DirectX backend.
authorpython3kgae <python3kgae@outlook.com>
Wed, 11 May 2022 23:56:38 +0000 (16:56 -0700)
committerXiang Li <python3kgae@outlook.com>
Wed, 15 Jun 2022 00:31:58 +0000 (17:31 -0700)
commit435897b41d60ba919cdc0a1e6fd8a03cfe038650
treec2c5d1cee168a81939a4df76c91efa1fc71c8cb0
parentb4dff404f37afa1fcad4a96c05462928eb0b89b1
[TableGen][DirectX] Add tableGen backend to generate DXIL operation for DirectX backend.

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.

Reviewed By: bogner

Differential Revision: https://reviews.llvm.org/D125435
llvm/lib/Target/DirectX/CMakeLists.txt
llvm/lib/Target/DirectX/DXIL.td [new file with mode: 0644]
llvm/lib/Target/DirectX/DXILConstants.h
llvm/lib/Target/DirectX/DXILOpLowering.cpp
llvm/test/CodeGen/DirectX/umax.ll [new file with mode: 0644]
llvm/utils/TableGen/CMakeLists.txt
llvm/utils/TableGen/DXILEmitter.cpp [new file with mode: 0644]
llvm/utils/TableGen/TableGen.cpp
llvm/utils/TableGen/TableGenBackends.h