Skip to content

[SYCL][FPGA] Refactor of [[intel::bankwidth()]] and [[intel::numbanks()]] attributes #4513

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 4 commits into from
Sep 8, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Sep 8, 2021

This patch

  1. refactors two FPGA memory attributes to align with upstream:
    [[intel::bankwidth()]]
    [[intel::numbanks()]]

  2. refactors the way we handle duplicate attributes and
    mutually exclusive attributes logic when present on a given declaration.

  3. handles redeclarations or template instantiations properly.

  4. adds test

  5. removes generic function "AddOneConstantPowerTwoValueAttr"

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

@smanna12 smanna12 changed the title [SYCL][FPGA] Refactor of [[intel::bankwidth()]] and [[intel::numbanks… [SYCL][FPGA] Refactor of [[intel::bankwidth()]] and [[intel::numbanks()]] attributes Sep 8, 2021
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 marked this pull request as ready for review September 8, 2021 00:58
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

@dm-vodopyanov dm-vodopyanov merged commit bce10fb into intel:sycl Sep 8, 2021
DoyleLi pushed a commit to DoyleLi/intel_llvm that referenced this pull request Sep 13, 2021
…()]] attributes (intel#4513)

This patch

1. refactors two FPGA memory attributes to align with upstream:
    [[intel::bankwidth()]]
    [[intel::numbanks()]]
 
2. refactors the way we handle duplicate attributes and
    mutually exclusive attributes logic when present on a given declaration.

3. handles redeclarations or template instantiations properly.
4. adds test
5. removes generic function "AddOneConstantPowerTwoValueAttr"

Signed-off-by: Soumi Manna <[email protected]>
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