Skip to content

Conversation

linehill
Copy link
Contributor

@linehill linehill commented Aug 1, 2024

Add translation for atan, acos, asin, cosh, sinh and tanh LLVM intrinsics which are mapped to corresponding OpenCL extended instructions.

Add translation for atan, acos, asin, cosh, sinh and tanh LLVM
intrinsics which are mapped to corresponding OpenCL extended
instructions.
Copy link
Contributor

@MrSidims MrSidims left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Lets also add these intrinsics to the list within getNativeBuiltinIdForIntrinsic function in SPIRVWriter, so when an intrinsic has afn fast-math flag it would be mapped on a native OpenCL builtin, see 6417ada

@linehill
Copy link
Contributor Author

linehill commented Aug 1, 2024

Are there native versions for these OpenCL builtins? It seems to me there aren't.

@MrSidims
Copy link
Contributor

MrSidims commented Aug 2, 2024

Restarting CI with the new HEAD

@MrSidims MrSidims closed this Aug 2, 2024
@MrSidims MrSidims reopened this Aug 2, 2024
@MrSidims MrSidims requested a review from svenvh August 7, 2024 10:07
@MrSidims
Copy link
Contributor

MrSidims commented Aug 9, 2024

Merging, will get approve from Sven offline if necessary

@MrSidims MrSidims merged commit 9560547 into KhronosGroup:main Aug 9, 2024
7 of 16 checks passed
@linehill
Copy link
Contributor Author

linehill commented Aug 9, 2024

Thanks for the review and merging!

linehill added a commit to linehill/SPIRV-LLVM-Translator that referenced this pull request Aug 9, 2024
…osGroup#2657)

Add translation for atan, acos, asin, cosh, sinh and tanh LLVM
intrinsics which are mapped to corresponding OpenCL extended
instructions.
MrSidims pushed a commit that referenced this pull request Aug 10, 2024
#2669)

Add translation for atan, acos, asin, cosh, sinh and tanh LLVM
intrinsics which are mapped to corresponding OpenCL extended
instructions.
Copy link
Member

@svenvh svenvh left a comment

Choose a reason for hiding this comment

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

LGTM after the fact. :)

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