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

Implement missing math functions in LLVM backend #739

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

mattisboeckle
Copy link
Contributor

Implement cos, sin, atan, tan, log, log1p, _pi, exp & pow. All functions use the LLVM intrinsics except tan & atan. They do not exist in the version of LLVM we are using.

Fixes #608

Copy link
Contributor

@jiribenes jiribenes left a comment

Choose a reason for hiding this comment

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

Hi @mattisboeckle, thanks for the great first contribution!

I have a few maintenance discussion topics below -- even though the contribution is great and already mergeable, it would be nice to make sure that the definitions we want to use are maintainable in the future. I'm interested in your opinion as to how we should act regarding the more complex functions / constants that are not available directly as intrinsics before we proceed :)

libraries/common/effekt.effekt Outdated Show resolved Hide resolved
libraries/common/effekt.effekt Outdated Show resolved Hide resolved
examples/pos/math.effekt Outdated Show resolved Hide resolved
@mattisboeckle mattisboeckle force-pushed the fix/llvm-missing-math branch 3 times, most recently from 43ee27b to 2e316ec Compare January 10, 2025 15:03
Implement cos, sin, atan, tan, log, log1p, _pi, exp & pow.
All functions use the LLVM intrinsics except tan & atan. They do not exist in the version of LLVM we are using.

Fixes effekt-lang#608
@b-studios b-studios merged commit f4bf8a7 into effekt-lang:master Jan 14, 2025
2 checks passed
EveEme pushed a commit to EveEme/effekt that referenced this pull request Jan 20, 2025
Implement cos, sin, atan, tan, log, log1p, _pi, exp & pow. All functions
use the LLVM intrinsics except tan & atan. They do not exist in the
version of LLVM we are using.

Fixes effekt-lang#608
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.

Implement missing math functions on the LLVM backend
3 participants