/external/llvm-project/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 71 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 81 TLI.setUnavailable(LibFunc_getchar_unlocked); in initialize() 82 TLI.setUnavailable(LibFunc_putc_unlocked); in initialize() 83 TLI.setUnavailable(LibFunc_putchar_unlocked); in initialize() 84 TLI.setUnavailable(LibFunc_fputc_unlocked); in initialize() 85 TLI.setUnavailable(LibFunc_fgetc_unlocked); in initialize() 86 TLI.setUnavailable(LibFunc_fread_unlocked); in initialize() 87 TLI.setUnavailable(LibFunc_fwrite_unlocked); in initialize() 88 TLI.setUnavailable(LibFunc_fputs_unlocked); in initialize() 89 TLI.setUnavailable(LibFunc_fgets_unlocked); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 138 const TargetLibraryInfo *TLI) { in getAllocationDataForFunction() argument 142 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction() 175 const TargetLibraryInfo *TLI, in getAllocationData() argument 181 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData() 199 const TargetLibraryInfo *TLI) { in getAllocationSize() argument 210 getAllocationDataForFunction(Callee, AnyAlloc, TLI)) in getAllocationSize() 238 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 240 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue(); in isAllocationFn() 250 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 254 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 69 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 80 TLI.setUnavailable(LibFunc_getchar_unlocked); in initialize() 81 TLI.setUnavailable(LibFunc_putc_unlocked); in initialize() 82 TLI.setUnavailable(LibFunc_putchar_unlocked); in initialize() 83 TLI.setUnavailable(LibFunc_fputc_unlocked); in initialize() 84 TLI.setUnavailable(LibFunc_fgetc_unlocked); in initialize() 85 TLI.setUnavailable(LibFunc_fread_unlocked); in initialize() 86 TLI.setUnavailable(LibFunc_fwrite_unlocked); in initialize() 87 TLI.setUnavailable(LibFunc_fputs_unlocked); in initialize() 88 TLI.setUnavailable(LibFunc_fgets_unlocked); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 136 const TargetLibraryInfo *TLI) { in getAllocationDataForFunction() argument 140 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction() 173 const TargetLibraryInfo *TLI, in getAllocationData() argument 179 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData() 197 const TargetLibraryInfo *TLI) { in getAllocationSize() argument 208 getAllocationDataForFunction(Callee, AnyAlloc, TLI)) in getAllocationSize() 235 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 237 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue(); in isAllocationFn() 247 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 251 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() [all …]
|
/external/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 54 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 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 | 102 const TargetLibraryInfo *TLI, in getAllocationData() argument 134 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationData() 176 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 178 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue(); in isAllocationFn() 183 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 187 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() 193 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isMallocLikeFn() argument 195 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast).hasValue(); in isMallocLikeFn() 200 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isCallocLikeFn() argument 202 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast).hasValue(); in isCallocLikeFn() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 30 bool inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI); 31 bool inferLibFuncAttributes(Module *M, StringRef Name, const TargetLibraryInfo &TLI); 35 bool hasFloatFn(const TargetLibraryInfo *TLI, Type *Ty, 40 StringRef getFloatFnName(const TargetLibraryInfo *TLI, Type *Ty, 51 const TargetLibraryInfo *TLI); 56 Value *emitStrDup(Value *Ptr, IRBuilder<> &B, const TargetLibraryInfo *TLI); 62 const DataLayout &DL, const TargetLibraryInfo *TLI); 68 const TargetLibraryInfo *TLI); 72 const DataLayout &DL, const TargetLibraryInfo *TLI); 77 const TargetLibraryInfo *TLI); [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 29 bool inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI); 30 bool inferLibFuncAttributes(Module *M, StringRef Name, const TargetLibraryInfo &TLI); 34 bool hasFloatFn(const TargetLibraryInfo *TLI, Type *Ty, 39 StringRef getFloatFnName(const TargetLibraryInfo *TLI, Type *Ty, 50 const TargetLibraryInfo *TLI); 55 Value *emitStrDup(Value *Ptr, IRBuilderBase &B, const TargetLibraryInfo *TLI); 61 const DataLayout &DL, const TargetLibraryInfo *TLI); 67 const TargetLibraryInfo *TLI); 71 const DataLayout &DL, const TargetLibraryInfo *TLI); 76 const TargetLibraryInfo *TLI); [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 53 const TargetLibraryInfo *TLI = nullptr, 62 const TargetLibraryInfo *TLI = nullptr, 71 const TargetLibraryInfo *TLI = nullptr, 80 const TargetLibraryInfo *TLI = nullptr, 89 const TargetLibraryInfo *TLI = nullptr, 97 const TargetLibraryInfo *TLI = nullptr, 105 const TargetLibraryInfo *TLI = nullptr, 113 const TargetLibraryInfo *TLI = nullptr, 122 const TargetLibraryInfo *TLI = nullptr, 130 const TargetLibraryInfo *TLI = nullptr, [all …]
|
D | MemoryBuiltins.h | 44 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 49 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 54 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 59 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 64 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 74 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI); 76 const TargetLibraryInfo *TLI) { in extractMallocCall() argument 77 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall() 85 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI); 92 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI); [all …]
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 57 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 65 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 70 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 78 bool isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 86 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 91 bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 96 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 101 bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 106 bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI); 110 bool isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI, [all …]
|
D | TargetLibraryInfo.h | 100 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 101 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 102 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 103 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 249 TargetLibraryInfo(const TargetLibraryInfo &TLI) in TargetLibraryInfo() argument 250 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo() 251 TargetLibraryInfo(TargetLibraryInfo &&TLI) in TargetLibraryInfo() argument 252 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo() 253 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 254 Impl = TLI.Impl; [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 30 bool inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI); 39 const TargetLibraryInfo *TLI); 45 const DataLayout &DL, const TargetLibraryInfo *TLI); 51 const TargetLibraryInfo *TLI); 55 const DataLayout &DL, const TargetLibraryInfo *TLI); 60 const TargetLibraryInfo *TLI, StringRef Name = "strcpy"); 65 const TargetLibraryInfo *TLI, StringRef Name = "strncpy"); 71 const TargetLibraryInfo *TLI); 76 const DataLayout &DL, const TargetLibraryInfo *TLI); 80 const DataLayout &DL, const TargetLibraryInfo *TLI); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 59 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 67 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 72 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 80 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 85 bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 90 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 95 bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 100 bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI); 104 bool isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI, 109 bool isStrdupLikeFn(const Value *V, const TargetLibraryInfo *TLI, [all …]
|
D | TargetLibraryInfo.h | 99 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 100 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 101 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 102 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 248 TargetLibraryInfo(const TargetLibraryInfo &TLI) in TargetLibraryInfo() argument 249 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo() 250 TargetLibraryInfo(TargetLibraryInfo &&TLI) in TargetLibraryInfo() argument 251 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo() 252 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 253 Impl = TLI.Impl; [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 140 const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 144 return inferLibFuncAttributes(*F, TLI); in inferLibFuncAttributes() 147 bool llvm::inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 149 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferLibFuncAttributes() 154 if(!isLibFreeFunction(&F, TheLibFunc) && !isReallocLikeFn(&F, &TLI)) in inferLibFuncAttributes() 788 bool llvm::hasFloatFn(const TargetLibraryInfo *TLI, Type *Ty, in hasFloatFn() argument 794 return TLI->has(FloatFn); in hasFloatFn() 796 return TLI->has(DoubleFn); in hasFloatFn() 798 return TLI->has(LongDoubleFn); in hasFloatFn() 802 StringRef llvm::getFloatFnName(const TargetLibraryInfo *TLI, Type *Ty, in getFloatFnName() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 69 MemoryDependenceResults &MD, const TargetLibraryInfo &TLI, in deleteDeadInstruction() argument 98 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction() 115 static bool hasMemoryWrite(Instruction *I, const TargetLibraryInfo &TLI) { in hasMemoryWrite() argument 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() 180 const TargetLibraryInfo &TLI) { in getLocForRead() argument 181 assert(hasMemoryWrite(Inst, TLI) && "Unknown instruction case"); in getLocForRead() 277 const TargetLibraryInfo &TLI) { in getPointerSize() argument [all …]
|
D | DCE.cpp | 48 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnBasicBlock() local 52 if (isInstructionTriviallyDead(Inst, TLI)) { in runOnBasicBlock() 77 const TargetLibraryInfo *TLI) { in DCEInstruction() argument 78 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction() 92 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction() 103 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in eliminateDeadCode() argument 116 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 121 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 144 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnFunction() local 146 return eliminateDeadCode(F, TLI); in runOnFunction()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 185 const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 189 return inferLibFuncAttributes(*F, TLI); in inferLibFuncAttributes() 192 bool llvm::inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 194 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferLibFuncAttributes() 199 if(!isLibFreeFunction(&F, TheLibFunc) && !isReallocLikeFn(&F, &TLI)) in inferLibFuncAttributes() 973 bool llvm::hasFloatFn(const TargetLibraryInfo *TLI, Type *Ty, in hasFloatFn() argument 979 return TLI->has(FloatFn); in hasFloatFn() 981 return TLI->has(DoubleFn); in hasFloatFn() 983 return TLI->has(LongDoubleFn); in hasFloatFn() 987 StringRef llvm::getFloatFnName(const TargetLibraryInfo *TLI, Type *Ty, in getFloatFnName() argument [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 192 const TargetLoweringBase *TLI = getTLI(); in shouldBuildLookupTables() local 193 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 194 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 198 const TargetLoweringBase *TLI = getTLI(); in haveFastSqrt() local 199 EVT VT = TLI->getValueType(DL, Ty); in haveFastSqrt() 200 return TLI->isTypeLegal(VT) && in haveFastSqrt() 201 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt() 211 const TargetLoweringBase *TLI = getTLI(); in getOperationCost() local 215 if (TLI->isTruncateFree(OpTy, Ty)) in getOperationCost() 220 if (TLI->isZExtFree(OpTy, Ty)) in getOperationCost() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetTransformInfo.h | 34 const XCoreTargetLowering *TLI; variable 37 const XCoreTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in XCoreTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in XCoreTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in XCoreTTIImpl()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/ |
D | ARCTargetTransformInfo.h | 34 const ARCTargetLowering *TLI; variable 37 const ARCTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in ARCTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARCTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in ARCTTIImpl()
|
/external/llvm-project/llvm/lib/Target/ARC/ |
D | ARCTargetTransformInfo.h | 34 const ARCTargetLowering *TLI; variable 37 const ARCTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in ARCTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARCTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in ARCTTIImpl()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 102 MemoryDependenceResults &MD, const TargetLibraryInfo &TLI, in deleteDeadInstruction() argument 140 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction() 162 const TargetLibraryInfo &TLI) { in hasAnalyzableMemoryWrite() argument 183 if (TLI.getLibFunc(*F, LF) && TLI.has(LF)) { in hasAnalyzableMemoryWrite() 235 const TargetLibraryInfo &TLI) { in getLocForRead() argument 236 assert(hasAnalyzableMemoryWrite(Inst, TLI) && "Unknown instruction case"); in getLocForRead() 325 const TargetLibraryInfo &TLI, in getPointerSize() argument 331 if (getObjectSize(V, Size, DL, &TLI, Opts)) in getPointerSize() 358 const TargetLibraryInfo &TLI, in isOverwrite() argument 395 uint64_t ObjectSize = getPointerSize(UO2, DL, TLI, F); in isOverwrite() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonTargetTransformInfo.h | 33 const HexagonTargetLowering *TLI; variable 36 const HexagonTargetLowering *getTLI() const { return TLI; } in getTLI() 41 TLI(ST->getTargetLowering()) {} in HexagonTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in HexagonTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in HexagonTTIImpl()
|