Home
last modified time | relevance | path

Searched refs:TLI (Results 1 – 25 of 190) sorted by relevance

12345678

/external/llvm/lib/Analysis/
DTargetLibraryInfo.cpp54 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 …]
DMemoryBuiltins.cpp102 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 …]
DConstantFolding.cpp679 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/
DMemoryBuiltins.h39 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 …]
DInstructionSimplify.h53 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 …]
DTargetLibraryInfo.h101 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/
DBuildLibCalls.h32 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/
DDeadStoreElimination.cpp53 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 …]
DDCE.cpp47 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/
DBasicTTIImpl.h182 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/
DXCoreTargetTransformInfo.h34 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/
DWebAssemblyTargetTransformInfo.h35 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/
DHexagonTargetTransformInfo.h33 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/SystemZ/
DSystemZTargetTransformInfo.h25 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/AMDGPU/
DAMDGPUTargetTransformInfo.h34 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/
DNVPTXTargetTransformInfo.h34 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/Transforms/Utils/
DBuildLibCalls.cpp37 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/Target/ARM/
DARMTargetTransformInfo.h34 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/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp141 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 …]
DLegalizeDAG.cpp60 const TargetLowering &TLI; member in __anon98f062b10111::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/
DAtomicExpandPass.cpp39 const TargetLowering *TLI; member in __anonbce4614b0111::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 …]
DCodeGenPrepare.cpp122 const TargetLowering *TLI; member in __anonc96f24bb0111::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/PowerPC/
DPPCTargetTransformInfo.h34 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/AArch64/
DAArch64TargetTransformInfo.h35 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()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.h34 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()

12345678