Skip to content

[SYCL][FPGA] Refactor of [[intel::force_pow2_depth()]] attribute #3387

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 6 commits into from
Mar 26, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Mar 21, 2021

This patch

  1. refactors FPGA Decl attribute [[intel::force_pow2_depth()]]
    to better fit for community standards.

  2. refactors the way we handle duplicate attributes with same and
    different argument values and mutually exclusive attributes logic
    when present on a given declaration.

  3. handles redeclarations or template instantiations properly.

  4. adds tests

  5. removes AddOneConstantValueAttr() function.

  6. adds tests to check for global constant variable (which allows the redeclaration)
    since IntelFPGAConstVar is one of the subjects listed for [[intel::force_pow2_depth()]] attribute.

  7. removes arbitrary upper bound check for attribute argument.

Signed-off-by: soumi.manna [email protected]

soumi.manna added 3 commits March 21, 2021 07:21
This patch

1. refactors FPGA Decl attribute [[intel::force_pow2_depth()]]
   to better fit for community standards.

2. refactors the way we handle duplicate attributes with same and
   different argument values and mutually exclusive attributes logic
   when present on a given declaration.

3. handles redeclarations or template instantiations properly.

4. adds tests

5. removes AddOneConstantValueAttr() function.

6. adds tests to chevk for global constant variable (which allows the redeclaration)
   since IntelFPGAConstVar is one of the subjects listed for [[intel::force_pow2_depth()]] attribute.

7. removes arbitrary upper bound check for attribute argument.

Signed-off-by: soumi.manna <[email protected]>
Signed-off-by: soumi.manna <[email protected]>
Signed-off-by: soumi.manna <[email protected]>
@smanna12 smanna12 requested a review from AaronBallman March 21, 2021 22:17
@smanna12 smanna12 marked this pull request as ready for review March 22, 2021 03:42
@smanna12 smanna12 marked this pull request as draft March 24, 2021 04:07
Signed-off-by: soumi.manna <[email protected]>
@smanna12 smanna12 marked this pull request as ready for review March 24, 2021 19:46
@smanna12 smanna12 requested a review from AaronBallman March 24, 2021 19:46
soumi.manna added 2 commits March 25, 2021 08:36
Signed-off-by: soumi.manna <[email protected]>
Signed-off-by: soumi.manna <[email protected]>
Copy link
Contributor

@AaronBallman AaronBallman 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 d02879c into intel:sycl Mar 26, 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.

4 participants