/external/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 54 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 66 TLI.setUnavailable(LibFunc::ldexp); in initialize() 67 TLI.setUnavailable(LibFunc::ldexpf); in initialize() 68 TLI.setUnavailable(LibFunc::ldexpl); in initialize() 77 TLI.setUnavailable(LibFunc::memcpy); in initialize() 78 TLI.setUnavailable(LibFunc::memset); in initialize() 79 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 87 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 90 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 92 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 102 const TargetLibraryInfo *TLI, in getAllocationData() argument 115 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationData() 154 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 156 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast); in isAllocationFn() 161 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 165 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() 171 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isMallocLikeFn() argument 173 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast); in isMallocLikeFn() 178 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isCallocLikeFn() argument 180 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast); in isCallocLikeFn() [all …]
|
D | ConstantFolding.cpp | 679 const TargetLibraryInfo *TLI) { in CastGEPIndices() argument 706 if (Constant *Folded = ConstantFoldConstantExpression(CE, DL, TLI)) in CastGEPIndices() 732 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument 758 Res = ConstantFoldConstantExpression(ResCE, DL, TLI); in SymbolicallyEvaluateGEP() 896 const TargetLibraryInfo *TLI) { in ConstantFoldInstruction() argument 914 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction() 937 Op = ConstantFoldConstantExpression(NewCE, DL, TLI); in ConstantFoldInstruction() 944 DL, TLI); in ConstantFoldInstruction() 962 return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, DL, TLI); in ConstantFoldInstruction() 967 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 …]
|
/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/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 53 const TargetLibraryInfo *TLI; member 67 TLI = &getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(); in runOnFunction() 124 const TargetLibraryInfo &TLI, in DeleteDeadInstruction() argument 149 if (isInstructionTriviallyDead(OpI, &TLI)) in DeleteDeadInstruction() 162 static bool hasMemoryWrite(Instruction *I, const TargetLibraryInfo &TLI) { in hasMemoryWrite() argument 179 if (TLI.has(LibFunc::strcpy) && in hasMemoryWrite() 180 F->getName() == TLI.getName(LibFunc::strcpy)) { in hasMemoryWrite() 183 if (TLI.has(LibFunc::strncpy) && in hasMemoryWrite() 184 F->getName() == TLI.getName(LibFunc::strncpy)) { in hasMemoryWrite() 187 if (TLI.has(LibFunc::strcat) && in hasMemoryWrite() [all …]
|
D | DCE.cpp | 47 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnBasicBlock() local 51 if (isInstructionTriviallyDead(Inst, TLI)) { in runOnBasicBlock() 98 const TargetLibraryInfo *TLI) { in DCEInstruction() argument 99 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction() 113 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction() 129 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnFunction() local 143 MadeChange |= DCEInstruction(I, WorkList, TLI); in runOnFunction() 148 MadeChange |= DCEInstruction(I, WorkList, TLI); in runOnFunction()
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 182 const TargetLoweringBase *TLI = getTLI(); in shouldBuildLookupTables() local 183 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 184 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 188 const TargetLoweringBase *TLI = getTLI(); in haveFastSqrt() local 189 EVT VT = TLI->getValueType(DL, Ty); in haveFastSqrt() 190 return TLI->isTypeLegal(VT) && in haveFastSqrt() 191 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt() 201 const TargetLoweringBase *TLI = getTLI(); in getOperationCost() local 205 if (TLI->isTruncateFree(OpTy, Ty)) in getOperationCost() 210 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/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.h | 35 const WebAssemblyTargetLowering *TLI; variable 38 const WebAssemblyTargetLowering *getTLI() const { return TLI; } in getTLI() 43 TLI(ST->getTargetLowering()) {} in WebAssemblyTTIImpl() 47 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in WebAssemblyTTIImpl() 50 TLI(std::move(Arg.TLI)) {} in WebAssemblyTTIImpl()
|
/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/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 34 const AMDGPUTargetLowering *TLI; variable 37 const AMDGPUTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in AMDGPUTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in AMDGPUTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in AMDGPUTTIImpl()
|
/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()
|
/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/Transforms/Utils/ |
D | BuildLibCalls.cpp | 37 const TargetLibraryInfo *TLI) { in EmitStrLen() argument 38 if (!TLI->has(LibFunc::strlen)) in EmitStrLen() 62 const TargetLibraryInfo *TLI) { in EmitStrChr() argument 63 if (!TLI->has(LibFunc::strchr)) in EmitStrChr() 86 const DataLayout &DL, const TargetLibraryInfo *TLI) { in EmitStrNCmp() argument 87 if (!TLI->has(LibFunc::strncmp)) in EmitStrNCmp() 113 const TargetLibraryInfo *TLI, StringRef Name) { in EmitStrCpy() argument 114 if (!TLI->has(LibFunc::strcpy)) in EmitStrCpy() 136 const TargetLibraryInfo *TLI, StringRef Name) { in EmitStrNCpy() argument 137 if (!TLI->has(LibFunc::strncpy)) in EmitStrNCpy() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeFloatTypes.cpp | 141 TLI.getTypeToTransformTo(*DAG.getContext(), in SoftenFloatRes_BUILD_PAIR() 153 TLI.getTypeToTransformTo(*DAG.getContext(), in SoftenFloatRes_ConstantFP() 168 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS() 180 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMINNUM() 183 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FMINNUM() 193 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMAXNUM() 196 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FMAXNUM() 206 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FADD() 209 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0), in SoftenFloatRes_FADD() 219 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FCEIL() [all …]
|
D | LegalizeDAG.cpp | 60 const TargetLowering &TLI; member in __anon79ba08700111::SelectionDAGLegalize 71 return TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT); in getSetCCResultType() 80 : TM(DAG.getTarget()), TLI(DAG.getTargetLoweringInfo()), DAG(DAG), in SelectionDAGLegalize() 240 assert(TLI.isShuffleMaskLegal(NewMask, NVT) && "Shuffle not legal?"); in ShuffleWithNarrowerEltType() 272 TLI.isLoadExtLegal(ISD::EXTLOAD, OrigVT, SVT) && in ExpandConstantFP() 273 TLI.ShouldShrinkFPConstant(OrigVT)) { in ExpandConstantFP() 282 DAG.getConstantPool(LLVMC, TLI.getPointerTy(DAG.getDataLayout())); in ExpandConstantFP() 303 TLI.getPointerTy(DAG.getDataLayout())); in ExpandConstant() 314 const TargetLowering &TLI, in ExpandUnalignedStore() argument 329 if (TLI.isTypeLegal(intVT)) { in ExpandUnalignedStore() [all …]
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 39 const TargetLowering *TLI; member in __anon1bdfb80a0111::AtomicExpand 43 : FunctionPass(ID), TM(TM), TLI(nullptr) { in AtomicExpand() 82 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction() 104 if (TLI->getInsertFencesForAtomic()) { in runOnFunction() 120 } else if (CASI && !TLI->shouldExpandAtomicCmpXchgInIR(CASI) && in runOnFunction() 158 if (TLI->shouldExpandAtomicStoreInIR(SI)) in runOnFunction() 171 } else if (CASI && TLI->shouldExpandAtomicCmpXchgInIR(CASI)) { in runOnFunction() 182 auto LeadingFence = TLI->emitLeadingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences() 184 auto TrailingFence = TLI->emitTrailingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences() 202 EVT VT = TLI->getValueType(DL, T); in getCorrespondingIntegerType() [all …]
|
D | CodeGenPrepare.cpp | 122 const TargetLowering *TLI; member in __anonebd7bfba0111::CodeGenPrepare 153 : FunctionPass(ID), TM(TM), TLI(nullptr), TTI(nullptr), DL(nullptr) { in CodeGenPrepare() 218 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction() 225 if (!OptSize && TLI && TLI->isSlowDivBypassed()) { in runOnFunction() 227 TLI->getBypassSlowDivWidths(); in runOnFunction() 772 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI, in OptimizeNoopCopyExpression() argument 775 EVT SrcVT = TLI.getValueType(DL, CI->getOperand(0)->getType()); in OptimizeNoopCopyExpression() 776 EVT DstVT = TLI.getValueType(DL, CI->getType()); in OptimizeNoopCopyExpression() 789 if (TLI.getTypeAction(CI->getContext(), SrcVT) == in OptimizeNoopCopyExpression() 791 SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT); in OptimizeNoopCopyExpression() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.h | 34 const ARMTargetLowering *TLI; variable 41 const ARMTargetLowering *getTLI() const { return TLI; } in getTLI() 46 TLI(ST->getTargetLowering()) {} in ARMTTIImpl() 50 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARMTTIImpl() 53 TLI(std::move(Arg.TLI)) {} in ARMTTIImpl()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.h | 34 const PPCTargetLowering *TLI; variable 37 const PPCTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in PPCTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in PPCTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in PPCTTIImpl()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.h | 34 const X86TargetLowering *TLI; variable 39 const X86TargetLowering *getTLI() const { return TLI; } in getTLI() 44 TLI(ST->getTargetLowering()) {} in X86TTIImpl() 48 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in X86TTIImpl() 51 TLI(std::move(Arg.TLI)) {} in X86TTIImpl()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.h | 35 const AArch64TargetLowering *TLI; variable 42 const AArch64TargetLowering *getTLI() const { return TLI; } in getTLI() 53 TLI(ST->getTargetLowering()) {} in AArch64TTIImpl() 57 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in AArch64TTIImpl() 60 TLI(std::move(Arg.TLI)) {} in AArch64TTIImpl()
|