/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 56 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 67 TLI.setUnavailable(LibFunc_getchar_unlocked); in initialize() 68 TLI.setUnavailable(LibFunc_putc_unlocked); in initialize() 69 TLI.setUnavailable(LibFunc_putchar_unlocked); in initialize() 70 TLI.setUnavailable(LibFunc_fputc_unlocked); in initialize() 71 TLI.setUnavailable(LibFunc_fgetc_unlocked); in initialize() 72 TLI.setUnavailable(LibFunc_fread_unlocked); in initialize() 73 TLI.setUnavailable(LibFunc_fwrite_unlocked); in initialize() 74 TLI.setUnavailable(LibFunc_fputs_unlocked); in initialize() 75 TLI.setUnavailable(LibFunc_fgets_unlocked); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 137 const TargetLibraryInfo *TLI) { in getAllocationDataForFunction() argument 141 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction() 174 const TargetLibraryInfo *TLI, in getAllocationData() argument 180 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData() 185 const TargetLibraryInfo *TLI) { in getAllocationSize() argument 196 getAllocationDataForFunction(Callee, AnyAlloc, TLI)) in getAllocationSize() 223 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 225 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue(); in isAllocationFn() 230 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 234 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() [all …]
|
D | ConstantFolding.cpp | 737 const DataLayout &DL, const TargetLibraryInfo *TLI) { in CastGEPIndices() argument 766 if (Constant *Folded = ConstantFoldConstant(C, DL, TLI)) in CastGEPIndices() 793 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument 804 GEP->getInRangeIndex(), DL, TLI)) in SymbolicallyEvaluateGEP() 829 if (auto *FoldedRes = ConstantFoldConstant(Res, DL, TLI)) in SymbolicallyEvaluateGEP() 996 const TargetLibraryInfo *TLI) { in ConstantFoldInstOperandsImpl() argument 1007 if (Constant *C = SymbolicallyEvaluateGEP(GEP, Ops, DL, TLI)) in ConstantFoldInstOperandsImpl() 1026 return ConstantFoldCall(CS, F, Ops.slice(0, Ops.size() - 1), TLI); in ConstantFoldInstOperandsImpl() 1050 const TargetLibraryInfo *TLI, in ConstantFoldConstantImpl() argument 1064 ConstantFoldConstantImpl(NewC, DL, TLI, FoldedOps)) { in ConstantFoldConstantImpl() [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-7.0/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 31 bool inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI); 32 bool inferLibFuncAttributes(Module *M, StringRef Name, const TargetLibraryInfo &TLI); 36 bool hasUnaryFloatFn(const TargetLibraryInfo *TLI, Type *Ty, 47 const TargetLibraryInfo *TLI); 53 const DataLayout &DL, const TargetLibraryInfo *TLI); 59 const TargetLibraryInfo *TLI); 63 const DataLayout &DL, const TargetLibraryInfo *TLI); 68 const TargetLibraryInfo *TLI, StringRef Name = "strcpy"); 73 const TargetLibraryInfo *TLI, StringRef Name = "strncpy"); 79 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 …]
|
D | TargetLibraryInfo.h | 107 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 108 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 109 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 110 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 202 TargetLibraryInfo(const TargetLibraryInfo &TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 203 TargetLibraryInfo(TargetLibraryInfo &&TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 204 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 205 Impl = TLI.Impl; 208 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) { 209 Impl = TLI.Impl; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 59 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 64 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 69 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 74 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 79 bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 84 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 94 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI); 95 inline CallInst *extractMallocCall(Value *I, const TargetLibraryInfo *TLI) { in extractMallocCall() argument 96 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall() 104 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI); [all …]
|
D | TargetLibraryInfo.h | 97 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 98 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 99 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 100 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 216 TargetLibraryInfo(const TargetLibraryInfo &TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 217 TargetLibraryInfo(TargetLibraryInfo &&TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 218 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 219 Impl = TLI.Impl; 222 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) { 223 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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 116 const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 120 return inferLibFuncAttributes(*F, TLI); in inferLibFuncAttributes() 123 bool llvm::inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI) { in inferLibFuncAttributes() argument 125 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferLibFuncAttributes() 740 bool llvm::hasUnaryFloatFn(const TargetLibraryInfo *TLI, Type *Ty, in hasUnaryFloatFn() argument 745 return TLI->has(FloatFn); in hasUnaryFloatFn() 747 return TLI->has(DoubleFn); in hasUnaryFloatFn() 749 return TLI->has(LongDoubleFn); in hasUnaryFloatFn() 761 const TargetLibraryInfo *TLI) { in emitStrLen() argument 762 if (!TLI->has(LibFunc_strlen)) in emitStrLen() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 100 MemoryDependenceResults &MD, const TargetLibraryInfo &TLI, in deleteDeadInstruction() argument 134 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction() 153 const TargetLibraryInfo &TLI) { in hasAnalyzableMemoryWrite() argument 174 if (TLI.has(LibFunc_strcpy) && FnName == TLI.getName(LibFunc_strcpy)) in hasAnalyzableMemoryWrite() 176 if (TLI.has(LibFunc_strncpy) && FnName == TLI.getName(LibFunc_strncpy)) in hasAnalyzableMemoryWrite() 178 if (TLI.has(LibFunc_strcat) && FnName == TLI.getName(LibFunc_strcat)) in hasAnalyzableMemoryWrite() 180 if (TLI.has(LibFunc_strncat) && FnName == TLI.getName(LibFunc_strncat)) in hasAnalyzableMemoryWrite() 223 const TargetLibraryInfo &TLI) { in getLocForRead() argument 224 assert(hasAnalyzableMemoryWrite(Inst, TLI) && "Unknown instruction case"); in getLocForRead() 313 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() 78 const TargetLibraryInfo *TLI) { in DCEInstruction() argument 79 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction() 95 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction() 106 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in eliminateDeadCode() argument 119 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 124 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 150 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnFunction() local 152 return eliminateDeadCode(F, TLI); in runOnFunction()
|
/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-7.0/llvm/lib/Target/ARC/ |
D | ARCTargetTransformInfo.h | 35 const ARCTargetLowering *TLI; variable 38 const ARCTargetLowering *getTLI() const { return TLI; } in getTLI() 43 TLI(ST->getTargetLowering()) {} in ARCTTIImpl() 47 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARCTTIImpl() 50 TLI(std::move(Arg.TLI)) {} in ARCTTIImpl()
|
/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()
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiTargetTransformInfo.h | 34 const LanaiTargetLowering *TLI; variable 37 const LanaiTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in LanaiTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in LanaiTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in LanaiTTIImpl() 64 int ISD = TLI->InstructionOpcodeToISD(Opcode);
|
/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | CallLowering.h | 28 const TargetLowering *TLI; variable 32 return TLI; in getTLI() 38 return static_cast<const XXXTargetLowering *>(TLI); in getTLI() 41 CallLowering(const TargetLowering *TLI) : TLI(TLI) {} in CallLowering() argument
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.h | 25 const SystemZTargetLowering *TLI; variable 28 const SystemZTargetLowering *getTLI() const { return TLI; } in getTLI() 33 TLI(ST->getTargetLowering()) {} in SystemZTTIImpl() 37 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in SystemZTTIImpl() 40 TLI(std::move(Arg.TLI)) {} in SystemZTTIImpl()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXTargetTransformInfo.h | 34 const NVPTXTargetLowering *TLI; variable 37 const NVPTXTargetLowering *getTLI() const { return TLI; }; in getTLI() 42 TLI(ST->getTargetLowering()) {} in NVPTXTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in NVPTXTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in NVPTXTTIImpl()
|