search for: ceilf

Displaying 20 results from an estimated 40 matches for "ceilf".

Did you mean: ceil
2013 Apr 01
2
[LLVMdev] Instruction Implementation
hi all I have a question about implementing a new instruction which does this function f(x) = x + ceilf (x) .x is a single float i have already added the instruction in my backend in the .td file def SUBCEIL_S : FFR<0x11, 0x3, 16, (outs FGR32:$fd), (ins FGR32:$fs), "frac.s\t$fd, $fs", [(set (f32 FGR32:$fd), (fadd (f32 FGR32:$fs ),(f32 (ceilf FGR32:$fs))))] >; it makes and in...
2013 Apr 02
0
[LLVMdev] Instruction Implementation
Hi, > def SUBCEIL_S : FFR<0x11, 0x3, 16, (outs FGR32:$fd), (ins FGR32:$fs), > "frac.s\t$fd, $fs", [(set (f32 FGR32:$fd), (fadd (f32 FGR32:$fs ),(f32 > (ceilf FGR32:$fs))))] >; > > it makes and install correctly but when i ll try to write code to use this > instruction there is no luck. More details (including the .ll source and *how* exactly things are going wrong) would be useful. Does llc crash? Does it simply not select your code even th...
2013 Apr 02
1
[LLVMdev] Instruction Implementation
...a little worried that your pattern has fadd, but your C >source has a subtraction. :S i wrote it wrong the true implementation is def SUBCEIL_S : FFR<0x11, 0x3, 16, (outs FGR32:$fd), (ins FGR32:$fs), "frac.s\t$fd, $fs", [(set (f32 FGR32:$fd), (fsub (f32 FGR32:$fs ),(f32 (ceilf FGR32:$fs))))] >; I use some C,C++ code to test my backend. i use clang with those argument -m32 -emit-llvm -S -target mipsel-linux-gnu -I.. and i have tried to add this in case so it will not use standard libs -nostdlib -nostdinc -fno-builtin but with no luck attached the new .ll for c...
2013 Apr 02
2
[LLVMdev] Instruction Implementation
Hi and thanks for answering llc works fine just does not selecting my instruction i ve uploaded .ll file how can i include this attribute "readonly" so i can see if changes the generated assembly? my code is very simple int main (){ float d, d1 ; d= 12.3; d1 = d - ceilf(d); return 0; } -- View this message in context: http://llvm.1065342.n5.nabble.com/LLVMdev-Instruction-Implementation-tp56359p56377.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Apr 02
0
[LLVMdev] Instruction Implementation
...ce a .ll file, you give clang the "-emit-llvm" option (and probably "-S"). Anyway, what I see in the C you posted is that Clang is using constant folding to avoid doing any of the operations you've requested. A better C file test would be: float foo(float d) { return d - ceilf(d); } For me LLVM does use the FCEIL node in that case (it doesn't know what d is so can't optimise your operations away). I'm still a little worried that ceilf isn't declared, but LLVM seems to do the "right" thing anyway. I'm also a little worried that your pattern...
2012 Jul 15
1
[LLVMdev] Errors reported in config.log on linux
...90: warning: conflicting types for built-in function 'memmove' conftest.c:91: warning: conflicting types for built-in function 'strcmp' conftest.c:79: warning: conflicting types for built-in function 'sin' conftest.c:136: warning: conflicting types for built-in function 'ceilf' conftest.c:137: warning: conflicting types for built-in function 'floorf' conftest.c:138: warning: conflicting types for built-in function 'roundf' conftest.c:138: warning: conflicting types for built-in function 'roundf' conftest.c:140: warning: conflicting types for b...
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...g for isatty - found -- Looking for index -- Looking for index - found -- Looking for isinf -- Looking for isinf - not found -- Looking for isinf -- Looking for isinf - found -- Looking for finite -- Looking for finite - not found -- Looking for isnan -- Looking for isnan - not found -- Looking for ceilf -- Looking for ceilf - found -- Looking for floorf -- Looking for floorf - found -- Looking for fmodf -- Looking for fmodf - found -- Looking for longjmp -- Looking for longjmp - found -- Looking for setjmp -- Looking for setjmp - found -- Looking for siglongjmp -- Looking for siglongjmp - found --...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...g for isinf > > -- Looking for isinf - not found > > -- Looking for isinf > > -- Looking for isinf - found > > -- Looking for finite > > -- Looking for finite - not found > > -- Looking for isnan > > -- Looking for isnan - not found > > -- Looking for ceilf > > -- Looking for ceilf - found > > -- Looking for floorf > > -- Looking for floorf - found > > -- Looking for fmodf > > -- Looking for fmodf - found > > -- Looking for longjmp > > -- Looking for longjmp - found > > -- Looking for setjmp > > --...
2012 Oct 12
0
[LLVMdev] cmake+ninja build error for compiler-rt sources
...Looking for index - found > -- Looking for isinf > -- Looking for isinf - not found > -- Looking for isinf > -- Looking for isinf - found > -- Looking for finite > -- Looking for finite - not found > -- Looking for isnan > -- Looking for isnan - not found > -- Looking for ceilf > -- Looking for ceilf - found > -- Looking for floorf > -- Looking for floorf - found > -- Looking for fmodf > -- Looking for fmodf - found > -- Looking for longjmp > -- Looking for longjmp - found > -- Looking for setjmp > -- Looking for setjmp - found > -- Looking f...
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote: > Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > this error on multiple systems : Linking, not compiling, but still. I am getting a similar error when building this morning. > Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced
2012 Oct 13
0
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...king for isinf - not found >> > -- Looking for isinf >> > -- Looking for isinf - found >> > -- Looking for finite >> > -- Looking for finite - not found >> > -- Looking for isnan >> > -- Looking for isnan - not found >> > -- Looking for ceilf >> > -- Looking for ceilf - found >> > -- Looking for floorf >> > -- Looking for floorf - found >> > -- Looking for fmodf >> > -- Looking for fmodf - found >> > -- Looking for longjmp >> > -- Looking for longjmp - found >> > --...
2008 Nov 12
0
[LLVMdev] [PATCH] Enable malloc_zone_statistics() in Mac OS X (cmake)
...| 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index b8be58e..1f178c7 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -49,6 +49,7 @@ check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H) check_symbol_exists(ceilf math.h HAVE_CEILF) check_symbol_exists(floorf math.h HAVE_FLOORF) check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO) +check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) check_symbol_...
2011 Jan 05
0
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
Eric Christopher <echristo at apple.com> writes: >>> Or cleanup both headers from unused stuff by Eric's >>> suggestion? >> >> I'm not sure this is a good idea (not that it is bad either). Murphy's >> Law says that a function that you remove today will be used tomorrow. > > I meant literally functions that aren't used in the
2011 Jan 05
2
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
On Jan 5, 2011, at 6:34 AM, Óscar Fuentes wrote: > arrowdodger <6yearold at gmail.com> writes: > >>> Or to say it with other words: patches welcome. >> >> So, how should i proceed? Make CMake-generated config to be identical to >> autotools one? > > That would be a good thing. > > Please note that some checks are a bit tricky. A function that
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...;> > -- Looking for isinf > >> > -- Looking for isinf - found > >> > -- Looking for finite > >> > -- Looking for finite - not found > >> > -- Looking for isnan > >> > -- Looking for isnan - not found > >> > -- Looking for ceilf > >> > -- Looking for ceilf - found > >> > -- Looking for floorf > >> > -- Looking for floorf - found > >> > -- Looking for fmodf > >> > -- Looking for fmodf - found > >> > -- Looking for longjmp > >> > -- Looking f...
2011 Jan 05
4
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
...d by the codebase today maybe > some programmer will need that function tomorrow. And adding an autoconf > check is far from trivial, at least for those not familiarized with the > autotools. > Adding a check for most standard functions is amazingly trivial: AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ]) AC_CHECK_FUNCS([powf fmodf strtof round ]) AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ]) AC_CHECK_FUNCS([isatty mkdtemp mkstemp ]) AC_CHECK_FUNCS([mktemp posix_spawn realpath sbrk setrlimit strdup ]) AC_CHECK_FUNCS([strerror strer...
2011 Oct 25
2
[LLVMdev] [LLVMDev] Clang stopped compiling?
Hi, I'm trying to compile the latest clang/llvm SVN versions and I get this error on multiple systems : (Compiling with gcc): llvm[4]: Compiling cc1_main.cpp for Debug+Asserts build llvm[4]: Compiling cc1as_main.cpp for Debug+Asserts build llvm[4]: Compiling driver.cpp for Debug+Asserts build llvm[4]: Linking Debug+Asserts executable clang
2013 Nov 11
2
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
...Looking for isinf - not found > -- Looking for isinf > -- Looking for isinf - found > -- Looking for finite > -- Looking for finite - not found > -- Looking for isnan > -- Looking for isnan - not found > -- Looking for isnan > -- Looking for isnan - found > -- Looking for ceilf > -- Looking for ceilf - found > -- Looking for floorf > -- Looking for floorf - found > -- Looking for fmodf > -- Looking for fmodf - found > -- Looking for log > -- Looking for log - found > -- Looking for log2 > -- Looking for log2 - found > -- Looking for log10 &gt...
2013 Nov 11
0
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
...g for isatty - found -- Looking for isinf -- Looking for isinf - not found -- Looking for isinf -- Looking for isinf - found -- Looking for finite -- Looking for finite - not found -- Looking for isnan -- Looking for isnan - not found -- Looking for isnan -- Looking for isnan - found -- Looking for ceilf -- Looking for ceilf - found -- Looking for floorf -- Looking for floorf - found -- Looking for fmodf -- Looking for fmodf - found -- Looking for log -- Looking for log - found -- Looking for log2 -- Looking for log2 - found -- Looking for log10 -- Looking for log10 - found -- Looking for exp -- Lo...
2013 Nov 11
0
[LLVMdev] [cfe-dev] [Reminder] LLVM 3.4 Release Branching
...oking for isinf > > -- Looking for isinf - found > > -- Looking for finite > > -- Looking for finite - not found > > -- Looking for isnan > > -- Looking for isnan - not found > > -- Looking for isnan > > -- Looking for isnan - found > > -- Looking for ceilf > > -- Looking for ceilf - found > > -- Looking for floorf > > -- Looking for floorf - found > > -- Looking for fmodf > > -- Looking for fmodf - found > > -- Looking for log > > -- Looking for log - found > > -- Looking for log2 > > -- Looking f...