diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2022-02-24 15:17:24 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2022-02-24 15:17:24 +0000 |
commit | 28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3 (patch) | |
tree | 04476ba52026882227bdd7782acf1c15cf145cd5 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 5910150140cd5e781e7827d160ddce0a146cddd4 (diff) | |
download | llvm-28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3.zip llvm-28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3.tar.gz llvm-28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3.tar.bz2 |
[OpenCL] Handle TypeExtensions in OpenCLBuiltinFileEmitter
Until now, any types that had TypeExtensions attached to them were not
guarded with those extensions. Extend the OpenCLBuiltinFileEmitter
such that all required extensions are emitted for the types of a
builtin function.
The `clang-tblgen -gen-clang-opencl-builtin-tests` emitter will now
produce e.g.:
#if defined(cl_khr_fp16) && defined(cl_khr_fp64)
half8 test11802_convert_half8_rtp(double8 arg1) {
return convert_half8_rtp(arg1);
}
#endif // TypeExtension
Differential Revision: https://reviews.llvm.org/D120262
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions