Displaying 3 results from an estimated 3 matches for "mathfp".
2014 Sep 20
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
Hi Johannes,
By following your directions, I can use your script as is to produce the
.bc file now. Here's my command line for compiling s_sin.c into s_sin.bc
file and the output:
command line:
~/Downloads/newlib-2.1.0/newlib/libm/mathfp » python ~/llvm_link.py s_sin.c
-I../common/ -I../../libc/include/ -o s_sin.bc
output:
Initiate CLANG (/path-to-clang):
Options: 's_sin.c -I../common/ -I../../libc/include/ -o s_sin.bc
-emit-llvm -c'
In file included from s_sin.c:18:
./zmath.h:7:9: warning: 'NAN' macro redefin...
2014 Sep 20
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
...> Hi Johannes,
> >
> > By following your directions, I can use your script as is to produce the
> > .bc file now. Here's my command line for compiling s_sin.c into s_sin.bc
> > file and the output:
> > command line:
> > ~/Downloads/newlib-2.1.0/newlib/libm/mathfp » python ~/llvm_link.py
> s_sin.c
> > -I../common/ -I../../libc/include/ -o s_sin.bc
> >
> > output:
> > Initiate CLANG (/path-to-clang):
> > Options: 's_sin.c -I../common/ -I../../libc/include/ -o s_sin.bc
> > -emit-llvm -c'
> > In file inc...
2014 Sep 15
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
Good tips. Although I have used llvm-link to merge .bc files together, I
guess -flto could optimize the resultant .bc file further.
As for the assembly, yes it is an issue. Anyway, I'll try to address those
sources which are available for being translated into .bc first.
Thanks for your advice, Tim.
On Mon, Sep 15, 2014 at 2:55 PM, Tim Northover <t.p.northover at gmail.com>
wrote: