[PATCH] D102261: Introduce SYCL 2020 mode
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 11 10:56:17 PDT 2021
aaron.ballman created this revision.
aaron.ballman added reviewers: bader, erichkeane, jansvoboda11.
Herald added subscribers: Naghasan, dexonsmith, dang, Anastasia, ebevhan, yaxunl.
aaron.ballman requested review of this revision.
Herald added a project: clang.
Currently, we have support for SYCL 1.2.1 (also known as SYCL 2017). This patch introduces the start of support for SYCL 2020 mode, which is the latest SYCL standard available at (https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html). This sets the default SYCL to be 2020 in the driver, and introduces the notion of a "default" version (set to 2020) when cc1 is in SYCL mode but there was no explicit `-sycl-std=` specified on the command line.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102261
Files:
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Driver/sycl.c
clang/test/Preprocessor/sycl-macro.cpp
clang/unittests/Frontend/CompilerInvocationTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102261.344480.patch
Type: text/x-patch
Size: 11285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210511/cc9b00b4/attachment.bin>
More information about the cfe-commits
mailing list