Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp164 static void initializeBase(TargetLibraryInfoImpl &TLI, const Triple &T) { in initializeBase() argument
170 TLI.setShouldExtI32Param(ShouldExtI32Param); in initializeBase()
171 TLI.setShouldExtI32Return(ShouldExtI32Return); in initializeBase()
172 TLI.setShouldSignExtI32Param(ShouldSignExtI32Param); in initializeBase()
173 TLI.setShouldSignExtI32Return(ShouldSignExtI32Return); in initializeBase()
178 TLI.setIntSize(T.isArch16Bit() ? 16 : 32); in initializeBase()
184 static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T, in initializeLibCalls() argument
188 TLI.setUnavailable(LibFunc_getc_unlocked); in initializeLibCalls()
189 TLI.setUnavailable(LibFunc_getchar_unlocked); in initializeLibCalls()
190 TLI.setUnavailable(LibFunc_putc_unlocked); in initializeLibCalls()
[all …]
H A DMemoryBuiltins.cpp181 const TargetLibraryInfo *TLI) { in getAllocationDataForFunction() argument
189 if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction()
223 const TargetLibraryInfo *TLI) { in getAllocationData() argument
227 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData()
243 getAllocationSize(const Value *V, const TargetLibraryInfo *TLI) { in getAllocationSize() argument
254 getAllocationDataForFunction(Callee, AnyAlloc, TLI)) in getAllocationSize()
299 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI) { in isAllocationFn() argument
300 return getAllocationData(V, AnyAlloc, TLI).has_value() || in isAllocationFn()
312 bool llvm::isNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) { in isNewLikeFn() argument
313 return getAllocationData(V, OpNewLike, TLI).has_value(); in isNewLikeFn()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h32 const TargetLibraryInfo &TLI);
33 bool inferNonMandatoryLibFuncAttrs(Function &F, const TargetLibraryInfo &TLI);
37 FunctionCallee getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI,
40 FunctionCallee getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI,
43 FunctionCallee getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI, in getOrInsertLibFunc() argument
47 return getOrInsertLibFunc(M, TLI, TheLibFunc, in getOrInsertLibFunc()
53 FunctionCallee getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI, in getOrInsertLibFunc() argument
55 return getOrInsertLibFunc(M, TLI, TheLibFunc, AttributeList{}, RetTy, in getOrInsertLibFunc()
61 getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI,
74 bool isLibFuncEmittable(const Module *M, 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp254 const TargetLibraryInfo &TLI) { in inferNonMandatoryLibFuncAttrs() argument
258 return inferNonMandatoryLibFuncAttrs(*F, TLI); in inferNonMandatoryLibFuncAttrs()
262 const TargetLibraryInfo &TLI) { in inferNonMandatoryLibFuncAttrs() argument
264 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferNonMandatoryLibFuncAttrs()
1252 const TargetLibraryInfo &TLI, bool Signed = true) { in setArgExtAttr() argument
1253 Attribute::AttrKind ExtAttr = TLI.getExtAttrForI32Param(Signed); in setArgExtAttr()
1259 const TargetLibraryInfo &TLI, bool Signed = true) { in setRetExtAttr() argument
1260 Attribute::AttrKind ExtAttr = TLI.getExtAttrForI32Return(Signed); in setRetExtAttr()
1300 FunctionCallee llvm::getOrInsertLibFunc(Module *M, const TargetLibraryInfo &TLI, in getOrInsertLibFunc() argument
1303 assert(TLI.has(TheLibFunc) && in getOrInsertLibFunc()
[all …]
H A DSimplifyLibCalls.cpp382 Value *DstLen = emitStrLen(Dst, B, DL, TLI); in emitStrLenMemCpy()
487 unsigned IntBits = TLI->getIntSize(); in optimizeStrChr()
491 unsigned SizeTBits = TLI->getSizeTSize(*CI->getModule()); in optimizeStrChr()
496 DL, TLI)); in optimizeStrChr()
512 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr()
539 return copyFlags(*CI, emitStrChr(SrcStr, '\0', B, TLI)); in optimizeStrRChr()
543 unsigned SizeTBits = TLI->getSizeTSize(*CI->getModule()); in optimizeStrRChr()
550 return copyFlags(*CI, emitMemRChr(SrcStr, CharVal, Size, B, DL, TLI)); in optimizeStrRChr()
588 B, DL, TLI)); in optimizeStrCmp()
598 B, DL, TLI)); in optimizeStrCmp()
[all …]
H A DInjectTLIMappings.cpp1 //===- InjectTLIMAppings.cpp - TLI to VFABI attribute injection ----------===//
39 /// mapping, TLI provides a VABI prefix, which contains all information required
73 static void addMappingsFromTLI(const TargetLibraryInfo &TLI, CallInst &CI) { in addMappingsFromTLI()
74 // This is needed to make sure we don't query the TLI for calls to in addMappingsFromTLI()
84 // Nothing to be done if the TLI thinks the function is not in addMappingsFromTLI()
86 if (!TLI.isFunctionVectorizable(ScalarName)) in addMappingsFromTLI()
95 const VecDesc *VD = TLI.getVectorMappingInfo(ScalarName, VF, Predicate); in addMappingsFromTLI()
108 // All VFs in the TLI are powers of 2. in addMappingsFromTLI()
110 TLI.getWidestVF(ScalarName, WidestFixedVF, WidestScalableVF); in addMappingsFromTLI()
125 static bool runImpl(const TargetLibraryInfo &TLI, Functio in addMappingsFromTLI()
72 addMappingsFromTLI(const TargetLibraryInfo & TLI,CallInst & CI) addMappingsFromTLI() argument
126 runImpl(const TargetLibraryInfo & TLI,Function & F) runImpl() argument
139 const TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F); run() local
[all...]
/freebsd/contrib/tcp_wrappers/
H A DMakefile96 NETGROUP=-DNETGROUP TLI= all
102 NETGROUP=-DNETGROUP VSYSLOG= TLI= all
108 NETGROUP=-DNETGROUP TLI= all
114 NETGROUP=-DNETGROUP TLI= all
120 NETGROUP=-DNETGROUP VSYSLOG= TLI= all
126 NETGROUP=-DNETGROUP TLI= all miscd
132 NETGROUP=-DNETGROUP TLI= SYSTYPE="-systype bsd43" all
137 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
142 RANLIB=ranlib ARFLAGS=$(ARFLAGS) AUX_OBJ= NETGROUP=-DNETGROUP TLI= \
148 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp57 const TargetLowering &TLI; member in __anon94de8da70111::VectorLegalizer
189 DAG(dag), TLI(dag.getTargetLoweringInfo()) {} in VectorLegalizer()
292 Action = TLI.getLoadExtAction(ExtType, LD->getValueType(0), LoadedVT); in LegalizeOp()
300 Action = TLI.getTruncStoreAction(ValVT, StVT); in LegalizeOp()
304 Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0)); in LegalizeOp()
321 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
323 Action = TLI.getOperationAction(Node->getOpcode(), OpVT); in LegalizeOp()
325 Action = TLI.getOperationAction(Node->getOpcode(), ValVT); in LegalizeOp()
332 if (Action == TargetLowering::Expand && !TLI.isStrictFPEnabled() && in LegalizeOp()
333 TLI.getStrictFPOperationAction(Node->getOpcode(), ValVT) == in LegalizeOp()
[all …]
H A DMatchContext.h24 const TargetLowering &TLI; variable
28 EmptyMatchContext(SelectionDAG &DAG, const TargetLowering &TLI, SDNode *Root) in EmptyMatchContext() argument
29 : DAG(DAG), TLI(TLI), Root(Root) {} in EmptyMatchContext()
42 return TLI.isOperationLegal(Op, VT); in isOperationLegal()
47 return TLI.isOperationLegalOrCustom(Op, VT, LegalOnly);
53 const TargetLowering &TLI; variable
59 VPMatchContext(SelectionDAG &DAG, const TargetLowering &TLI, SDNode *_Root) in VPMatchContext() argument
60 : DAG(DAG), TLI(TLI), RootMaskOp(), RootVectorLenOp() { in VPMatchContext()
165 return TLI.isOperationLegal(VPOp, VT); in isOperationLegal()
171 return TLI.isOperationLegalOrCustom(VPOp, VT, LegalOnly);
H A DFunctionLoweringInfo.cpp90 TLI = MF->getSubtarget().getTargetLowering(); in set()
99 GetReturnInfo(CC, Fn->getReturnType(), Fn->getAttributes(), Outs, *TLI, in set()
102 TLI->CanLowerReturn(CC, *MF, Fn->isVarArg(), Outs, Fn->getContext()); in set()
153 if (Iter != CatchObjects.end() && TLI->needsFixedCatchObjects()) { in set()
186 Register SP = TLI->getStackPointerRegisterToSaveRestore(); in set()
189 TLI->ParseConstraints(Fn->getDataLayout(), TRI, in set()
194 TLI->ComputeConstraintToUse(Op, SDValue(), DAG); in set()
196 TLI->getRegForInlineAsmConstraint(TRI, Op.ConstraintCode, in set()
292 ComputeValueVTs(*TLI, MF->getDataLayout(), PN.getType(), ValueVTs); in set()
294 unsigned NumRegisters = TLI->getNumRegisters(Fn->getContext(), VT); in set()
[all …]
H A DLegalizeDAG.cpp89 const TargetLowering &TLI; member in __anon2068f58e0111::SelectionDAGLegalize
100 return TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT); in getSetCCResultType()
109 : TM(DAG.getTarget()), TLI(DAG.getTargetLoweringInfo()), DAG(DAG), in SelectionDAGLegalize()
304 assert(TLI.isShuffleMaskLegal(NewMask, NVT) && "Shuffle not legal?"); in ShuffleWithNarrowerEltType()
341 TLI.isLoadExtLegal(ISD::EXTLOAD, OrigVT, SVT) && in ExpandConstantFP()
342 TLI.ShouldShrinkFPConstant(OrigVT)) { in ExpandConstantFP()
353 DAG.getConstantPool(LLVMC, TLI.getPointerTy(DAG.getDataLayout())); in ExpandConstantFP()
373 TLI.getPointerTy(DAG.getDataLayout())); in ExpandConstant()
435 TLI.isTypeLegal(MVT::i32)) { in OptimizeFloatStore()
444 !TLI.isFPImmLegal(CFP->getValueAPF(), MVT::f64)) { in OptimizeFloatStore()
[all …]
/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);
108 Value *getAllocAlignment(const CallBase *V, const TargetLibraryInfo *TLI);
116 const CallBase *CB, const TargetLibraryInfo *TLI,
125 const TargetLibraryInfo *TLI,
132 const TargetLibraryInfo *TLI);
[all …]
H A DBasicAliasAnalysis.h44 const TargetLibraryInfo &TLI;
56 const TargetLibraryInfo &TLI, AssumptionCache &AC, in BasicAAResult()
58 : DL(DL), F(F), TLI(TLI), AC(AC), DT_(DT) {} in BasicAAResult()
61 : AAResultBase(Arg), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), AC(Arg.AC),
64 : AAResultBase(std::move(Arg)), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI),
45 const TargetLibraryInfo &TLI; global() variable
/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/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) {
58 if (isInstructionTriviallyDead(I, TLI)) { in getAnalysisUsage()
78 if (isInstructionTriviallyDead(OpI, TLI)) in run()
89 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in DCEInstruction()
99 MadeChange |= DCEInstruction(&I, WorkList, TLI); in DCEInstruction()
104 MadeChange |= DCEInstruction(I, WorkList, TLI); in DCEInstruction()
129 TargetLibraryInfo *TLI = in eliminateDeadCode()
132 return eliminateDeadCode(F, TLI); in eliminateDeadCode()
90 DCEInstruction(Instruction * I,SmallSetVector<Instruction *,16> & WorkList,const TargetLibraryInfo * TLI) DCEInstruction() argument
122 eliminateDeadCode(Function & F,TargetLibraryInfo * TLI) eliminateDeadCode() argument
162 TargetLibraryInfo *TLI = runOnFunction() local
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()
H A DPlaceSafepoints.cpp135 TLI = &getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(F); in runOnFunction()
156 TargetLibraryInfo *TLI = nullptr; member in __anondc7278340111::PlaceBackedgeSafepointsLegacyPass
179 const TargetLibraryInfo &TLI);
196 const TargetLibraryInfo &TLI);
220 containsUnconditionalCallSafepoint(L, Header, Pred, *DT, *TLI)) { in runOnLoop()
250 bool PlaceSafepointsPass::runImpl(Function &F, const TargetLibraryInfo &TLI) { in runImpl() argument
293 FPM.add(new TargetLibraryInfoWrapperPass(TLI)); in runImpl()
373 InsertSafepointPoll(PollLocation->getIterator(), RuntimeCalls, TLI); in runImpl()
382 auto &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
384 if (!runImpl(F, TLI)) in run()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAnalysis.h65 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
70 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty,
77 inline void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL,
81 ComputeValueVTs(TLI, DL, Ty, ValueVTs, nullptr, Offsets, StartingOffset);
83 inline void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, in ComputeValueVTs() argument
87 ComputeValueVTs(TLI, DL, Ty, ValueVTs, nullptr, FixedOffsets, StartingOffset); in ComputeValueVTs()
140 const TargetLoweringBase &TLI,
148 const TargetLoweringBase &TLI,
/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()
146 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && in isMemcmp()
152 bool isBcmp(TargetLibraryInfo &TLI) { in isBcmp()
154 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && 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()
207 if (TLI.getLibFunc(CI, Func) && in visitCallInst()
219 TargetLibraryInfo &TLI; member in __anona03ef4830111::MemOPSizeOpt
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
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 in propagateVRegs()
[all...]
H A DAnalysis.cpp79 void llvm::ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, in ComputeValueVTs() argument
100 ComputeValueVTs(TLI, DL, *EI, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
110 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
118 ValueVTs.push_back(TLI.getValueType(DL, Ty)); in ComputeValueVTs()
120 MemVTs->push_back(TLI.getMemValueType(DL, Ty)); in ComputeValueVTs()
125 void llvm::ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, in ComputeValueVTs() argument
133 ComputeValueVTs(TLI, DL, Ty, ValueVTs, MemVTs, &Offsets, Offset); in ComputeValueVTs()
137 ComputeValueVTs(TLI, DL, Ty, ValueVTs, MemVTs, nullptr, Offset); in ComputeValueVTs()
278 const TargetLoweringBase& TLI) { in isNoopBitcast() argument
281 TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2))); in isNoopBitcast()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h36 const RISCVTargetLowering *TLI; variable
39 const RISCVTargetLowering *getTLI() const { return TLI; } in getTLI()
61 TLI(ST->getTargetLowering()) {} in RISCVTTIImpl()
217 return TLI->isLegalElementTypeForRVV(TLI->getValueType(DL, Ty)); in isElementTypeLegalForScalableVector()
224 EVT DataTypeVT = TLI->getValueType(DL, DataType); in isLegalMaskedLoadStore()
234 return TLI->isLegalElementTypeForRVV(ElemType); in isLegalMaskedLoadStore()
249 EVT DataTypeVT = TLI->getValueType(DL, DataType); in isLegalMaskedGatherScatter()
259 return TLI->isLegalElementTypeForRVV(ElemType); in isLegalMaskedGatherScatter()
280 EVT DataTypeVT = TLI->getValueType(DL, DataType); in isLegalStridedLoadStore()
281 return TLI->isLegalStridedLoadStore(DataTypeVT, Alignment); in isLegalStridedLoadStore()
[all …]

12345678910>>...14