[NFC] [HLSL] Move common metadata to LLVMFrontend
authorChris Bieneman <chris.bieneman@me.com>
Fri, 14 Oct 2022 18:33:25 +0000 (13:33 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Fri, 14 Oct 2022 18:40:04 +0000 (13:40 -0500)
commit911d2dc23035454cb85422922c19259855e33bba
tree811bdde7da6aa04c0d0d7421be607f5586cf8152
parent44f0b13494ae89fa966173648891b9fa9b54ddca
[NFC] [HLSL] Move common metadata to LLVMFrontend

This change pulls some code from the DirectX backend into a new
LLVMFrontendHLSL library to share utility data structures between the
HLSL code generation in Clang and the backend in LLVM.

This is a small refactoring as a first start to get code into the
right structure and get the library built and dependencies correct.

Fixes #58000 (https://github.com/llvm/llvm-project/issues/58000)

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D135110
clang/lib/CodeGen/CGHLSLRuntime.cpp
clang/lib/CodeGen/CMakeLists.txt
llvm/include/llvm/Frontend/HLSL/HLSLResource.h [new file with mode: 0644]
llvm/lib/Frontend/CMakeLists.txt
llvm/lib/Frontend/HLSL/CMakeLists.txt [new file with mode: 0644]
llvm/lib/Frontend/HLSL/HLSLResource.cpp [new file with mode: 0644]
llvm/lib/Target/DirectX/CMakeLists.txt
llvm/lib/Target/DirectX/DXILResource.cpp
llvm/lib/Target/DirectX/DXILResource.h