diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2021-04-19 10:23:13 +0100 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2021-04-19 10:23:13 +0100 |
commit | 6cb7631df348a0fa8bb64c518d47838525f4a40b (patch) | |
tree | 4eb2a736f0fb9a3575ff2cd3b92a2e10c263329a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 64e4dfd72b42ba76186c61a6e463a5f5cbb0340c (diff) | |
download | llvm-6cb7631df348a0fa8bb64c518d47838525f4a40b.zip llvm-6cb7631df348a0fa8bb64c518d47838525f4a40b.tar.gz llvm-6cb7631df348a0fa8bb64c518d47838525f4a40b.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions