aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMichal Paszkowski <michal.paszkowski@outlook.com>2023-02-27 21:26:09 +0100
committerMichal Paszkowski <michal.paszkowski@outlook.com>2023-02-27 21:39:25 +0100
commit5ac69674bf4fbe4adaca4170a2ad60c8a32613ed (patch)
treeb173355254f844484728ba028339abf336977f7d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta700fb3d9b31dbcfc9d173c396c1ec644ea40c6d (diff)
downloadllvm-5ac69674bf4fbe4adaca4170a2ad60c8a32613ed.zip
llvm-5ac69674bf4fbe4adaca4170a2ad60c8a32613ed.tar.gz
llvm-5ac69674bf4fbe4adaca4170a2ad60c8a32613ed.tar.bz2
[SPIR-V] Support TargetExtType for SPIR-V builtin types
This patch adds support for TargetExtType/target(...) representing SPIR-V builtin types. After D135202, target(...) is the preferred way for representing SPIR-V builtin types in LLVM IR and the only working in the opaque pointer mode. In order to maintain compatibility with LLVM IR generated by older versions of Clang and LLVM/SPIR-V Translator, pointers-to-opaque-structs denoting SPIR-V/OpenCL builtin types will be translated to equivalent SPIR-V target extension types. This translation is only available in the typed pointer mode (-opaque-pointers=0). The relevant LIT tests with SPIR-V builtins were converted to use the new target(...) notation. Differential Revision: https://reviews.llvm.org/D144494
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions