Skip to content

[SYCL][NFC] Updates CodeGen codes for function attributes #3637

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 1 commit into from
Apr 29, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Apr 27, 2021

This patch adds cast<> instead of dyn_cast<> + assert() and
auto instead of Attribute Name for SYCL function attributes below:

SYCLIntelNoGlobalWorkOffsetAttr
SYCLIntelMaxGlobalWorkDimAttr
SYCLIntelNumSimdWorkItemsAttr
SYCLIntelSchedulerTargetFmaxMhzAttr
IntelReqdSubGroupSizeAttr

Signed-off-by: Soumi Manna [email protected]

No need for a dyn_cast<> followed by an assert.

This patch adds cast<> instead for attributes below:

SYCLIntelNoGlobalWorkOffsetAttr
SYCLIntelMaxGlobalWorkDimAttr
SYCLIntelNumSimdWorkItemsAttr
ReqSubGroup

Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 marked this pull request as ready for review April 27, 2021 20:34
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

LGTM

@bader bader merged commit 8b56cbb into intel:sycl Apr 29, 2021
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.

3 participants