Skip to content

Conversation

@srividya-sundaram
Copy link
Contributor

@srividya-sundaram srividya-sundaram commented Jan 26, 2026

This change enables passing O-group optimization options specified via -Xarch_<arch> through to SYCL JIT compilation.

Example:
clang -fsycl --offload-new-driver -Xarch_spir64 -O3 -### sycl-file.cpp

@srividya-sundaram srividya-sundaram changed the title Handle passing of O group via Xarch. [SYCL] Handle passing O-group options via -Xarch_<arch> for JIT compilation Jan 26, 2026
@srividya-sundaram srividya-sundaram marked this pull request as ready for review January 26, 2026 23:48
@srividya-sundaram srividya-sundaram requested a review from a team as a code owner January 26, 2026 23:48
Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - LGTM!

if (Kind == Action::OFK_SYCL) {
// Append device compiler arguments and their values to `CompilerArgs`.
for (Arg *A : BaseCompilerArgs)
A->render(BaseCompilerArgs, CompilerArgs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For efficiency, we can do this once and just fall into the Kind == Action::OFK_SYCL to add the implied args. This way there is no else from L11294.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants