Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Driver][NFC] Check pointer Arg before dereferencing.#21287

Open
srividya-sundaram wants to merge 3 commits intointel:sycl from
srividya-sundaram:optimize-lto-diags
Open

[Driver][NFC] Check pointer Arg before dereferencing. #21287
srividya-sundaram wants to merge 3 commits intointel:sycl from
srividya-sundaram:optimize-lto-diags

Conversation

@srividya-sundaram
Copy link
Contributor

@srividya-sundaram srividya-sundaram commented Feb 13, 2026

Addresses: #21282

Arg *SYCLSplitMode =
Args.getLastArg(options::OPT_fsycl_device_code_split_EQ);
Arg *OffloadLTO = Args.getLastArg(options::OPT_foffload_lto,
options::OPT_foffload_lto_EQ);
Copy link
Contributor

@mdtoguchi mdtoguchi Feb 13, 2026

Choose a reason for hiding this comment

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

This looks like something that would benefit the community as it isn't specific to SYCL. Would this be better to just upstream instead of doing intel/llvm?

Copy link
Contributor Author

@srividya-sundaram srividya-sundaram Feb 14, 2026

Choose a reason for hiding this comment

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

There are to SYCL specific checks here before some of these diagnostics are emitted (like SYCLSplitMode). Unless I am mis-understanding what you are referring to.

Copy link
Contributor

@mdtoguchi mdtoguchi Feb 14, 2026

Choose a reason for hiding this comment

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

Yes, there are SYCL specific things here, but the fix itself can be applied to upstream and be pulled into intel/llvm as it also impacts OpenMP upstream behaviors.

Copy link
Contributor Author

@srividya-sundaram srividya-sundaram Feb 16, 2026

Choose a reason for hiding this comment

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

but the fix itself can be applied to upstream and be pulled into intel/llvm as it also impacts OpenMP upstream behaviors.

err_drv_sycl_thinlto_split_off is specific to intel/llvm only and is therefore handled here, while the other two diagnostics are addressed in the upstream patch.

mdtoguchi reacted with thumbs up emoji
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.

LGTM

Copy link
Contributor

@intel/llvm-gatekeepers please consider merging

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

Reviewers

@mdtoguchi mdtoguchi mdtoguchi approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /