-
Notifications
You must be signed in to change notification settings - Fork 43
Handle llvm context error handler #514
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
Comments
yeah the problem is misisng the diaghandlercallback from https://github.com/JuliaLLVM/LLVM.jl/blob/326f833f770cbfa83968e75f59ec0e3a85b8fa4b/src/core/context.jl#L187C26-L187C43 |
somehow it isn't registered, doing this fixes it:
|
We already install the handler for every context created by LLVM: Line 35 in 326f833
I guess this is with a non-LLVM.jl managed context? |
i guess -- but as this is from enzyme the only contexts we get come from gpucompiler |
Ah, I guess we also need to apply this to ORC's TSCtx: LLVM.jl/src/executionengine/ts_module.jl Lines 21 to 28 in 326f833
Can you try adding a call to _install_handlers(context(ts_ctx)) or so to the ctor?
|
parsing an opaque pointer bitcode with non opaque poitner context exit's julia rrather than throwing an error to be caught.
cc @giordano @vchuravy
https://github.com/llvm/llvm-project/blob/ccc416312ed72e92a885425d9cb9c01f9afa58eb/llvm/lib/IR/LLVMContext.cpp#L251
error: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.7' Reader: 'LLVM 15.0.7jl')
The text was updated successfully, but these errors were encountered: