/external/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 54 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 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() 88 TLI.setUnavailable(LibFunc::cospi); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 94 const TargetLibraryInfo *TLI, in getAllocationData() argument 107 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationData() 151 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 153 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast); in isAllocationFn() 158 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 162 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() 168 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isMallocLikeFn() argument 170 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast); in isMallocLikeFn() 175 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isCallocLikeFn() argument 177 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast); in isCallocLikeFn() [all …]
|
D | ConstantFolding.cpp | 676 const TargetLibraryInfo *TLI) { in CastGEPIndices() argument 703 if (Constant *Folded = ConstantFoldConstantExpression(CE, DL, TLI)) in CastGEPIndices() 729 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument 755 Res = ConstantFoldConstantExpression(ResCE, DL, TLI); in SymbolicallyEvaluateGEP() 893 const TargetLibraryInfo *TLI) { in ConstantFoldInstruction() argument 912 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction() 935 Op = ConstantFoldConstantExpression(NewCE, DL, TLI); in ConstantFoldInstruction() 942 DL, TLI); in ConstantFoldInstruction() 960 return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, DL, TLI); in ConstantFoldInstruction() 965 const TargetLibraryInfo *TLI, in ConstantFoldConstantExpressionImpl() argument [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 39 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 44 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 49 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 54 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 59 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 64 bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 69 bool isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI, 79 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI); 81 const TargetLibraryInfo *TLI) { in extractMallocCall() argument 82 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall() [all …]
|
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 | TargetLibraryInfo.h | 101 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 102 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 103 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 104 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 190 TargetLibraryInfo(const TargetLibraryInfo &TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 191 TargetLibraryInfo(TargetLibraryInfo &&TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 192 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 193 Impl = TLI.Impl; 196 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) { 197 Impl = TLI.Impl; [all …]
|
D | ConstantFolding.h | 40 const TargetLibraryInfo *TLI = nullptr); 47 const TargetLibraryInfo *TLI = nullptr); 58 const TargetLibraryInfo *TLI = nullptr); 67 const TargetLibraryInfo *TLI = nullptr); 99 const TargetLibraryInfo *TLI = nullptr);
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 32 const TargetLibraryInfo *TLI); 38 const DataLayout &DL, const TargetLibraryInfo *TLI); 44 const TargetLibraryInfo *TLI); 48 const DataLayout &DL, const TargetLibraryInfo *TLI); 53 const TargetLibraryInfo *TLI, StringRef Name = "strcpy"); 58 const TargetLibraryInfo *TLI, StringRef Name = "strncpy"); 65 const TargetLibraryInfo *TLI); 70 const DataLayout &DL, const TargetLibraryInfo *TLI); 74 const DataLayout &DL, const TargetLibraryInfo *TLI); 94 Value *EmitPutChar(Value *Char, IRBuilder<> &B, const TargetLibraryInfo *TLI); [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetTransformInfo.h | 34 const XCoreTargetLowering *TLI; variable 37 const XCoreTargetLowering *getTLI() const { return TLI; } in getTLI() 41 : BaseT(TM), ST(TM->getSubtargetImpl()), TLI(ST->getTargetLowering()) {} in XCoreTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in XCoreTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in XCoreTTIImpl() 52 TLI = RHS.TLI; 58 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUTargetTransformInfo.h | 34 const AMDGPUTargetLowering *TLI; variable 37 const AMDGPUTargetLowering *getTLI() const { return TLI; } in getTLI() 41 : BaseT(TM), ST(TM->getSubtargetImpl()), TLI(ST->getTargetLowering()) {} in AMDGPUTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in AMDGPUTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in AMDGPUTTIImpl() 52 TLI = RHS.TLI; 58 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXTargetTransformInfo.h | 34 const NVPTXTargetLowering *TLI; variable 37 const NVPTXTargetLowering *getTLI() const { return TLI; }; in getTLI() 41 : BaseT(TM), ST(TM->getSubtargetImpl()), TLI(ST->getTargetLowering()) {} in NVPTXTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in NVPTXTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in NVPTXTTIImpl() 52 TLI = RHS.TLI; 58 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.h | 25 const SystemZTargetLowering *TLI; variable 28 const SystemZTargetLowering *getTLI() const { return TLI; } in getTLI() 32 : BaseT(TM), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} in SystemZTTIImpl() 36 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in SystemZTTIImpl() 39 TLI(std::move(Arg.TLI)) {} in SystemZTTIImpl() 43 TLI = RHS.TLI; 49 TLI = std::move(RHS.TLI);
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 187 const TargetLoweringBase *TLI = getTLI(); in shouldBuildLookupTables() local 188 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 189 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 193 const TargetLoweringBase *TLI = getTLI(); in haveFastSqrt() local 194 EVT VT = TLI->getValueType(Ty); in haveFastSqrt() 195 return TLI->isTypeLegal(VT) && in haveFastSqrt() 196 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt() 206 const TargetLoweringBase *TLI = getTLI(); in getOperationCost() local 210 if (TLI->isTruncateFree(OpTy, Ty)) in getOperationCost() 215 if (TLI->isZExtFree(OpTy, Ty)) in getOperationCost() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.h | 34 const ARMTargetLowering *TLI; variable 41 const ARMTargetLowering *getTLI() const { return TLI; } in getTLI() 45 : BaseT(TM), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} in ARMTTIImpl() 49 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARMTTIImpl() 52 TLI(std::move(Arg.TLI)) {} in ARMTTIImpl() 56 TLI = RHS.TLI; 62 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.h | 34 const PPCTargetLowering *TLI; variable 37 const PPCTargetLowering *getTLI() const { return TLI; } in getTLI() 41 : BaseT(TM), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} in PPCTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in PPCTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in PPCTTIImpl() 52 TLI = RHS.TLI; 58 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.h | 34 const X86TargetLowering *TLI; variable 39 const X86TargetLowering *getTLI() const { return TLI; } in getTLI() 43 : BaseT(TM), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} in X86TTIImpl() 47 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in X86TTIImpl() 50 TLI(std::move(Arg.TLI)) {} in X86TTIImpl() 54 TLI = RHS.TLI; 60 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 51 const TargetLibraryInfo *TLI; member 65 TLI = AA->getTargetLibraryInfo(); in runOnFunction() 118 const TargetLibraryInfo *TLI, in DeleteDeadInstruction() argument 143 if (isInstructionTriviallyDead(OpI, TLI)) in DeleteDeadInstruction() 156 static bool hasMemoryWrite(Instruction *I, const TargetLibraryInfo *TLI) { in hasMemoryWrite() argument 173 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() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.h | 36 const AArch64TargetLowering *TLI; variable 43 const AArch64TargetLowering *getTLI() const { return TLI; } in getTLI() 54 TLI(ST->getTargetLowering()) {} in AArch64TTIImpl() 59 TLI(Arg.TLI) {} in AArch64TTIImpl() 62 ST(std::move(Arg.ST)), TLI(std::move(Arg.TLI)) {} in AArch64TTIImpl() 67 TLI = RHS.TLI; 74 TLI = std::move(RHS.TLI);
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 34 const TargetLowering *TLI; member in __anon1bdfb80a0111::AtomicExpand 38 : FunctionPass(ID), TM(TM), TLI(nullptr) { in AtomicExpand() 73 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction() 95 if (TLI->getInsertFencesForAtomic()) { in runOnFunction() 111 } else if (CASI && !TLI->hasLoadLinkedStoreConditional() && in runOnFunction() 129 if (LI && TLI->shouldExpandAtomicLoadInIR(LI)) { in runOnFunction() 131 } else if (SI && TLI->shouldExpandAtomicStoreInIR(SI)) { in runOnFunction() 144 } else if (CASI && TLI->hasLoadLinkedStoreConditional()) { in runOnFunction() 155 auto LeadingFence = TLI->emitLeadingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences() 157 auto TrailingFence = TLI->emitTrailingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences() [all …]
|
D | Analysis.cpp | 84 void llvm::ComputeValueVTs(const TargetLowering &TLI, Type *Ty, in ComputeValueVTs() argument 90 const StructLayout *SL = TLI.getDataLayout()->getStructLayout(STy); in ComputeValueVTs() 95 ComputeValueVTs(TLI, *EI, ValueVTs, Offsets, in ComputeValueVTs() 102 uint64_t EltSize = TLI.getDataLayout()->getTypeAllocSize(EltTy); in ComputeValueVTs() 104 ComputeValueVTs(TLI, EltTy, ValueVTs, Offsets, in ComputeValueVTs() 112 ValueVTs.push_back(TLI.getValueType(Ty)); in ComputeValueVTs() 140 const TargetLowering &TLI) { in hasInlineAsmMemConstraint() argument 144 TargetLowering::ConstraintType CType = TLI.getConstraintType(CI.Codes[j]); in hasInlineAsmMemConstraint() 216 const TargetLoweringBase& TLI) { in isNoopBitcast() argument 219 TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2))); in isNoopBitcast() [all …]
|
D | CodeGenPrepare.cpp | 124 const TargetLowering *TLI; member in __anonebd7bfba0111::CodeGenPrepare 153 : FunctionPass(ID), TM(TM), TLI(nullptr), TTI(nullptr) { in CodeGenPrepare() 212 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction() 219 if (!OptSize && TLI && TLI->isSlowDivBypassed()) { in runOnFunction() 221 TLI->getBypassSlowDivWidths(); in runOnFunction() 720 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){ in OptimizeNoopCopyExpression() argument 722 EVT SrcVT = TLI.getValueType(CI->getOperand(0)->getType()); in OptimizeNoopCopyExpression() 723 EVT DstVT = TLI.getValueType(CI->getType()); in OptimizeNoopCopyExpression() 736 if (TLI.getTypeAction(CI->getContext(), SrcVT) == in OptimizeNoopCopyExpression() 738 SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT); in OptimizeNoopCopyExpression() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 37 const TargetLibraryInfo *TLI) { in EmitStrLen() argument 38 if (!TLI->has(LibFunc::strlen)) in EmitStrLen() 62 const DataLayout &DL, const TargetLibraryInfo *TLI) { in EmitStrNLen() argument 63 if (!TLI->has(LibFunc::strnlen)) in EmitStrNLen() 88 const TargetLibraryInfo *TLI) { in EmitStrChr() argument 89 if (!TLI->has(LibFunc::strchr)) in EmitStrChr() 112 const DataLayout &DL, const TargetLibraryInfo *TLI) { in EmitStrNCmp() argument 113 if (!TLI->has(LibFunc::strncmp)) in EmitStrNCmp() 139 const TargetLibraryInfo *TLI, StringRef Name) { in EmitStrCpy() argument 140 if (!TLI->has(LibFunc::strcpy)) in EmitStrCpy() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeDAG.cpp | 57 const TargetLowering &TLI; member in __anon79ba08700111::SelectionDAGLegalize 68 return TLI.getSetCCResultType(*DAG.getContext(), VT); in getSetCCResultType() 77 : TM(DAG.getTarget()), TLI(DAG.getTargetLoweringInfo()), DAG(DAG), in SelectionDAGLegalize() 231 assert(TLI.isShuffleMaskLegal(NewMask, NVT) && "Shuffle not legal?"); in ShuffleWithNarrowerEltType() 263 TLI.isLoadExtLegal(ISD::EXTLOAD, OrigVT, SVT) && in ExpandConstantFP() 264 TLI.ShouldShrinkFPConstant(OrigVT)) { in ExpandConstantFP() 272 SDValue CPIdx = DAG.getConstantPool(LLVMC, TLI.getPointerTy()); in ExpandConstantFP() 291 const TargetLowering &TLI, in ExpandUnalignedStore() argument 306 if (TLI.isTypeLegal(intVT)) { in ExpandUnalignedStore() 320 TLI.getRegisterType(*DAG.getContext(), in ExpandUnalignedStore() [all …]
|
D | LegalizeFloatTypes.cpp | 127 TLI.getTypeToTransformTo(*DAG.getContext(), in SoftenFloatRes_BUILD_PAIR() 135 TLI.getTypeToTransformTo(*DAG.getContext(), in SoftenFloatRes_ConstantFP() 147 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS() 159 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMINNUM() 162 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FMINNUM() 172 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMAXNUM() 175 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FMAXNUM() 185 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FADD() 188 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FADD() 198 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FCEIL() [all …]
|
D | LegalizeTypesGeneric.cpp | 43 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in ExpandRes_BITCAST() 66 if (TLI.hasBigEndianPartOrdering(InVT) != in ExpandRes_BITCAST() 67 TLI.hasBigEndianPartOrdering(OutVT)) in ExpandRes_BITCAST() 74 if (TLI.hasBigEndianPartOrdering(OutVT)) in ExpandRes_BITCAST() 91 if (TLI.hasBigEndianPartOrdering(OutVT)) in ExpandRes_BITCAST() 124 TLI.getVectorIdxTy()))); in ExpandRes_BITCAST() 134 if (TLI.isBigEndian()) in ExpandRes_BITCAST() 146 if (TLI.isBigEndian()) in ExpandRes_BITCAST() 159 TLI.getDataLayout()->getPrefTypeAlignment(NOutVT. in ExpandRes_BITCAST() 185 if (TLI.hasBigEndianPartOrdering(OutVT)) in ExpandRes_BITCAST() [all …]
|