As a first step this implementation enables compilation of the offload
code.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Unit tests: unknown.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
clang/include/clang/Driver/Options.td | ||
---|---|---|
3413–3415 | Usually, we add a pair of such flags, -fsycl and fno-sycl to have the explicit way to disable some functionality. | |
clang/lib/Driver/ToolChains/Clang.cpp | ||
4027–4029 | No need for braces here | |
clang/test/Driver/sycl.c | ||
6 | I would add a check that this flag is found on clang invocation with -cc1 option (i.e. it is passed to the frontend) |
Unit tests: unknown.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
Unit tests: unknown.
clang-tidy: pass.
clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.
Build artifacts: clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
4028–4030 | I suggest to use hasFlag function, something like this: if (Args.hasFlag(options::OPT_fsycl, options::OPT_fno_sycl, false)) CmdArgs.push_back("-fsycl-is-device"); |
Refactor clang/lib/Driver/ToolChains/Clang.cpp in accordance with Alexey's suggestion.
Unit tests: unknown.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: CMakeCache.txt, console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
Unit tests: unknown.
clang-tidy: pass.
clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.
Build artifacts: clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
Usually, we add a pair of such flags, -fsycl and fno-sycl to have the explicit way to disable some functionality.