Home
last modified time | relevance | path

Searched refs:LibFunc (Results 1 – 21 of 21) sorted by relevance

/external/llvm/lib/Analysis/
DTargetLibraryInfo.cpp28 const char *const TargetLibraryInfoImpl::StandardNames[LibFunc::NumLibFuncs] = {
58 for (unsigned F = 1; F < LibFunc::NumLibFuncs; ++F) { in initialize()
66 TLI.setUnavailable(LibFunc::ldexp); in initialize()
67 TLI.setUnavailable(LibFunc::ldexpf); in initialize()
68 TLI.setUnavailable(LibFunc::ldexpl); in initialize()
77 TLI.setUnavailable(LibFunc::memcpy); in initialize()
78 TLI.setUnavailable(LibFunc::memset); in initialize()
79 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
87 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
90 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
[all …]
DVectorUtils.cpp138 LibFunc::Func Func; in getIntrinsicIDForCall()
151 case LibFunc::sin: in getIntrinsicIDForCall()
152 case LibFunc::sinf: in getIntrinsicIDForCall()
153 case LibFunc::sinl: in getIntrinsicIDForCall()
155 case LibFunc::cos: in getIntrinsicIDForCall()
156 case LibFunc::cosf: in getIntrinsicIDForCall()
157 case LibFunc::cosl: in getIntrinsicIDForCall()
159 case LibFunc::exp: in getIntrinsicIDForCall()
160 case LibFunc::expf: in getIntrinsicIDForCall()
161 case LibFunc::expl: in getIntrinsicIDForCall()
[all …]
DMemoryBuiltins.cpp45 LibFunc::Func Func;
55 {LibFunc::malloc, MallocLike, 1, 0, -1},
56 {LibFunc::valloc, MallocLike, 1, 0, -1},
57 {LibFunc::Znwj, OpNewLike, 1, 0, -1}, // new(unsigned int)
58 {LibFunc::ZnwjRKSt9nothrow_t, MallocLike, 2, 0, -1}, // new(unsigned int, nothrow)
59 {LibFunc::Znwm, OpNewLike, 1, 0, -1}, // new(unsigned long)
60 {LibFunc::ZnwmRKSt9nothrow_t, MallocLike, 2, 0, -1}, // new(unsigned long, nothrow)
61 {LibFunc::Znaj, OpNewLike, 1, 0, -1}, // new[](unsigned int)
62 {LibFunc::ZnajRKSt9nothrow_t, MallocLike, 2, 0, -1}, // new[](unsigned int, nothrow)
63 {LibFunc::Znam, OpNewLike, 1, 0, -1}, // new[](unsigned long)
[all …]
DConstantFolding.cpp1504 if ((Name == "acos" && TLI->has(LibFunc::acos)) || in ConstantFoldScalarCall()
1505 (Name == "acosf" && TLI->has(LibFunc::acosf))) in ConstantFoldScalarCall()
1507 else if ((Name == "asin" && TLI->has(LibFunc::asin)) || in ConstantFoldScalarCall()
1508 (Name == "asinf" && TLI->has(LibFunc::asinf))) in ConstantFoldScalarCall()
1510 else if ((Name == "atan" && TLI->has(LibFunc::atan)) || in ConstantFoldScalarCall()
1511 (Name == "atanf" && TLI->has(LibFunc::atanf))) in ConstantFoldScalarCall()
1515 if ((Name == "ceil" && TLI->has(LibFunc::ceil)) || in ConstantFoldScalarCall()
1516 (Name == "ceilf" && TLI->has(LibFunc::ceilf))) in ConstantFoldScalarCall()
1518 else if ((Name == "cos" && TLI->has(LibFunc::cos)) || in ConstantFoldScalarCall()
1519 (Name == "cosf" && TLI->has(LibFunc::cosf))) in ConstantFoldScalarCall()
[all …]
DMemoryLocation.cpp97 if (TLI.has(LibFunc::memset_pattern16) && in isMemsetPattern16()
DBasicAliasAnalysis.cpp537 if (TLI.has(LibFunc::memset_pattern16) && in isMemsetPattern16()
/external/llvm/include/llvm/Analysis/
DTargetLibraryInfo.h43 namespace LibFunc {
61 unsigned char AvailableArray[(LibFunc::NumLibFuncs+3)/4];
63 static const char *const StandardNames[LibFunc::NumLibFuncs];
70 void setState(LibFunc::Func F, AvailabilityState State) { in setState()
74 AvailabilityState getState(LibFunc::Func F) const { in getState()
110 bool getLibFunc(StringRef funcName, LibFunc::Func &F) const;
113 void setUnavailable(LibFunc::Func F) { in setUnavailable()
118 void setAvailable(LibFunc::Func F) { in setAvailable()
124 void setAvailableWithName(LibFunc::Func F, StringRef Name) { in setAvailableWithName()
205 bool getLibFunc(StringRef funcName, LibFunc::Func &F) const { in getLibFunc()
[all …]
/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp1011 LibFunc::Func TheLibFunc; in inferPrototypeAttributes()
1016 case LibFunc::strlen: in inferPrototypeAttributes()
1023 case LibFunc::strchr: in inferPrototypeAttributes()
1024 case LibFunc::strrchr: in inferPrototypeAttributes()
1031 case LibFunc::strtol: in inferPrototypeAttributes()
1032 case LibFunc::strtod: in inferPrototypeAttributes()
1033 case LibFunc::strtof: in inferPrototypeAttributes()
1034 case LibFunc::strtoul: in inferPrototypeAttributes()
1035 case LibFunc::strtoll: in inferPrototypeAttributes()
1036 case LibFunc::strtold: in inferPrototypeAttributes()
[all …]
DGlobalOpt.cpp3058 if (!TLI->has(LibFunc::cxa_atexit)) in FindCXAAtExit()
3061 Function *Fn = M.getFunction(TLI->getName(LibFunc::cxa_atexit)); in FindCXAAtExit()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp55 static bool ignoreCallingConv(LibFunc::Func Func) { in ignoreCallingConv()
56 return Func == LibFunc::abs || Func == LibFunc::labs || in ignoreCallingConv()
57 Func == LibFunc::llabs || Func == LibFunc::strlen; in ignoreCallingConv()
97 LibFunc::Func DoubleFn, LibFunc::Func FloatFn, in hasUnaryFloatFn()
98 LibFunc::Func LongDoubleFn) { in hasUnaryFloatFn()
130 static bool checkStringCopyLibFuncSignature(Function *F, LibFunc::Func Func) { in checkStringCopyLibFuncSignature()
145 case LibFunc::stpncpy_chk: in checkStringCopyLibFuncSignature()
146 case LibFunc::strncpy_chk: in checkStringCopyLibFuncSignature()
148 case LibFunc::stpncpy: in checkStringCopyLibFuncSignature()
149 case LibFunc::strncpy: { in checkStringCopyLibFuncSignature()
[all …]
DBuildLibCalls.cpp38 if (!TLI->has(LibFunc::strlen)) in EmitStrLen()
63 if (!TLI->has(LibFunc::strchr)) in EmitStrChr()
87 if (!TLI->has(LibFunc::strncmp)) in EmitStrNCmp()
114 if (!TLI->has(LibFunc::strcpy)) in EmitStrCpy()
137 if (!TLI->has(LibFunc::strncpy)) in EmitStrNCpy()
164 if (!TLI->has(LibFunc::memcpy_chk)) in EmitMemCpyChk()
188 if (!TLI->has(LibFunc::memchr)) in EmitMemChr()
210 if (!TLI->has(LibFunc::memcmp)) in EmitMemCmp()
293 if (!TLI->has(LibFunc::putchar)) in EmitPutChar()
315 if (!TLI->has(LibFunc::puts)) in EmitPutS()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp316 LibFunc::Func Func; in mightUseCTR()
330 case LibFunc::copysign: in mightUseCTR()
331 case LibFunc::copysignf: in mightUseCTR()
333 case LibFunc::copysignl: in mightUseCTR()
335 case LibFunc::fabs: in mightUseCTR()
336 case LibFunc::fabsf: in mightUseCTR()
337 case LibFunc::fabsl: in mightUseCTR()
339 case LibFunc::sqrt: in mightUseCTR()
340 case LibFunc::sqrtf: in mightUseCTR()
341 case LibFunc::sqrtl: in mightUseCTR()
[all …]
/external/llvm/lib/Transforms/Scalar/
DPartiallyInlineLibCalls.cpp80 LibFunc::Func LibFunc; in runOnFunction() local
82 !TLI->getLibFunc(CalledFunc->getName(), LibFunc)) in runOnFunction()
85 switch (LibFunc) { in runOnFunction()
86 case LibFunc::sqrtf: in runOnFunction()
87 case LibFunc::sqrt: in runOnFunction()
DDeadStoreElimination.cpp179 if (TLI.has(LibFunc::strcpy) && in hasMemoryWrite()
180 F->getName() == TLI.getName(LibFunc::strcpy)) { in hasMemoryWrite()
183 if (TLI.has(LibFunc::strncpy) && in hasMemoryWrite()
184 F->getName() == TLI.getName(LibFunc::strncpy)) { in hasMemoryWrite()
187 if (TLI.has(LibFunc::strcat) && in hasMemoryWrite()
188 F->getName() == TLI.getName(LibFunc::strcat)) { in hasMemoryWrite()
191 if (TLI.has(LibFunc::strncat) && in hasMemoryWrite()
192 F->getName() == TLI.getName(LibFunc::strncat)) { in hasMemoryWrite()
DLoopIdiomRecognize.cpp417 if (!TLI->has(LibFunc::memset)) in processLoopMemSet()
510 if (SplatValue && TLI->has(LibFunc::memset) && in processLoopStridedStore()
516 } else if (DestAS == 0 && TLI->has(LibFunc::memset_pattern16) && in processLoopStridedStore()
615 if (!TLI->has(LibFunc::memcpy)) in processLoopStoreOfLoopLoad()
DMemCpyOptimizer.cpp1044 if (!TLI->has(LibFunc::memmove)) in processMemMove()
1190 if (!TLI->has(LibFunc::memset) || !TLI->has(LibFunc::memcpy)) in runOnFunction()
/external/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5771 LibFunc::Func Func; in visitCall()
5777 case LibFunc::copysign: in visitCall()
5778 case LibFunc::copysignf: in visitCall()
5779 case LibFunc::copysignl: in visitCall()
5792 case LibFunc::fabs: in visitCall()
5793 case LibFunc::fabsf: in visitCall()
5794 case LibFunc::fabsl: in visitCall()
5798 case LibFunc::fmin: in visitCall()
5799 case LibFunc::fminf: in visitCall()
5800 case LibFunc::fminl: in visitCall()
[all …]
DFastISel.cpp1364 LibFunc::Func Func; in selectInstruction()
/external/llvm/lib/LTO/
DLTOCodeGenerator.cpp371 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in accumulateAndSortLibcalls()
373 LibFunc::Func F = static_cast<LibFunc::Func>(I); in accumulateAndSortLibcalls()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4216 LibFunc::Func Func; in visitFCmpInst()
4219 (Func == LibFunc::fabs || Func == LibFunc::fabsf || in visitFCmpInst()
4220 Func == LibFunc::fabsl))) { in visitFCmpInst()