aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorpython3kgae <python3kgae@outlook.com>2022-05-07 00:32:17 -0700
committerpython3kgae <python3kgae@outlook.com>2022-05-11 08:40:13 -0700
commit0c7f7f1b01e1bdf3b4b4008d74a1d36e68fda478 (patch)
tree2034097eaea858c257db538bf518ca18ad10721d /clang/lib/Frontend/CompilerInvocation.cpp
parenta0a406b2577be6eaa6db6836d254b2bde713a18f (diff)
downloadllvm-0c7f7f1b01e1bdf3b4b4008d74a1d36e68fda478.zip
llvm-0c7f7f1b01e1bdf3b4b4008d74a1d36e68fda478.tar.gz
llvm-0c7f7f1b01e1bdf3b4b4008d74a1d36e68fda478.tar.bz2
[DirectX backend] Add pass to emit dxil metadata.
A new pass DxilEmitMetadata is added to translate information saved in llvm ir into metadata to match DXIL spec. Only generate DXIL validator version in this PR. In llvm ir, validator version is saved in ModuleFlag with "dx.valver" as Key. !llvm.module.flags = !{!0, !1} !1 = !{i32 6, !"dx.valver", !2} !2 = !{i32 1, i32 1} DXIL validator version has major and minor versions that are specified as named metadata: !dx.valver = !{!2} !2 = !{i32 1, i32 7} Reviewed By: kuhar, beanz Differential Revision: https://reviews.llvm.org/D125158
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions