Skip to content

Add exp10 intrinsic for LLVM >=18 (#2998)#3001

Open
SpeedyTurtle599 wants to merge 1 commit into
EnzymeAD:mainfrom
SpeedyTurtle599:bcoveler/feature/llvm-exp10
Open

Add exp10 intrinsic for LLVM >=18 (#2998)#3001
SpeedyTurtle599 wants to merge 1 commit into
EnzymeAD:mainfrom
SpeedyTurtle599:bcoveler/feature/llvm-exp10

Conversation

@SpeedyTurtle599

Copy link
Copy Markdown

Previously, __enzyme_fwddiff over a function containing std::pow(10.0, x) fails with an error:

error: Enzyme: cannot handle (forward) unknown intrinsic

This small PR adds the intrinsic, gated behind LLVM >=18. It should close issue #2998.

@SpeedyTurtle599
SpeedyTurtle599 force-pushed the bcoveler/feature/llvm-exp10 branch from fda789f to 280b81e Compare July 25, 2026 22:16

@wsmoses wsmoses left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

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