search for: func_cos_fails

Displaying 2 results from an estimated 2 matches for "func_cos_fails".

2019 Mar 26
2
ORC JIT fails with standard math librrary
...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 program fails with: symbol found!...
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