[all-commits] [llvm/llvm-project] 28cdcf: [OpenCL] Handle TypeExtensions in OpenCLBuiltinFil...
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Thu Feb 24 07:18:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3
https://github.com/llvm/llvm-project/commit/28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2022-02-24 (Thu, 24 Feb 2022)
Changed paths:
M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list