diff options
author | Michal Paszkowski <michal.paszkowski@outlook.com> | 2023-02-27 21:26:09 +0100 |
---|---|---|
committer | Michal Paszkowski <michal.paszkowski@outlook.com> | 2023-02-27 21:39:25 +0100 |
commit | 5ac69674bf4fbe4adaca4170a2ad60c8a32613ed (patch) | |
tree | b173355254f844484728ba028339abf336977f7d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | a700fb3d9b31dbcfc9d173c396c1ec644ea40c6d (diff) | |
download | llvm-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