Displaying 3 results from an estimated 3 matches for "func_work".
Did you mean:
func_works
2019 Mar 26
2
ORC JIT fails with standard math librrary
...IR functions to JIT compile with the ORC JIT when they
contain a call to the standard math library. Attached is a minimal exploit.
The program uses the KaleidoscopeJIT.h that ships with LLVM 8 (except
that I had to expose the Datalayout). It reads from the filesystem an IR
file (filename "func_works.ll" or "func_cos_fails.ll) and asks the ORC
JIT first for the symbol "func_ir" and then for the address.
In case the file "func_works.ll" was read the program succeeds with:
symbol found!
address found!
In case the file "func_cos_fails.ll" was read the p...
2014 Mar 10
3
[LLVMdev] MCJIT problem on native 'ppc64' target
...s called with this IR function
as its
argument it'll reproduce the segfault on the ppc64 architecture. The
main_static links statically to 'func_fails.ll' and calls the function
in exactly
the same way as 'main' does. The statically linked version works fine.
The program 'func_works.ll' can be used a cross check that MCJIT on
the ppc64 architecture works and that the program 'main' is in general
well functioning. To confirm the 'main' executable can be invoked with
the argument 'func_works.ll'.
The issue seems to have to do with the number of call...
2019 Mar 22
2
MCJIT, can't use with math functions
Hi,
for my application (uses Builder and MCJIT) I am making the transition
LLVM 6.0 -> 8.0.
It runs fine for self-contained functions, but whenever a jit-ed
function contains calls to the math library (e.g. @cosf) it seems to
have problems getting the address after successfully finding the symbol:
Failure value returned from cantFail wrapped call
UNREACHABLE executed at