Home
last modified time | relevance | path

Searched refs:LibFunc (Results 1 – 20 of 20) 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()
68 TLI.setUnavailable(LibFunc::memcpy); in initialize()
69 TLI.setUnavailable(LibFunc::memset); in initialize()
70 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
77 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
80 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
82 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
86 TLI.setUnavailable(LibFunc::sinpi); in initialize()
87 TLI.setUnavailable(LibFunc::sinpif); in initialize()
[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.cpp1461 if (Name == "acos" && TLI->has(LibFunc::acos)) in ConstantFoldScalarCall()
1463 else if (Name == "asin" && TLI->has(LibFunc::asin)) in ConstantFoldScalarCall()
1465 else if (Name == "atan" && TLI->has(LibFunc::atan)) in ConstantFoldScalarCall()
1469 if (Name == "ceil" && TLI->has(LibFunc::ceil)) in ConstantFoldScalarCall()
1471 else if (Name == "cos" && TLI->has(LibFunc::cos)) in ConstantFoldScalarCall()
1473 else if (Name == "cosh" && TLI->has(LibFunc::cosh)) in ConstantFoldScalarCall()
1475 else if (Name == "cosf" && TLI->has(LibFunc::cosf)) in ConstantFoldScalarCall()
1479 if (Name == "exp" && TLI->has(LibFunc::exp)) in ConstantFoldScalarCall()
1482 if (Name == "exp2" && TLI->has(LibFunc::exp2)) { in ConstantFoldScalarCall()
1489 if (Name == "fabs" && TLI->has(LibFunc::fabs)) in ConstantFoldScalarCall()
[all …]
DBasicAliasAnalysis.cpp657 if (TLI.has(LibFunc::memset_pattern16) && in isMemsetPattern16()
/external/llvm/include/llvm/Transforms/Utils/
DVectorUtils.h113 LibFunc::Func Func; in getIntrinsicIDForCall()
126 case LibFunc::sin: in getIntrinsicIDForCall()
127 case LibFunc::sinf: in getIntrinsicIDForCall()
128 case LibFunc::sinl: in getIntrinsicIDForCall()
130 case LibFunc::cos: in getIntrinsicIDForCall()
131 case LibFunc::cosf: in getIntrinsicIDForCall()
132 case LibFunc::cosl: in getIntrinsicIDForCall()
134 case LibFunc::exp: in getIntrinsicIDForCall()
135 case LibFunc::expf: in getIntrinsicIDForCall()
136 case LibFunc::expl: in getIntrinsicIDForCall()
[all …]
DSimplifyLibCalls.h59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
/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.cpp844 LibFunc::Func TheLibFunc; in inferPrototypeAttributes()
849 case LibFunc::strlen: in inferPrototypeAttributes()
856 case LibFunc::strchr: in inferPrototypeAttributes()
857 case LibFunc::strrchr: in inferPrototypeAttributes()
865 case LibFunc::strtol: in inferPrototypeAttributes()
866 case LibFunc::strtod: in inferPrototypeAttributes()
867 case LibFunc::strtof: in inferPrototypeAttributes()
868 case LibFunc::strtoul: in inferPrototypeAttributes()
869 case LibFunc::strtoll: in inferPrototypeAttributes()
870 case LibFunc::strtold: in inferPrototypeAttributes()
[all …]
DGlobalOpt.cpp2921 if (!TLI->has(LibFunc::cxa_atexit)) in FindCXAAtExit()
2924 Function *Fn = M.getFunction(TLI->getName(LibFunc::cxa_atexit)); in FindCXAAtExit()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp54 static bool ignoreCallingConv(LibFunc::Func Func) { in ignoreCallingConv()
56 case LibFunc::abs: in ignoreCallingConv()
57 case LibFunc::labs: in ignoreCallingConv()
58 case LibFunc::llabs: in ignoreCallingConv()
59 case LibFunc::strlen: in ignoreCallingConv()
107 LibFunc::Func DoubleFn, LibFunc::Func FloatFn, in hasUnaryFloatFn()
108 LibFunc::Func LongDoubleFn) { in hasUnaryFloatFn()
123 static bool checkStringCopyLibFuncSignature(Function *F, LibFunc::Func Func) { in checkStringCopyLibFuncSignature()
138 case LibFunc::stpncpy_chk: in checkStringCopyLibFuncSignature()
139 case LibFunc::strncpy_chk: in checkStringCopyLibFuncSignature()
[all …]
DBuildLibCalls.cpp38 if (!TLI->has(LibFunc::strlen)) in EmitStrLen()
63 if (!TLI->has(LibFunc::strnlen)) in EmitStrNLen()
89 if (!TLI->has(LibFunc::strchr)) in EmitStrChr()
113 if (!TLI->has(LibFunc::strncmp)) in EmitStrNCmp()
140 if (!TLI->has(LibFunc::strcpy)) in EmitStrCpy()
163 if (!TLI->has(LibFunc::strncpy)) in EmitStrNCpy()
190 if (!TLI->has(LibFunc::memcpy_chk)) in EmitMemCpyChk()
214 if (!TLI->has(LibFunc::memchr)) in EmitMemChr()
236 if (!TLI->has(LibFunc::memcmp)) in EmitMemCmp()
319 if (!TLI->has(LibFunc::putchar)) in EmitPutChar()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp301 LibFunc::Func Func; in mightUseCTR()
315 case LibFunc::copysign: in mightUseCTR()
316 case LibFunc::copysignf: in mightUseCTR()
318 case LibFunc::copysignl: in mightUseCTR()
320 case LibFunc::fabs: in mightUseCTR()
321 case LibFunc::fabsf: in mightUseCTR()
322 case LibFunc::fabsl: in mightUseCTR()
324 case LibFunc::sqrt: in mightUseCTR()
325 case LibFunc::sqrtf: in mightUseCTR()
326 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.cpp173 if (TLI && TLI->has(LibFunc::strcpy) && in hasMemoryWrite()
174 F->getName() == TLI->getName(LibFunc::strcpy)) { in hasMemoryWrite()
177 if (TLI && TLI->has(LibFunc::strncpy) && in hasMemoryWrite()
178 F->getName() == TLI->getName(LibFunc::strncpy)) { in hasMemoryWrite()
181 if (TLI && TLI->has(LibFunc::strcat) && in hasMemoryWrite()
182 F->getName() == TLI->getName(LibFunc::strcat)) { in hasMemoryWrite()
185 if (TLI && TLI->has(LibFunc::strncat) && in hasMemoryWrite()
186 F->getName() == TLI->getName(LibFunc::strncat)) { in hasMemoryWrite()
DLoopIdiomRecognize.cpp793 if (!TLI->has(LibFunc::memset)) in processLoopMemSet()
916 if (SplatValue && TLI->has(LibFunc::memset) && in processLoopStridedStore()
922 } else if (DestAS == 0 && TLI->has(LibFunc::memset_pattern16) && in processLoopStridedStore()
1025 if (!TLI->has(LibFunc::memcpy)) in processLoopStoreOfLoopLoad()
DMemCpyOptimizer.cpp930 if (!TLI->has(LibFunc::memmove)) in processMemMove()
1079 if (!TLI->has(LibFunc::memset) || !TLI->has(LibFunc::memcpy)) in runOnFunction()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5955 LibFunc::Func Func; in visitCall()
5961 case LibFunc::copysign: in visitCall()
5962 case LibFunc::copysignf: in visitCall()
5963 case LibFunc::copysignl: in visitCall()
5976 case LibFunc::fabs: in visitCall()
5977 case LibFunc::fabsf: in visitCall()
5978 case LibFunc::fabsl: in visitCall()
5982 case LibFunc::fmin: in visitCall()
5983 case LibFunc::fminf: in visitCall()
5984 case LibFunc::fminl: in visitCall()
[all …]
DFastISel.cpp1321 LibFunc::Func Func; in selectInstruction()
/external/llvm/lib/LTO/
DLTOCodeGenerator.cpp438 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in accumulateAndSortLibcalls()
440 LibFunc::Func F = static_cast<LibFunc::Func>(I); in accumulateAndSortLibcalls()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4058 LibFunc::Func Func; in visitFCmpInst()
4061 (Func == LibFunc::fabs || Func == LibFunc::fabsf || in visitFCmpInst()
4062 Func == LibFunc::fabsl))) { in visitFCmpInst()