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

Exposing LLVM instruction builder API for the neg and fneg instructions #14774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JarnaChao09
Copy link

Purpose

Exposes the LLVM-C API to build neg and fneg instructions

Reason

While the neg instruction is just a "super instruction" to 0 - self, fneg as an instruction maintains NaN-ness inside of the floating point representation which may not be kept by performing 0 - self.

Notes

  • If requested, an issue can be opened under the general goal of exposing more/updating the LLVM-C API to its modern counterparts (e.g. LLVMArrayType vs LLVMArrayType2)
  • Bindings were tested as part of another project

@straight-shoota straight-shoota modified the milestones: 1.13.0, 1.14.0 Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants