[PATCH] D118605: [OpenCL] Add support of language builtins for OpenCL C 3.0
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 11 04:48:09 PST 2022
Anastasia added a comment.
In D118605#3313859 <https://reviews.llvm.org/D118605#3313859>, @azabaznov wrote:
>> There are tests checking for this (e.g. clang/test/Frontend/opencl.cl), so we need this check to preserve the existing behavior indeed.
>
> Thanks. The other test is `SemaOpenCL/clang-builtin-version.cl`.
>
>> But it might be worth asking someone outside of the OpenCL community whether it's desirable to use the LanguageID enum in this way.
>
> I personally think this looks good now, for OpenCL in particularly, as it became version-agnostic (except for DSE). But we still are querying language options only, and we expect language options for generic AS, pipes and DSE to be immutable at this point.
Note that this `LanguageID` is intended for Builtins use because there are other `LanguageID`s used elsewhere.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118605/new/
https://reviews.llvm.org/D118605
More information about the cfe-commits
mailing list