/external/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 28 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 …]
|
D | MemoryBuiltins.cpp | 53 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 …]
|
D | ConstantFolding.cpp | 1556 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 …]
|
D | ValueTracking.cpp | 2307 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 …]
|
D | MemoryLocation.cpp | 145 LibFunc::Func F; in getForArgument() 147 F == LibFunc::memset_pattern16 && TLI.has(F)) { in getForArgument()
|
/external/llvm/include/llvm/Analysis/ |
D | TargetLibraryInfo.h | 44 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/ |
D | BuildLibCalls.cpp | 110 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 …]
|
D | SimplifyLibCalls.cpp | 54 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 …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 318 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-10.0/llvm/include/llvm/Analysis/ |
D | TargetLibraryInfo.h | 34 enum LibFunc : unsigned { enum 61 void setState(LibFunc F, AvailabilityState State) { in setState() 65 AvailabilityState getState(LibFunc F) const { in getState() 77 bool isValidProtoForLibFunc(const FunctionType &FTy, LibFunc F, 108 bool getLibFunc(StringRef funcName, LibFunc &F) const; 115 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 118 void setUnavailable(LibFunc F) { in setUnavailable() 123 void setAvailable(LibFunc F) { in setAvailable() 129 void setAvailableWithName(LibFunc F, StringRef Name) { in setAvailableWithName() 233 LibFunc LF; [all …]
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | TargetLibraryInfoTest.cpp | 44 LibFunc ExpectedLF) { in isLibFunc() 50 LibFunc F; in isLibFunc() 67 for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { in TEST_F() 68 LibFunc LF = (LibFunc)FI; in TEST_F() 585 for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { in TEST_F() 586 LibFunc LF = (LibFunc)FI; in TEST_F()
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | TargetLibraryInfo.h | 34 enum LibFunc : unsigned { enum 61 void setState(LibFunc F, AvailabilityState State) { in setState() 65 AvailabilityState getState(LibFunc F) const { in getState() 77 bool isValidProtoForLibFunc(const FunctionType &FTy, LibFunc F, 109 bool getLibFunc(StringRef funcName, LibFunc &F) const; 116 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 119 void setUnavailable(LibFunc F) { in setUnavailable() 124 void setAvailable(LibFunc F) { in setAvailable() 130 void setAvailableWithName(LibFunc F, StringRef Name) { in setAvailableWithName() 234 LibFunc LF; [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 35 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn); 40 LibFunc DoubleFn, LibFunc FloatFn, 41 LibFunc LongDoubleFn); 163 LibFunc DoubleFn, LibFunc FloatFn, 164 LibFunc LongDoubleFn, IRBuilderBase &B, 177 const TargetLibraryInfo *TLI, LibFunc DoubleFn, 178 LibFunc FloatFn, LibFunc LongDoubleFn,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 36 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn); 41 LibFunc DoubleFn, LibFunc FloatFn, 42 LibFunc LongDoubleFn); 160 LibFunc DoubleFn, LibFunc FloatFn, 161 LibFunc LongDoubleFn, IRBuilder<> &B, 174 const TargetLibraryInfo *TLI, LibFunc DoubleFn, 175 LibFunc FloatFn, LibFunc LongDoubleFn,
|
D | SimplifyLibCalls.h | 61 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 62 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 201 Value *optimizeFloatingPointLibCall(CallInst *CI, LibFunc Func,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LibCallsShrinkWrap.cpp | 96 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func); 97 bool performCallErrors(CallInst *CI, const LibFunc &Func); 98 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func); 99 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func); 100 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func); 101 Value *generateCondForPow(CallInst *CI, const LibFunc &Func); 137 const LibFunc &Func) { in performCallDomainErrorOnly() 189 const LibFunc &Func) { in performCallRangeErrorOnly() 227 const LibFunc &Func) { in performCallErrors() 300 LibFunc Func; in checkCandidate() [all …]
|
D | BuildLibCalls.cpp | 148 LibFunc TheLibFunc; in inferLibFuncAttributes() 789 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn) { in hasFloatFn() 803 LibFunc DoubleFn, LibFunc FloatFn, in getFloatFnName() 804 LibFunc LongDoubleFn) { in getFloatFnName() 827 static Value *emitLibCall(LibFunc TheLibFunc, Type *ReturnType, in emitLibCall() 1074 LibFunc DoubleFn, LibFunc FloatFn, in emitUnaryFloatFnCall() 1075 LibFunc LongDoubleFn, IRBuilder<> &B, in emitUnaryFloatFnCall() 1119 LibFunc DoubleFn, LibFunc FloatFn, in emitBinaryFloatFnCall() 1120 LibFunc LongDoubleFn, IRBuilder<> &B, in emitBinaryFloatFnCall()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LibCallsShrinkWrap.cpp | 96 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func); 97 bool performCallErrors(CallInst *CI, const LibFunc &Func); 98 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func); 99 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func); 100 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func); 101 Value *generateCondForPow(CallInst *CI, const LibFunc &Func); 137 const LibFunc &Func) { in performCallDomainErrorOnly() 189 const LibFunc &Func) { in performCallRangeErrorOnly() 227 const LibFunc &Func) { in performCallErrors() 300 LibFunc Func; in checkCandidate() [all …]
|
D | BuildLibCalls.cpp | 193 LibFunc TheLibFunc; in inferLibFuncAttributes() 974 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn) { in hasFloatFn() 988 LibFunc DoubleFn, LibFunc FloatFn, in getFloatFnName() 989 LibFunc LongDoubleFn) { in getFloatFnName() 1012 static Value *emitLibCall(LibFunc TheLibFunc, Type *ReturnType, in emitLibCall() 1268 LibFunc DoubleFn, LibFunc FloatFn, in emitUnaryFloatFnCall() 1269 LibFunc LongDoubleFn, IRBuilderBase &B, in emitUnaryFloatFnCall() 1317 LibFunc DoubleFn, LibFunc FloatFn, in emitBinaryFloatFnCall() 1318 LibFunc LongDoubleFn, IRBuilderBase &B, in emitBinaryFloatFnCall()
|
/external/llvm/lib/Transforms/Scalar/ |
D | PartiallyInlineLibCalls.cpp | 101 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()
|
D | DeadStoreElimination.cpp | 133 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()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | UpdateCompilerUsed.cpp | 64 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in initializeLibCalls() 66 LibFunc F = static_cast<LibFunc>(I); in initializeLibCalls()
|
/external/llvm-project/llvm/lib/LTO/ |
D | UpdateCompilerUsed.cpp | 65 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in initializeLibCalls() 67 LibFunc F = static_cast<LibFunc>(I); in initializeLibCalls()
|
/external/llvm/lib/LTO/ |
D | UpdateCompilerUsed.cpp | 65 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in initializeLibCalls() 67 LibFunc::Func F = static_cast<LibFunc::Func>(I); in initializeLibCalls()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | PGOMemOPSizeOpt.cpp | 190 LibFunc Func; in isMemcmp() 198 LibFunc Func; in isBcmp() 208 LibFunc Func; in getName() 254 LibFunc Func; in visitCallInst()
|