search for: setunavail

Displaying 4 results from an estimated 4 matches for "setunavail".

2016 Jun 14
2
llvm intrinsics/libc/libm question
If I do T.getArch() == xxx TLI.setUnavailable(LibFunc::copysign) then this works at generating a call instead of not being able to select the ISD::FCOPYSIGN, but I don't know why I don't need to do this for other LibFunc functions (such as floor, etc... these generate call just fine)? Thanks, Ryan On Tue, Jun 14, 2016 at 11:58...
2016 Jun 07
3
llvm intrinsics/libc/libm question
I'm trying to figure out exactly how the intrinsics/libc/libm work in llvm. For example, this code return user defined function: float acos(float x, float y) { return x+y; } float a; void foo(float b, float c) { a = acos(b, c); } But this code returns llvm.intrinsic: float acos(float, float); float a; void foo(float b, float c) { a = acos(b, c); } float acos(float x, float y) {
2016 Jun 07
3
llvm intrinsics/libc/libm question
...is this possible? > > If you're using clang: -fno-builtin=acos is what you're looking for. > > If you're using llvm: when setting up your pass pipeline, you should > create an instance of TargetLibraryInfo (an example is in > tools/opt/opt.cpp), and either use: > - setUnavailable(LibFunc::acos): this marks acos as "unavailable", > preventing optimizations from making assumptions about its behavior. > Equivalent to clang -fno-builtin-acos > - disableAllFunctions(): this marks all known functions as > unavailable. Equivalent to clang -fno-builtin &g...
2016 Jun 07
4
llvm intrinsics/libc/libm question
On Tue, Jun 7, 2016 at 1:57 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > Tim, > > Currently, I have to do multiple things: > > 1) create some setLibcallNames in XXXISelLowering.cpp to generate correct > naming for RTLIBS. > 2) lower ISD down to an RTLIB for some calls (and then do solution 1 on > those to get correct names) These solve a related but different -