Displaying 3 results from an estimated 3 matches for "__builtin_nanf".
2014 Sep 20
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
...h-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 redefined
#define NAN 2
^
../../libc/include/math.h:57:11: note: previous definition is here
# define NAN (__builtin_nanf(""))
^
1 warning generated.
Retcode: 0
I don't know why this warning gets generated since in
../../libc/include/math.h:57 the macro NAN is wrapped by ifndef as shown
below, but that's not important.
# ifndef NAN
# define NAN (__builtin_nanf(""))
# endif...
2014 Sep 20
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
...ude/ -o s_sin.bc
> > -emit-llvm -c'
> > In file included from s_sin.c:18:
> > ./zmath.h:7:9: warning: 'NAN' macro redefined
> > #define NAN 2
> > ^
> > ../../libc/include/math.h:57:11: note: previous definition is here
> > # define NAN (__builtin_nanf(""))
> > ^
> > 1 warning generated.
> > Retcode: 0
> >
> > I don't know why this warning gets generated since in
> > ../../libc/include/math.h:57 the macro NAN is wrapped by ifndef as shown
> > below, but that's not importan...
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: