aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorVyacheslav Levytskyy <vyacheslav.levytskyy@intel.com>2024-03-25 10:13:42 +0100
committerGitHub <noreply@github.com>2024-03-25 10:13:42 +0100
commit99c40f6ba60ea6e5dbd3f015956c7d2f6e25e54c (patch)
tree318ac426908685e3b685d6c9b331cfab93597b4a /llvm/lib/CodeGen/MachineFunctionPass.cpp
parent75e528fdd9594ecb6fdb5d9e7bee1506f7e43be0 (diff)
downloadllvm-99c40f6ba60ea6e5dbd3f015956c7d2f6e25e54c.zip
llvm-99c40f6ba60ea6e5dbd3f015956c7d2f6e25e54c.tar.gz
llvm-99c40f6ba60ea6e5dbd3f015956c7d2f6e25e54c.tar.bz2
[SPIR-V] Introduce a command line option to support compatibility with Khronos SPIRV Translator (#86101)
SPIRV-LLVM-Translator project (https://github.com/KhronosGroup/SPIRV-LLVM-Translator) from Khronos Group is a tool and a library for bi-directional translation between SPIR-V and LLVM IR. In its backward translation from SPIR-V to LLVM IR SPIRV-LLVM-Translator isn't necessarily able to cover the same SPIR-V patterns/instructions set that SPIRV Backend produces, even if we target the same SPIR-V version in both SPIRV-LLVM-Translator and SPIRV Backend projects. To improve interoperability and ability to apply SPIRV Backend output in different products this PR introduces a notion of a mode of SPIR-V output that is compatible with a subset of SPIR-V supported by SPIRV-LLVM-Translator. This includes a new command line option that doesn't influence default behavior of SPIRV Backend and one test case that demonstrates how this command line option may be used to get a practical benefit of producing that one of two possible and similar output options that can be understood by SPIRV-LLVM-Translator.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions