[TableGen][DirectX] Add tableGen backend to generate map from llvm intrinsic to DXIL...
authorXiang Li <python3kgae@outlook.com>
Wed, 15 Jun 2022 03:46:37 +0000 (20:46 -0700)
committerXiang Li <python3kgae@outlook.com>
Thu, 16 Jun 2022 02:41:09 +0000 (19:41 -0700)
commit264c09b732ab61936a499f133abdfc67df422a86
tree4f724d1f4ca396082f02db236e2ce87ef44efa27
parent80aa41d9df3dbe4ee673b3b0a8b41854b69820c5
[TableGen][DirectX] Add tableGen backend to generate map from llvm intrinsic to DXIL operation.

A new tableGen backend gen-dxil-intrinsic-map is added to generate map from llvm intrinsic to DXIL operation.

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

The generated map will replace the manually created map when find DXIL operation from llvm intrinsic.

Reviewed By: bogner

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