[all-commits] [llvm/llvm-project] fdcb9c: [OpenCL] Refactor shuffle builtin decls
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Wed Apr 21 04:00:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fdcb9c272899fc270bd9bd067dc20363f54ff190
https://github.com/llvm/llvm-project/commit/fdcb9c272899fc270bd9bd067dc20363f54ff190
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)
Changed paths:
M clang/lib/Sema/OpenCLBuiltins.td
Log Message:
-----------
[OpenCL] Refactor shuffle builtin decls
The shuffle and shuffle2 builtins relied on processing two TypeLists
for different arguments in sync. This will no longer work when a type
(e.g. double) in one of the TypeLists is optional.
Rewrite the declarations using explicit types instead of GenericTypes.
Commit: e2b3b89bf1ce74bf889897e0353a3e3fa93e4452
https://github.com/llvm/llvm-project/commit/e2b3b89bf1ce74bf889897e0353a3e3fa93e4452
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)
Changed paths:
M clang/lib/Sema/OpenCLBuiltins.td
M clang/lib/Sema/SemaLookup.cpp
M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
Log Message:
-----------
[OpenCL] Do not add builtins with unavailable types
Add functionality to assign extensions to types in OpenCLBuiltins.td
and use that information to filter candidates that should not be
exposed if a type is not available.
Differential Revision: https://reviews.llvm.org/D100209
Compare: https://github.com/llvm/llvm-project/compare/174e796c7d41...e2b3b89bf1ce
More information about the All-commits
mailing list