[DirectX backend] [NFC]Add DXILOpBuilder to generate DXIL operation
authorXiang Li <python3kgae@outlook.com>
Sat, 2 Jul 2022 20:44:46 +0000 (13:44 -0700)
committerXiang Li <python3kgae@outlook.com>
Tue, 26 Jul 2022 04:49:59 +0000 (21:49 -0700)
commit57006b14fa0eea0705a777e3f9c3478ae28c8d41
tree73b95f451d3711667c72ab19af61e5033c9d36a8
parent58c94808450d0ec73bed38d1661314c1a3d56e2f
[DirectX backend] [NFC]Add DXILOpBuilder to generate DXIL operation

A new helper class DXILOpBuilder is added to create DXIL op function calls.

TableGen backend for DXILOperation will create table for DXIL op function parameter types.
When create DXIL op function, these parameter types will used to create the function type.

Reviewed By: bogner

Differential Revision: https://reviews.llvm.org/D130291
llvm/include/llvm/Support/DXILOperationCommon.h [new file with mode: 0644]
llvm/lib/Target/DirectX/CMakeLists.txt
llvm/lib/Target/DirectX/DXILOpBuilder.cpp [new file with mode: 0644]
llvm/lib/Target/DirectX/DXILOpBuilder.h [new file with mode: 0644]
llvm/lib/Target/DirectX/DXILOpLowering.cpp
llvm/utils/TableGen/DXILEmitter.cpp