Skip to content
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

Added mlir->LLVMIR conversion for tanh op using LUT #1718

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aidansander
Copy link
Contributor

Adds a conversion pass similar to ComputeTanhOpByLUTPattern but targeting LLVMIR backend.

Copy link
Collaborator

@jsetoain jsetoain left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines +84 to +85
alignas(aie::vector_decl_align) extern float tanh_lut_ab[128];
alignas(aie::vector_decl_align) extern float tanh_lut_cd[128];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any benefit to having the alignment and size of these arrays declared here?

Comment on lines +16 to +17


Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit.: too many blank lines

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.

2 participants