Home
last modified time | relevance | path

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

12

/external/llvm/lib/Analysis/
DTargetLibraryInfo.cpp28 const char *const TargetLibraryInfoImpl::StandardNames[LibFunc::NumLibFuncs] = {
65 TLI.setUnavailable(LibFunc::ldexp); in initialize()
66 TLI.setUnavailable(LibFunc::ldexpf); in initialize()
67 TLI.setUnavailable(LibFunc::ldexpl); in initialize()
68 TLI.setUnavailable(LibFunc::exp10); in initialize()
69 TLI.setUnavailable(LibFunc::exp10f); in initialize()
70 TLI.setUnavailable(LibFunc::exp10l); in initialize()
71 TLI.setUnavailable(LibFunc::log10); in initialize()
72 TLI.setUnavailable(LibFunc::log10f); in initialize()
73 TLI.setUnavailable(LibFunc::log10l); in initialize()
[all …]
DMemoryBuiltins.cpp53 static const std::pair<LibFunc::Func, AllocFnsTy> AllocationFnData[] = {
54 {LibFunc::malloc, {MallocLike, 1, 0, -1}},
55 {LibFunc::valloc, {MallocLike, 1, 0, -1}},
56 {LibFunc::Znwj, {OpNewLike, 1, 0, -1}}, // new(unsigned int)
57 {LibFunc::ZnwjRKSt9nothrow_t, {MallocLike, 2, 0, -1}}, // new(unsigned int, nothrow)
58 {LibFunc::Znwm, {OpNewLike, 1, 0, -1}}, // new(unsigned long)
59 {LibFunc::ZnwmRKSt9nothrow_t, {MallocLike, 2, 0, -1}}, // new(unsigned long, nothrow)
60 {LibFunc::Znaj, {OpNewLike, 1, 0, -1}}, // new[](unsigned int)
61 {LibFunc::ZnajRKSt9nothrow_t, {MallocLike, 2, 0, -1}}, // new[](unsigned int, nothrow)
62 {LibFunc::Znam, {OpNewLike, 1, 0, -1}}, // new[](unsigned long)
[all …]
DConstantFolding.cpp1556 if ((Name == "acos" && TLI->has(LibFunc::acos)) || in ConstantFoldScalarCall()
1557 (Name == "acosf" && TLI->has(LibFunc::acosf))) in ConstantFoldScalarCall()
1559 else if ((Name == "asin" && TLI->has(LibFunc::asin)) || in ConstantFoldScalarCall()
1560 (Name == "asinf" && TLI->has(LibFunc::asinf))) in ConstantFoldScalarCall()
1562 else if ((Name == "atan" && TLI->has(LibFunc::atan)) || in ConstantFoldScalarCall()
1563 (Name == "atanf" && TLI->has(LibFunc::atanf))) in ConstantFoldScalarCall()
1567 if ((Name == "ceil" && TLI->has(LibFunc::ceil)) || in ConstantFoldScalarCall()
1568 (Name == "ceilf" && TLI->has(LibFunc::ceilf))) in ConstantFoldScalarCall()
1570 else if ((Name == "cos" && TLI->has(LibFunc::cos)) || in ConstantFoldScalarCall()
1571 (Name == "cosf" && TLI->has(LibFunc::cosf))) in ConstantFoldScalarCall()
[all …]
DValueTracking.cpp2307 LibFunc::Func Func; in getIntrinsicForCallSite()
2322 case LibFunc::sin: in getIntrinsicForCallSite()
2323 case LibFunc::sinf: in getIntrinsicForCallSite()
2324 case LibFunc::sinl: in getIntrinsicForCallSite()
2326 case LibFunc::cos: in getIntrinsicForCallSite()
2327 case LibFunc::cosf: in getIntrinsicForCallSite()
2328 case LibFunc::cosl: in getIntrinsicForCallSite()
2330 case LibFunc::exp: in getIntrinsicForCallSite()
2331 case LibFunc::expf: in getIntrinsicForCallSite()
2332 case LibFunc::expl: in getIntrinsicForCallSite()
[all …]
DMemoryLocation.cpp145 LibFunc::Func F; in getForArgument()
147 F == LibFunc::memset_pattern16 && TLI.has(F)) { in getForArgument()
DBasicAliasAnalysis.cpp622 LibFunc::Func F; in isWriteOnlyParam()
624 F == LibFunc::memset_pattern16 && TLI.has(F)) in isWriteOnlyParam()
/external/llvm/include/llvm/Analysis/
DTargetLibraryInfo.h44 namespace LibFunc {
62 unsigned char AvailableArray[(LibFunc::NumLibFuncs+3)/4];
64 static const char *const StandardNames[LibFunc::NumLibFuncs];
71 void setState(LibFunc::Func F, AvailabilityState State) { in setState()
75 AvailabilityState getState(LibFunc::Func F) const { in getState()
87 bool isValidProtoForLibFunc(const FunctionType &FTy, LibFunc::Func F,
116 bool getLibFunc(StringRef funcName, LibFunc::Func &F) const;
123 bool getLibFunc(const Function &FDecl, LibFunc::Func &F) const;
126 void setUnavailable(LibFunc::Func F) { in setUnavailable()
131 void setAvailable(LibFunc::Func F) { in setAvailable()
[all …]
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp110 LibFunc::Func TheLibFunc; in inferLibFuncAttributes()
116 case LibFunc::strlen: in inferLibFuncAttributes()
121 case LibFunc::strchr: in inferLibFuncAttributes()
122 case LibFunc::strrchr: in inferLibFuncAttributes()
126 case LibFunc::strtol: in inferLibFuncAttributes()
127 case LibFunc::strtod: in inferLibFuncAttributes()
128 case LibFunc::strtof: in inferLibFuncAttributes()
129 case LibFunc::strtoul: in inferLibFuncAttributes()
130 case LibFunc::strtoll: in inferLibFuncAttributes()
131 case LibFunc::strtold: in inferLibFuncAttributes()
[all …]
DSimplifyLibCalls.cpp54 static bool ignoreCallingConv(LibFunc::Func Func) { in ignoreCallingConv()
55 return Func == LibFunc::abs || Func == LibFunc::labs || in ignoreCallingConv()
56 Func == LibFunc::llabs || Func == LibFunc::strlen; in ignoreCallingConv()
94 LibFunc::Func DoubleFn, LibFunc::Func FloatFn, in hasUnaryFloatFn()
95 LibFunc::Func LongDoubleFn) { in hasUnaryFloatFn()
782 LibFunc::Func Func; in emitCalloc()
817 LibFunc::Func Func; in foldMallocMemset()
819 Func != LibFunc::malloc) in foldMallocMemset()
1002 hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp2, LibFunc::exp2f, in optimizePow()
1003 LibFunc::exp2l)) in optimizePow()
[all …]
DLocal.cpp1960 LibFunc::Func Func; in maybeMarkSanitizerLibraryCallNoBuiltin()
1966 case LibFunc::memcmp: in maybeMarkSanitizerLibraryCallNoBuiltin()
1967 case LibFunc::memchr: in maybeMarkSanitizerLibraryCallNoBuiltin()
1968 case LibFunc::strcpy: in maybeMarkSanitizerLibraryCallNoBuiltin()
1969 case LibFunc::stpcpy: in maybeMarkSanitizerLibraryCallNoBuiltin()
1970 case LibFunc::strcmp: in maybeMarkSanitizerLibraryCallNoBuiltin()
1971 case LibFunc::strlen: in maybeMarkSanitizerLibraryCallNoBuiltin()
1972 case LibFunc::strnlen: in maybeMarkSanitizerLibraryCallNoBuiltin()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp318 LibFunc::Func Func; in mightUseCTR()
332 case LibFunc::copysign: in mightUseCTR()
333 case LibFunc::copysignf: in mightUseCTR()
335 case LibFunc::copysignl: in mightUseCTR()
337 case LibFunc::fabs: in mightUseCTR()
338 case LibFunc::fabsf: in mightUseCTR()
339 case LibFunc::fabsl: in mightUseCTR()
341 case LibFunc::sqrt: in mightUseCTR()
342 case LibFunc::sqrtf: in mightUseCTR()
343 case LibFunc::sqrtl: in mightUseCTR()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetLibraryInfo.cpp33 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
36 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
38 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize()
43 TLI.setUnavailable(LibFunc::iprintf); in initialize()
44 TLI.setUnavailable(LibFunc::siprintf); in initialize()
45 TLI.setUnavailable(LibFunc::fiprintf); in initialize()
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetLibraryInfo.h18 namespace LibFunc {
49 unsigned char AvailableArray[(LibFunc::NumLibFuncs+7)/8];
58 bool has(LibFunc::Func F) const { in has()
64 void setUnavailable(LibFunc::Func F) { in setUnavailable()
68 void setAvailable(LibFunc::Func F) { in setAvailable()
/external/llvm/lib/Transforms/Scalar/
DPartiallyInlineLibCalls.cpp101 LibFunc::Func LibFunc; in runPartiallyInlineLibCalls() local
103 !TLI->getLibFunc(CalledFunc->getName(), LibFunc)) in runPartiallyInlineLibCalls()
106 switch (LibFunc) { in runPartiallyInlineLibCalls()
107 case LibFunc::sqrtf: in runPartiallyInlineLibCalls()
108 case LibFunc::sqrt: in runPartiallyInlineLibCalls()
DDeadStoreElimination.cpp133 if (TLI.has(LibFunc::strcpy) && FnName == TLI.getName(LibFunc::strcpy)) in hasMemoryWrite()
135 if (TLI.has(LibFunc::strncpy) && FnName == TLI.getName(LibFunc::strncpy)) in hasMemoryWrite()
137 if (TLI.has(LibFunc::strcat) && FnName == TLI.getName(LibFunc::strcat)) in hasMemoryWrite()
139 if (TLI.has(LibFunc::strncat) && FnName == TLI.getName(LibFunc::strncat)) in hasMemoryWrite()
DLoopIdiomRecognize.cpp232 HasMemset = TLI->has(LibFunc::memset); in runOnLoop()
233 HasMemsetPattern = TLI->has(LibFunc::memset_pattern16); in runOnLoop()
234 HasMemcpy = TLI->has(LibFunc::memcpy); in runOnLoop()
DMemCpyOptimizer.cpp1236 if (!TLI->has(LibFunc::memmove)) in processMemMove()
1410 if (!TLI->has(LibFunc::memset) || !TLI->has(LibFunc::memcpy)) in runImpl()
/external/llvm/lib/LTO/
DUpdateCompilerUsed.cpp65 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in initializeLibCalls()
67 LibFunc::Func F = static_cast<LibFunc::Func>(I); in initializeLibCalls()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp333 if (!TLI->has(LibFunc::memset)) in processLoopMemSet()
454 if (SplatValue && TLI->has(LibFunc::memset) && in processLoopStridedStore()
460 } else if (TLI->has(LibFunc::memset_pattern16) && in processLoopStridedStore()
554 if (!TLI->has(LibFunc::memcpy)) in processLoopStoreOfLoopLoad()
DMemCpyOptimizer.cpp832 if (!TLI->has(LibFunc::memmove)) in processMemMove()
975 if (!TLI->has(LibFunc::memset) || !TLI->has(LibFunc::memcpy)) in runOnFunction()
DSimplifyLibCalls.cpp1167 if (TLI->has(LibFunc::iprintf) && !CallHasFloatingPointArgument(CI)) { in CallOptimizer()
1261 if (TLI->has(LibFunc::siprintf) && !CallHasFloatingPointArgument(CI)) { in CallOptimizer()
1399 if (TLI->has(LibFunc::fiprintf) && !CallHasFloatingPointArgument(CI)) { in CallOptimizer()
1530 if (TLI->has(LibFunc::memcpy)) Optimizations["memcpy"] = &MemCpy; in InitOptimizations()
1532 if (TLI->has(LibFunc::memset)) Optimizations["memset"] = &MemSet; in InitOptimizations()
/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.cpp6219 LibFunc::Func Func; in visitCall()
6225 case LibFunc::copysign: in visitCall()
6226 case LibFunc::copysignf: in visitCall()
6227 case LibFunc::copysignl: in visitCall()
6240 case LibFunc::fabs: in visitCall()
6241 case LibFunc::fabsf: in visitCall()
6242 case LibFunc::fabsl: in visitCall()
6246 case LibFunc::fmin: in visitCall()
6247 case LibFunc::fminf: in visitCall()
6248 case LibFunc::fminl: in visitCall()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyStoreResults.cpp168 LibFunc::Func Func; in optimizeCall()
DWebAssemblyPeephole.cpp149 LibFunc::Func Func; in runOnMachineFunction()

12