Home
last modified time | relevance | path

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

12345678910>>...15

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp163 TLI.disableAllFunctions(); in initialize()
802 TLI.disableAllFunctions(); in initialize()
847 : CustomNames(TLI.CustomNames), ShouldExtI32Param(TLI.ShouldExtI32Param), in TargetLibraryInfoImpl()
850 SizeOfInt(TLI.SizeOfInt) { in TargetLibraryInfoImpl()
852 VectorDescs = TLI.VectorDescs; in TargetLibraryInfoImpl()
853 ScalarDescs = TLI.ScalarDescs; in TargetLibraryInfoImpl()
861 SizeOfInt(TLI.SizeOfInt) { in TargetLibraryInfoImpl()
862 std::move(std::begin(TLI.AvailableArray), std::end(TLI.AvailableArray), in TargetLibraryInfoImpl()
873 SizeOfInt = TLI.SizeOfInt; in operator =()
883 SizeOfInt = TLI.SizeOfInt; in operator =()
[all …]
H A DMemoryBuiltins.cpp183 if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction()
363 return isAllocLikeFn(CB, TLI); in isRemovableAlloc()
461 if (isMallocLikeFn(Alloc, TLI) || isAlignedAllocLikeFn(Alloc, TLI)) in getInitialValueOfAllocation()
465 if (isCallocLikeFn(Alloc, TLI)) in getInitialValueOfAllocation()
537 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn)) { in getAllocationFamily()
583 if (TLI && TLI->getLibFunc(*Callee, TLIFn) && TLI->has(TLIFn) && in getFreedOperand()
709 : DL(DL), TLI(TLI), Options(Options) { in ObjectSizeOffsetVisitor()
817 if (Optional<APInt> Size = getAllocSize(&CB, TLI)) in visitCallBase()
918 if (!TLI || !TLI->getLibFunc(*CB->getCalledFunction(), TLIFn) || in findLoadSizeOffset()
919 !TLI->has(TLIFn)) in findLoadSizeOffset()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h47 return getOrInsertLibFunc(M, TLI, TheLibFunc, in getOrInsertLibFunc()
90 const TargetLibraryInfo *TLI);
101 const TargetLibraryInfo *TLI);
110 const TargetLibraryInfo *TLI);
115 const TargetLibraryInfo *TLI);
120 const TargetLibraryInfo *TLI);
125 const TargetLibraryInfo *TLI);
169 const TargetLibraryInfo *TLI);
232 const TargetLibraryInfo *TLI);
237 const TargetLibraryInfo *TLI);
[all …]
H A DMemoryOpRemark.h38 const TargetLibraryInfo &TLI; member
41 const DataLayout &DL, const TargetLibraryInfo &TLI) in MemoryOpRemark()
42 : ORE(ORE), RemarkPass(RemarkPass), DL(DL), TLI(TLI) {} in MemoryOpRemark()
47 static bool canHandle(const Instruction *I, const TargetLibraryInfo &TLI);
98 const DataLayout &DL, const TargetLibraryInfo &TLI) in AutoInitRemark()
99 : 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);
419 bool callsGCLeafFunction(const CallBase *Call, const TargetLibraryInfo &TLI);
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp268 if (!(TLI.getLibFunc(F, TheLibFunc) && TLI.has(TheLibFunc))) in inferNonMandatoryLibFuncAttrs()
1285 assert(TLI.has(TheLibFunc) && in getOrInsertLibFunc()
1304 setArgExtAttr(*F, 0, TLI); in getOrInsertLibFunc()
1312 setArgExtAttr(*F, 1, TLI); in getOrInsertLibFunc()
1315 setArgExtAttr(*F, 2, TLI); in getOrInsertLibFunc()
1361 if (!TLI->has(TheLibFunc)) in isLibFuncEmittable()
1407 return TLI->getName(FloatFn); in getFloatFn()
1410 return TLI->getName(DoubleFn); in getFloatFn()
1532 {Dst, Src, Len}, B, TLI); in emitMemPCpy()
1687 TLI->getLibFunc(Name, TheLibFunc); in emitUnaryFloatFnCall()
[all …]
H A DInjectTLIMappings.cpp71 static void addMappingsFromTLI(const TargetLibraryInfo &TLI, CallInst &CI) { in addMappingsFromTLI() argument
84 if (!TLI.isFunctionVectorizable(ScalarName)) in addMappingsFromTLI()
94 std::string(TLI.getVectorizedFunction(ScalarName, VF)); in addMappingsFromTLI()
110 TLI.getWidestVF(ScalarName, WidestFixedVF, WidestScalableVF); in addMappingsFromTLI()
123 static bool runImpl(const TargetLibraryInfo &TLI, Function &F) { in runImpl() argument
126 addMappingsFromTLI(TLI, *CI); in runImpl()
136 const TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
137 runImpl(TLI, F); in run()
146 const TargetLibraryInfo &TLI = in runOnFunction() local
148 return runImpl(TLI, F); in runOnFunction()
H A DSimplifyLibCalls.cpp434 DL, TLI)); in optimizeStrChr()
523 B, DL, TLI)); in optimizeStrCmp()
533 B, DL, TLI)); in optimizeStrCmp()
540 B, DL, TLI)); in optimizeStrCmp()
610 B, DL, TLI)); in optimizeStrNCmp()
618 B, DL, TLI)); in optimizeStrNCmp()
2260 TLI->getLibFunc(*Arg, ArgLb); in optimizeLog()
3178 if (TLI->getLibFunc(*Callee, Func) && isLibFuncEmittable(M, TLI, Func)) { in optimizeStringMemoryLibCall()
3442 if (TLI->getLibFunc(*Callee, Func) && isLibFuncEmittable(M, TLI, Func)) { in optimizeCall()
3511 : FortifiedSimplifier(TLI), DL(DL), TLI(TLI), ORE(ORE), BFI(BFI), PSI(PSI), in LibCallSimplifier()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h55 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI);
61 bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
65 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
69 bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI);
82 Value *getFreedOperand(const CallBase *CB, const TargetLibraryInfo *TLI);
97 bool isRemovableAlloc(const CallBase *V, const TargetLibraryInfo *TLI);
111 const CallBase *CB, const TargetLibraryInfo *TLI,
120 const TargetLibraryInfo *TLI,
127 const TargetLibraryInfo *TLI);
187 const TargetLibraryInfo *TLI; variable
[all …]
H A DTargetLibraryInfo.h103 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
104 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI);
258 TargetLibraryInfo(const TargetLibraryInfo &TLI) = default;
259 TargetLibraryInfo(TargetLibraryInfo &&TLI) in TargetLibraryInfo() argument
260 : Impl(TLI.Impl), OverrideAsUnavailable(TLI.OverrideAsUnavailable) {} in TargetLibraryInfo()
262 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) {
263 Impl = TLI.Impl;
264 OverrideAsUnavailable = TLI.OverrideAsUnavailable;
470 Optional<TargetLibraryInfo> TLI; variable
482 TLI = TLA.run(F, DummyFAM); in getTLI()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp55 const TargetLowering &TLI; member in __anon381108d70111::VectorLegalizer
170 DAG(dag), TLI(dag.getTargetLoweringInfo()) {} in VectorLegalizer()
281 Action = TLI.getTruncStoreAction(ValVT, StVT); in LegalizeOp()
454 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
692 return TLI.scalarizeVectorLoad(LD, DAG); in ExpandLoad()
697 SDValue TF = TLI.scalarizeVectorStore(ST, DAG); in ExpandStore()
742 EVT CondVT = TLI.getSetCCResultType( in Expand()
1104 return TLI.expandBSWAP(Node, DAG); in ExpandBSWAP()
1125 return TLI.expandBSWAP(Node, DAG); in ExpandBSWAP()
1441 TLI.isOperationLegalOrCustom(ISD::FADD, VT)) in ExpandFSUB()
[all …]
H A DFunctionLoweringInfo.cpp83 TLI = MF->getSubtarget().getTargetLowering(); in set()
195 Register SP = TLI->getStackPointerRegisterToSaveRestore(); in set()
203 TLI->ComputeConstraintToUse(Op, SDValue(), DAG); in set()
387 ComputeValueVTs(*TLI, MF->getDataLayout(), Ty, ValueVTs); in CreateRegs()
405 !TLI->requiresUniformRegister(*MF, V)); in CreateRegs()
438 ComputeValueVTs(*TLI, MF->getDataLayout(), Ty, ValueVTs); in ComputePHILiveOutRegInfo()
443 if (TLI->getNumRegisters(PN->getContext(), IntVT) != 1) in ComputePHILiveOutRegInfo()
445 IntVT = TLI->getTypeToTransformTo(PN->getContext(), IntVT); in ComputePHILiveOutRegInfo()
468 if (TLI->signExtendConstant(CI)) in ComputePHILiveOutRegInfo()
504 if (TLI->signExtendConstant(CI)) in ComputePHILiveOutRegInfo()
[all …]
H A DLegalizeDAG.cpp87 const TargetLowering &TLI; member in __anon0eeaccbe0111::SelectionDAGLegalize
446 TLI.isTypeLegal(MVT::i32)) { in OptimizeFloatStore()
643 if (TLI.isTypeLegal(StVT)) { in LegalizeStoreOps()
1171 Action = TLI.getOperationAction( in LegalizeOp()
1176 Action = TLI.getOperationAction( in LegalizeOp()
1536 if (TLI.isTypeLegal(IVT)) { in getSignAsIntValue()
2861 if (TLI.isStrictFPEnabled()) in ExpandNode()
2888 if (TLI.isStrictFPEnabled()) in ExpandNode()
3043 if (!TLI.isTypeLegal(EltVT)) { in ExpandNode()
3962 if (TLI.getLibcallName(LC)) { in ConvertNodeToLibcall()
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DAnnotationRemarks.cpp32 const TargetLibraryInfo &TLI) { in tryEmitAutoInitRemark() argument
40 AutoInitRemark Remark(ORE, REMARK_PASS, DL, TLI); in tryEmitAutoInitRemark()
45 static void runImpl(Function &F, const TargetLibraryInfo &TLI) { in runImpl() argument
81 tryEmitAutoInitRemark(KV.second, ORE, TLI); in runImpl()
95 const TargetLibraryInfo &TLI = in runOnFunction() local
97 runImpl(F, TLI); in runOnFunction()
123 auto &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
124 runImpl(F, TLI); in run()
H A DDCE.cpp90 const TargetLibraryInfo *TLI) { in DCEInstruction() argument
91 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction()
111 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction()
122 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in eliminateDeadCode() argument
132 MadeChange |= DCEInstruction(&I, WorkList, TLI); in eliminateDeadCode()
137 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode()
162 TargetLibraryInfo *TLI = in runOnFunction() local
165 return eliminateDeadCode(F, TLI); in runOnFunction()
/llvm-project-15.0.7/llvm/test/tools/llvm-tli-checker/
H A Dmulti-file.yaml43 # CHECK: >> TLI no SDK yes: '_ZdaPvj'
44 # CHECK: == TLI yes SDK yes: 'abs'
45 # CHECK: == TLI yes SDK yes: 'calloc'
48 # CHECK: << Total TLI yes SDK no: [[#AVAILABLE-2]]
49 # CHECK: >> Total TLI no SDK yes: 1{{$}}
50 # CHECK: == Total TLI yes SDK yes: 2{{$}}
60 # SEPARATE: << Total TLI yes SDK no: [[#AVAILABLE-1]]
61 # SEPARATE: >> Total TLI no SDK yes: 1{{$}}
62 # SEPARATE: == Total TLI yes SDK yes: 1{{$}}
65 # SEPARATE: >> Total TLI no SDK yes: 0{{$}}
[all …]
/llvm-project-15.0.7/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 __anon419b87b30111::MemOPSizeOpt
252 if (!MemOPOptMemcmpBcmp && (MO.isMemcmp(TLI) || MO.isBcmp(TLI))) in perform()
469 MemOPSizeOpt MemOPSizeOpt(F, BFI, ORE, DT, TLI); in PGOMemOPSizeOptImpl()
[all …]
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-tli-checker.rst16 by the specified library files, reporting any disagreements between TLI's
18 useful for vendors to ensure the TLI for their target is correct, and
28 TLI knows 466 symbols, 235 available for 'x86_64-scei-ps4'
33 << TLI yes SDK no: '_ZdaPv' aka operator delete[](void*)
34 >> TLI no SDK yes: '_ZdaPvj' aka operator delete[](void*, unsigned int)
35 << Total TLI yes SDK no: 1
36 >> Total TLI no SDK yes: 1
37 == Total TLI yes SDK yes: 234
38 FAIL: LLVM TLI doesn't match SDK libraries.
64 symbols known to TLI, matching or mis-matching. The default is discrepancy.
[all …]
/llvm-project-15.0.7/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->supportSwiftError()) in propagateVRegs()
241 auto const *RC = TLI->getRegClassFor(TLI->getPointerTy(DL)); in propagateVRegs()
262 if (!TLI->supportSwiftError() || SwiftErrorVals.empty()) in preassignVRegs()
H A DReplaceWithVeclib.cpp92 static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI, in replaceWithCallToVeclib() argument
149 if (!TLI.isFunctionVectorizable(ScalarName)) { in replaceWithCallToVeclib()
159 std::string(TLI.getVectorizedFunction(ScalarName, VF)); in replaceWithCallToVeclib()
176 static bool runImpl(const TargetLibraryInfo &TLI, Function &F) { in runImpl() argument
181 if (replaceWithCallToVeclib(TLI, *CI)) { in runImpl()
200 const TargetLibraryInfo &TLI = AM.getResult<TargetLibraryAnalysis>(F); in run() local
201 auto Changed = runImpl(TLI, F); in run()
221 const TargetLibraryInfo &TLI = in runOnFunction() local
223 return runImpl(TLI, F); in runOnFunction()
H A DAnalysis.cpp96 ComputeValueVTs(TLI, DL, *EI, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
106 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs()
114 ValueVTs.push_back(TLI.getValueType(DL, Ty)); in ComputeValueVTs()
116 MemVTs->push_back(TLI.getMemValueType(DL, Ty)); in ComputeValueVTs()
266 const TargetLoweringBase& TLI) { in isNoopBitcast() argument
269 TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2))); in isNoopBitcast()
286 const TargetLoweringBase &TLI, in getNoopInput() argument
298 if (isNoopBitcast(Op->getType(), I->getType(), TLI)) in getNoopInput()
368 const TargetLoweringBase &TLI, in slotOnlyDiscardsData() argument
570 const TargetLoweringBase &TLI, in attributesPermitTailCall() argument
[all …]
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DTargetLibraryInfoTest.cpp25 TargetLibraryInfo TLI; member in __anon14e509b70111::TargetLibraryInfoTest
29 TargetLibraryInfoTest() : TLI(TLII) {} in TargetLibraryInfoTest()
45 StringRef ExpectedLFName = TLI.getName(ExpectedLF); in isLibFunc()
51 if (!TLI.getLibFunc(*FDecl, F)) in isLibFunc()
70 M->getOrInsertFunction(TLI.getName(LF), InvalidFTy).getCallee()); in TEST_F()
601 Function *F = M->getFunction(TLI.getName(LF)); in TEST_F()

12345678910>>...15