Skip to content

[SYCL] Prohibit taking address of non-indirectly callable functions #5151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 14, 2022

Conversation

Fznamznon
Copy link
Contributor

Emit a error when address of function not marked with
[[intel::device_indirectly_callable]] attribute is taken. The error is
emitted only if flag -fsycl-allow-func-ptr if passed.

Emit a error when address of function not marked with
`[[intel::device_indirectly_callable]]` attribute is taken. The error is
emitted only if flag `-fsycl-allow-func-ptr` if passed.
@Fznamznon
Copy link
Contributor Author

/summary:run

@Fznamznon
Copy link
Contributor Author

/summary:run

@Fznamznon
Copy link
Contributor Author

I don't think SYCL :: DeprecatedFeatures/get_backend.cpp fail is related to the patch. It fails in runtime and was not reported in summary run.

@Fznamznon Fznamznon marked this pull request as ready for review January 11, 2022 07:32
@Fznamznon Fznamznon requested a review from a team as a code owner January 11, 2022 07:32
@Fznamznon
Copy link
Contributor Author

@intel/dpcpp-cfe-reviewers & @AlexeySachkov , could you please review this one?

premanandrao
premanandrao previously approved these changes Jan 12, 2022
Copy link
Contributor

@smanna12 smanna12 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

6 participants