Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp196 TLI.disableAllFunctions(); in initialize()
848 TLI.disableAllFunctions(); in initialize()
893 : CustomNames(TLI.CustomNames), ShouldExtI32Param(TLI.ShouldExtI32Param), in TargetLibraryInfoImpl()
897 SizeOfInt(TLI.SizeOfInt) { in TargetLibraryInfoImpl()
899 VectorDescs = TLI.VectorDescs; in TargetLibraryInfoImpl()
900 ScalarDescs = TLI.ScalarDescs; in TargetLibraryInfoImpl()
909 SizeOfInt(TLI.SizeOfInt) { in TargetLibraryInfoImpl()
910 std::move(std::begin(TLI.AvailableArray), std::end(TLI.AvailableArray), in TargetLibraryInfoImpl()
922 SizeOfInt = TLI.SizeOfInt; in operator =()
933 SizeOfInt = TLI.SizeOfInt; in operator =()
[all …]
H A DMemoryBuiltins.cpp189 if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction()
223 const TargetLibraryInfo *TLI) { in getAllocationData() argument
313 return getAllocationData(V, OpNewLike, TLI).has_value(); in isNewLikeFn()
350 return isAllocLikeFn(CB, TLI); in isRemovableAlloc()
519 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn)) { in getAllocationFamily()
565 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn) && in getFreedOperand()
696 : DL(DL), TLI(TLI), Options(Options) { in ObjectSizeOffsetVisitor()
815 if (std::optional<APInt> Size = getAllocSize(&CB, TLI)) in visitCallBase()
919 if (!TLI || !TLI->getLibFunc(*CB->getCalledFunction(), TLIFn) || in findLoadSizeOffset()
920 !TLI->has(TLIFn)) in findLoadSizeOffset()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h47 return getOrInsertLibFunc(M, TLI, TheLibFunc, in getOrInsertLibFunc()
87 const TargetLibraryInfo *TLI);
98 const TargetLibraryInfo *TLI);
107 const TargetLibraryInfo *TLI);
112 const TargetLibraryInfo *TLI);
117 const TargetLibraryInfo *TLI);
122 const TargetLibraryInfo *TLI);
166 const TargetLibraryInfo *TLI);
229 const TargetLibraryInfo *TLI);
234 const TargetLibraryInfo *TLI);
[all …]
H A DMemoryOpRemark.h39 const TargetLibraryInfo &TLI; member
42 const DataLayout &DL, const TargetLibraryInfo &TLI) in MemoryOpRemark()
43 : ORE(ORE), RemarkPass(RemarkPass), DL(DL), TLI(TLI) {} in MemoryOpRemark()
48 static bool canHandle(const Instruction *I, const TargetLibraryInfo &TLI);
99 const DataLayout &DL, const TargetLibraryInfo &TLI) in AutoInitRemark()
100 : MemoryOpRemark(ORE, RemarkPass, DL, TLI) {} in AutoInitRemark()
H A DLocal.h63 const TargetLibraryInfo *TLI = nullptr,
74 const TargetLibraryInfo *TLI = nullptr);
80 const TargetLibraryInfo *TLI = nullptr);
88 Instruction *I, const TargetLibraryInfo *TLI = nullptr);
94 Value *V, const TargetLibraryInfo *TLI = nullptr,
109 const TargetLibraryInfo *TLI = nullptr, MemorySSAUpdater *MSSAU = nullptr,
119 const TargetLibraryInfo *TLI = nullptr, MemorySSAUpdater *MSSAU = nullptr,
129 const TargetLibraryInfo *TLI = nullptr,
138 const TargetLibraryInfo *TLI = nullptr);
444 bool callsGCLeafFunction(const CallBase *Call, const TargetLibraryInfo &TLI);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp264 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferNonMandatoryLibFuncAttrs()
1292 assert(TLI.has(TheLibFunc) && in getOrInsertLibFunc()
1311 setArgExtAttr(*F, 0, TLI); in getOrInsertLibFunc()
1319 setArgExtAttr(*F, 1, TLI); in getOrInsertLibFunc()
1322 setArgExtAttr(*F, 2, TLI); in getOrInsertLibFunc()
1329 setRetExtAttr(*F, TLI); in getOrInsertLibFunc()
1370 if (!TLI->has(TheLibFunc)) in isLibFuncEmittable()
1416 return TLI->getName(FloatFn); in getFloatFn()
1473 Type *IntTy = getIntTy(B, TLI); in emitStrChr()
1481 Type *IntTy = getIntTy(B, TLI); in emitStrNCmp()
[all …]
H A DSimplifyLibCalls.cpp589 B, DL, TLI)); in optimizeStrCmp()
596 B, DL, TLI)); in optimizeStrCmp()
667 B, DL, TLI)); in optimizeStrNCmp()
675 B, DL, TLI)); in optimizeStrNCmp()
2174 TLI); in replacePowWithSqrt()
2281 B, TLI); in optimizePow()
2494 TLI->getLibFunc(*Arg, ArgLb); in optimizeLog()
3486 if (TLI->getLibFunc(*Callee, Func) && isLibFuncEmittable(M, TLI, Func)) { in optimizeStringMemoryLibCall()
3746 if (TLI->getLibFunc(*Callee, Func) && isLibFuncEmittable(M, TLI, Func)) { in optimizeCall()
3815 : FortifiedSimplifier(TLI), DL(DL), TLI(TLI), AC(AC), ORE(ORE), BFI(BFI), in LibCallSimplifier()
[all …]
H A DInjectTLIMappings.cpp73 static void addMappingsFromTLI(const TargetLibraryInfo &TLI, CallInst &CI) { in addMappingsFromTLI() argument
86 if (!TLI.isFunctionVectorizable(ScalarName)) in addMappingsFromTLI()
95 const VecDesc *VD = TLI.getVectorMappingInfo(ScalarName, VF, Predicate); in addMappingsFromTLI()
110 TLI.getWidestVF(ScalarName, WidestFixedVF, WidestScalableVF); in addMappingsFromTLI()
125 static bool runImpl(const TargetLibraryInfo &TLI, Function &F) { in runImpl() argument
128 addMappingsFromTLI(TLI, *CI); in runImpl()
138 const TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
139 runImpl(TLI, F); in run()
/freebsd/contrib/tcp_wrappers/
H A DMakefile96 NETGROUP=-DNETGROUP TLI= all
108 NETGROUP=-DNETGROUP TLI= all
114 NETGROUP=-DNETGROUP TLI= all
168 NETGROUP=-DNETGROUP TLI= all
174 NETGROUP=-DNETGROUP TLI= all
187 TLI=-DTLI_SEQUENT all
193 NETGROUP=-DNETGROUP TLI= all
335 AUX_OBJ= NETGROUP= TLI= all
348 NETGROUP= TLI= all
361 NETGROUP= TLI= all
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp55 const TargetLowering &TLI; member in __anon740b586f0111::VectorLegalizer
186 DAG(dag), TLI(dag.getTargetLoweringInfo()) {} in VectorLegalizer()
297 Action = TLI.getTruncStoreAction(ValVT, StVT); in LegalizeOp()
318 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
486 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
868 return TLI.scalarizeVectorLoad(LD, DAG); in ExpandLoad()
873 SDValue TF = TLI.scalarizeVectorStore(ST, DAG); in ExpandStore()
928 EVT CondVT = TLI.getSetCCResultType( in Expand()
1333 return TLI.expandBSWAP(Node, DAG); in ExpandBSWAP()
1354 return TLI.expandBSWAP(Node, DAG); in ExpandBSWAP()
[all …]
H A DFunctionLoweringInfo.cpp90 TLI = MF->getSubtarget().getTargetLowering(); in set()
186 Register SP = TLI->getStackPointerRegisterToSaveRestore(); in set()
194 TLI->ComputeConstraintToUse(Op, SDValue(), DAG); in set()
377 ComputeValueVTs(*TLI, MF->getDataLayout(), Ty, ValueVTs); in CreateRegs()
381 MVT RegisterVT = TLI->getRegisterType(Ty->getContext(), ValueVT); in CreateRegs()
427 ComputeValueVTs(*TLI, MF->getDataLayout(), Ty, ValueVTs); in ComputePHILiveOutRegInfo()
432 if (TLI->getNumRegisters(PN->getContext(), IntVT) != 1) in ComputePHILiveOutRegInfo()
434 IntVT = TLI->getTypeToTransformTo(PN->getContext(), IntVT); in ComputePHILiveOutRegInfo()
457 if (TLI->signExtendConstant(CI)) in ComputePHILiveOutRegInfo()
493 if (TLI->signExtendConstant(CI)) in ComputePHILiveOutRegInfo()
[all …]
H A DLegalizeDAG.cpp88 const TargetLowering &TLI; member in __anon49a74a560111::SelectionDAGLegalize
456 TLI.isTypeLegal(MVT::i32)) { in OptimizeFloatStore()
655 if (TLI.isTypeLegal(StVT)) { in LegalizeStoreOps()
1564 if (TLI.isTypeLegal(IVT)) { in getSignAsIntValue()
3184 if (TLI.isStrictFPEnabled()) in ExpandNode()
3220 if (TLI.isStrictFPEnabled()) in ExpandNode()
3413 if (!TLI.isTypeLegal(EltVT)) { in ExpandNode()
3591 if (TLI.getLibcallName(LC)) in ExpandNode()
3606 if (TLI.getLibcallName(LC)) in ExpandNode()
4363 if (TLI.getLibcallName(LC)) { in ConvertNodeToLibcall()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCTargetTransformInfo.h34 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h56 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI);
62 bool isNewLikeFn(const Value *V, const TargetLibraryInfo *TLI);
66 bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
70 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
87 Value *getFreedOperand(const CallBase *CB, const TargetLibraryInfo *TLI);
102 bool isRemovableAlloc(const CallBase *V, const TargetLibraryInfo *TLI);
116 const CallBase *CB, const TargetLibraryInfo *TLI,
125 const TargetLibraryInfo *TLI,
187 const TargetLibraryInfo *TLI, AAResults *AA, bool MustSucceed,
228 const TargetLibraryInfo *TLI; variable
[all …]
H A DTargetLibraryInfo.h139 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
140 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI);
316 TargetLibraryInfo(const TargetLibraryInfo &TLI) = default;
317 TargetLibraryInfo(TargetLibraryInfo &&TLI) in TargetLibraryInfo() argument
318 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo()
320 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) {
321 Impl = TLI.Impl;
322 OverrideAsUnavailable = TLI.OverrideAsUnavailable;
625 std::optional<TargetLibraryInfo> TLI; variable
637 TLI = TLA.run(F, DummyFAM); in getTLI()
[all …]
H A DBasicAliasAnalysis.h44 const TargetLibraryInfo &TLI; variable
56 const TargetLibraryInfo &TLI, AssumptionCache &AC,
58 : DL(DL), F(F), TLI(TLI), AC(AC), DT_(DT) {} in DL()
61 : AAResultBase(Arg), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), AC(Arg.AC), in BasicAAResult()
64 : AAResultBase(std::move(Arg)), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), in BasicAAResult()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DInlineAsmLowering.h29 const TargetLowering *TLI; variable
53 const TargetLowering *getTLI() const { return TLI; } in getTLI()
57 return static_cast<const XXXTargetLowering *>(TLI); in getTLI()
61 InlineAsmLowering(const TargetLowering *TLI) : TLI(TLI) {} in InlineAsmLowering() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDCE.cpp57 const TargetLibraryInfo *TLI) { in DCEInstruction() argument
58 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction()
78 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction()
89 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in eliminateDeadCode() argument
99 MadeChange |= DCEInstruction(&I, WorkList, TLI); in eliminateDeadCode()
104 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode()
129 TargetLibraryInfo *TLI = in runOnFunction() local
132 return eliminateDeadCode(F, TLI); in runOnFunction()
H A DAnnotationRemarks.cpp29 const TargetLibraryInfo &TLI) { in tryEmitAutoInitRemark() argument
37 AutoInitRemark Remark(ORE, REMARK_PASS, DL, TLI); in tryEmitAutoInitRemark()
42 static void runImpl(Function &F, const TargetLibraryInfo &TLI) { in runImpl() argument
83 tryEmitAutoInitRemark(KV.second, ORE, TLI); in runImpl()
89 auto &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
90 runImpl(F, TLI); in run()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp97 ComputeValueVTs(TLI, DL, *EI, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
107 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
115 ValueVTs.push_back(TLI.getValueType(DL, Ty)); in ComputeValueVTs()
117 MemVTs->push_back(TLI.getMemValueType(DL, Ty)); in ComputeValueVTs()
145 ComputeValueVTs(TLI, DL, Ty, ValueVTs, &Offsets, Offset); in ComputeValueVTs()
149 ComputeValueVTs(TLI, DL, Ty, ValueVTs, nullptr, Offset); in ComputeValueVTs()
315 const TargetLoweringBase& TLI) { in isNoopBitcast() argument
318 TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2))); in isNoopBitcast()
335 const TargetLoweringBase &TLI, in getNoopInput() argument
347 if (isNoopBitcast(Op->getType(), I->getType(), TLI)) in getNoopInput()
[all …]
H A DSwiftErrorValueTracking.cpp36 const TargetRegisterClass *RC = TLI->getRegClassFor(TLI->getPointerTy(DL)); in getOrCreateVReg()
58 const TargetRegisterClass *RC = TLI->getRegClassFor(TLI->getPointerTy(DL)); in getOrCreateVRegDefAt()
82 TLI = MF->getSubtarget().getTargetLowering(); in setFunction()
85 if (!TLI->supportSwiftError()) in setFunction()
116 if (!TLI->supportSwiftError()) in createEntriesInEntryBlock()
126 auto const *RC = TLI->getRegClassFor(TLI->getPointerTy(DL)); in createEntriesInEntryBlock()
148 if (!TLI->supportSwiftError()) in propagateVRegs()
240 auto const *RC = TLI->getRegClassFor(TLI->getPointerTy(DL)); in propagateVRegs()
280 if (!TLI->supportSwiftError() || SwiftErrorVals.empty()) in preassignVRegs()
H A DReplaceWithVeclib.cpp102 static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI, in replaceWithCallToVeclib() argument
145 if (!TLI.getLibFunc(I.getOpcode(), ScalarTy, Func)) in replaceWithCallToVeclib()
147 ScalarName = TLI.getName(Func); in replaceWithCallToVeclib()
155 TLI.getVectorMappingInfo(ScalarName, EC, /*Masked*/ false); in replaceWithCallToVeclib()
156 if (!VD && !(VD = TLI.getVectorMappingInfo(ScalarName, EC, /*Masked*/ true))) in replaceWithCallToVeclib()
223 static bool runImpl(const TargetLibraryInfo &TLI, Function &F) { in runImpl() argument
229 if (replaceWithCallToVeclib(TLI, I)) { in runImpl()
246 const TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
247 auto Changed = runImpl(TLI, F); in run()
270 const TargetLibraryInfo &TLI = in runOnFunction() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DValueProfileCollector.cpp38 PluginChain(Function &F, TargetLibraryInfo &TLI) {} in PluginChain() argument
48 PluginChain(Function &F, TargetLibraryInfo &TLI) in PluginChain() argument
49 : PluginChain<Ts...>(F, TLI), Plugin(F, TLI) {} in PluginChain()
67 TargetLibraryInfo &TLI) in ValueProfileCollector() argument
68 : PImpl(new ValueProfileCollectorImpl(F, TLI)) {} in ValueProfileCollector()
H A DPGOMemOPSizeOpt.cpp144 bool isMemcmp(TargetLibraryInfo &TLI) { in isMemcmp()
152 bool isBcmp(TargetLibraryInfo &TLI) { in isBcmp()
160 const char *getName(TargetLibraryInfo &TLI) { in getName()
164 if (TLI.getLibFunc(*asCI(), Func)) { in getName()
179 TargetLibraryInfo &TLI) in MemOPSizeOpt() argument
180 : Func(Func), BFI(BFI), ORE(ORE), DT(DT), TLI(TLI), Changed(false) { in MemOPSizeOpt()
210 if (TLI.getLibFunc(CI, Func) && in visitCallInst()
222 TargetLibraryInfo &TLI; member in __anon8ae3e34b0111::MemOPSizeOpt
252 if (!MemOPOptMemcmpBcmp && (MO.isMemcmp(TLI) || MO.isBcmp(TLI))) in perform()
467 MemOPSizeOpt MemOPSizeOpt(F, BFI, ORE, DT, TLI); in PGOMemOPSizeOptImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAnalysis.h65 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
69 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
73 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
79 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
84 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
89 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
144 const TargetLoweringBase &TLI,
152 const TargetLoweringBase &TLI);

12345678910>>...14