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

Change name mangling for intrinsic functions fixing #2 #83

Conversation

JanRehders-AMD
Copy link
Contributor

We want to avoid confusion when one op's intrinsic is the prefix of another one. Using a string __ which we don't use for intrinsic function names ensures this. Using "$" was considered but __ was chosen so the LLVM IR printer will not add quotes to those names which would make updating the tests much harder.

@JanRehders-AMD JanRehders-AMD force-pushed the amd/dev/jrehders/name-mangling branch from 4b8297d to aee3634 Compare January 31, 2024 14:15
@JanRehders-AMD JanRehders-AMD marked this pull request as draft January 31, 2024 14:38
@JanRehders-AMD JanRehders-AMD marked this pull request as ready for review January 31, 2024 14:38
@JanRehders-AMD
Copy link
Contributor Author

@nhaehnle @tsymalla @Flakebi

Copy link
Member

@nhaehnle nhaehnle left a comment

Choose a reason for hiding this comment

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

One issue, rest LGTM

lib/Dialect/Dialect.cpp Outdated Show resolved Hide resolved
lib/Dialect/Dialect.cpp Outdated Show resolved Hide resolved
We want to avoid confusion when one op's intrinsic is the prefix of another
one. Using a character which we don't use for intrinsic function names ensures
this.

Fixes GPUOpen-Drivers#2
@JanRehders-AMD JanRehders-AMD force-pushed the amd/dev/jrehders/name-mangling branch from aee3634 to d93eb58 Compare February 1, 2024 15:18
@tsymalla-AMD tsymalla-AMD merged commit 30d3651 into GPUOpen-Drivers:dev Feb 1, 2024
8 checks passed
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