[all-commits] [llvm/llvm-project] 6cb763: [OpenCL] Change OpenCL builtin version encoding
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Mon Apr 19 02:23:51 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6cb7631df348a0fa8bb64c518d47838525f4a40b
https://github.com/llvm/llvm-project/commit/6cb7631df348a0fa8bb64c518d47838525f4a40b
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-04-19 (Mon, 19 Apr 2021)
Changed paths:
M clang/lib/Sema/SemaLookup.cpp
M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
Log Message:
-----------
[OpenCL] Change OpenCL builtin version encoding
Instead of using a MinVersion and MaxVersion field, encode the version
of a builtin using a mask that aligns better with version handling in
OpenCLOptions.h. In addition, this saves a field in the BuiltinTable.
This change allows a finer-grained control over the OpenCL versions in
which a builtin is available: instead of a range, we can now toggle
each version individually.
The fine-grained version control is not yet exposed on the TableGen
definitions side, as changes for OpenCL 3 feature optionality still
need to be defined and will affect how we want to expose these.
Differential Revision: https://reviews.llvm.org/D100492
More information about the All-commits
mailing list