-
Notifications
You must be signed in to change notification settings - Fork 146
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
Code generator does not support intrinsic functions llvm.abs.*
, llvm.is.constant.*
#149
Comments
i decided to mess with the actual compiler a bit to maybe make it use less features by claiming to target MIPS1 (which is gonna be better for the compiler that will handle the resulting c code anyway, because i'm planning to feed that into a rather ancient cpu) and also disabling any optimization, that got rid of the 64bit abs, but now it's dying due to
for the record, the code we're talking about is there, and i compiled it using:
i also tried manually compiling a function that satisfies the intrinsic's documentation, and then patching that into the ll file by hand, but sadly |
llvm.abs.i64
llvm.abs.*
, llvm.is.constant.*
…LVM LangRef, this intrinsic will never return true when constant folding is not run, so always returning false is safe. Partially resolves issue JuliaHubOSS#149
Add support for the llvm.is.constant.* intrinsics. According to the LLVM LangRef, this intrinsic will never return true when constant folding is not run, so always returning false is safe. Partially resolves issue #149.
something something "missing functionality", but also: i wonder if it would be possible to turn that fatal error into a warning instead and have the user provide such missing functions? after all they are emitted into the resulting C code, so it should be rather trivial to just emit a declaration and go "this isn't a thing yet, just implement it yourself for now" without requiring people to learn how to hack the LLVM internals?
runtime.ll
The text was updated successfully, but these errors were encountered: