Searched refs:FuncInfo (Results 1 - 25 of 72) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.h40 struct FuncInfo { struct in struct:llvm::AMDGPUPerfHintAnalysis
45 FuncInfo() : MemInstCount(0), InstCount(0), IAMInstCount(0), function in struct:llvm::AMDGPUPerfHintAnalysis::FuncInfo
49 typedef ValueMap<const Function*, FuncInfo> FuncInfoMap;
H A DSIFrameLowering.cpp678 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); local
679 if (FuncInfo->isEntryFunction()) {
690 unsigned StackPtrReg = FuncInfo->getStackPtrOffsetReg();
691 unsigned FramePtrReg = FuncInfo->getFrameOffsetReg();
705 if (FuncInfo->SGPRForFPSaveRestoreCopy != AMDGPU::NoRegister) {
706 BuildMI(MBB, MBBI, DL, TII->get(AMDGPU::COPY), FuncInfo->SGPRForFPSaveRestoreCopy)
712 : FuncInfo->getSGPRSpillVGPRs()) {
720 if (FuncInfo->SGPRForFPSaveRestoreCopy)
721 LiveRegs.removeReg(FuncInfo->SGPRForFPSaveRestoreCopy);
727 assert(FuncInfo
824 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); local
952 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); local
1076 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); local
[all...]
H A DSILowerSGPRSpills.cpp253 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); local
254 const bool SpillVGPRToAGPR = ST.hasMAIInsts() && FuncInfo->hasSpilledVGPRs()
263 if ((TRI->spillSGPRToVGPR() && (HasCSRs || FuncInfo->hasSpilledSGPRs())) ||
284 if (FuncInfo->allocateVGPRSpillToAGPR(MF, FI,
296 if (FuncInfo->allocateSGPRSpillToVGPR(MF, FI)) {
305 for (auto SSpill : FuncInfo->getSGPRSpillVGPRs())
308 for (MCPhysReg Reg : FuncInfo->getVGPRSpillAGPRs())
311 for (MCPhysReg Reg : FuncInfo->getAGPRSpillVGPRs())
H A DAMDGPULibCalls.cpp63 typedef llvm::AMDGPULibFunc FuncInfo; typedef in class:llvm::AMDGPULibCalls
74 FunctionCallee getFunction(Module *M, const FuncInfo &fInfo);
77 bool replaceWithNative(CallInst *CI, const FuncInfo &FInfo);
80 FuncInfo *FInfo=nullptr /*out*/);
82 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
87 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
90 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
93 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
96 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
99 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo
[all...]
H A DAMDGPUPerfHintAnalysis.cpp104 AMDGPUPerfHintAnalysis::FuncInfo *visit(const Function &F);
105 static bool isMemBound(const AMDGPUPerfHintAnalysis::FuncInfo &F);
106 static bool needLimitWave(const AMDGPUPerfHintAnalysis::FuncInfo &F);
206 AMDGPUPerfHintAnalysis::FuncInfo *AMDGPUPerfHint::visit(const Function &F) {
207 AMDGPUPerfHintAnalysis::FuncInfo &FI = FIM[&F];
268 const AMDGPUPerfHintAnalysis::FuncInfo *Info = visit(F);
291 bool AMDGPUPerfHint::isMemBound(const AMDGPUPerfHintAnalysis::FuncInfo &FI) {
295 bool AMDGPUPerfHint::needLimitWave(const AMDGPUPerfHintAnalysis::FuncInfo &FI) {
H A DAMDGPURegisterInfo.cpp131 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>();
132 return TFI->hasFP(MF) ? FuncInfo->getFrameOffsetReg()
133 : FuncInfo->getStackPtrOffsetReg();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp134 // Instructions are appended to FuncInfo.MBB. If the basic block already
138 if (!FuncInfo.MBB->empty())
139 EmitStartPt = &FuncInfo.MBB->back();
147 if (!FuncInfo.CanLowerReturn)
156 for (Function::const_arg_iterator I = FuncInfo.Fn->arg_begin(),
157 E = FuncInfo.Fn->arg_end();
161 FuncInfo.ValueMap[&*I] = VI->second;
195 : FuncInfo.MBB->rend();
216 SavedInsertPt = FuncInfo.InsertPt;
217 LastFlushPoint = FuncInfo
220 isRegUsedByPhiNodes(unsigned DefReg, FunctionLoweringInfo &FuncInfo) argument
1938 FastISel(FunctionLoweringInfo &FuncInfo, const TargetLibraryInfo *LibInfo, bool SkipTargetIndependentISel) argument
[all...]
H A DSelectionDAGISel.cpp311 : MachineFunctionPass(ID), TM(tm), FuncInfo(new FunctionLoweringInfo()),
314 SDB(std::make_unique<SelectionDAGBuilder>(*CurDAG, *FuncInfo, *SwiftError,
454 FuncInfo->set(Fn, *MF, CurDAG);
463 FuncInfo->BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI();
465 FuncInfo->BPI = nullptr;
476 FuncInfo->SplitCSR = false;
481 FuncInfo->SplitCSR = true;
493 FuncInfo->SplitCSR = false;
499 if (FuncInfo->SplitCSR)
516 for (DenseMap<unsigned, unsigned>::iterator I = FuncInfo
1301 isFoldedOrDeadInstruction(const Instruction *I, const FunctionLoweringInfo &FuncInfo) argument
1312 processDbgDeclares(FunctionLoweringInfo &FuncInfo) argument
[all...]
H A DStatepointLowering.cpp82 AllocatedStackSlots.resize(Builder.FuncInfo.StatepointStackSlots.size());
109 Builder.FuncInfo.StatepointStackSlots.size() &&
114 const int FI = Builder.FuncInfo.StatepointStackSlots[NextSlotToAllocate];
129 Builder.FuncInfo.StatepointStackSlots.push_back(FI);
132 Builder.FuncInfo.StatepointStackSlots.size() &&
136 Builder.FuncInfo.StatepointStackSlots.size());
154 Builder.FuncInfo.StatepointSpillMaps[Relocate->getStatepoint()];
244 const auto &StatepointSlots = Builder.FuncInfo.StatepointStackSlots;
556 int FI = Builder.FuncInfo.getArgumentFrameIndex(Arg);
605 auto &SpillMap = Builder.FuncInfo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DWinException.h51 void emitSEHActionsForRange(const WinEHFuncInfo &FuncInfo,
67 const MachineFunction *MF, const WinEHFuncInfo &FuncInfo,
72 void emitEHRegistrationOffsetLabel(const WinEHFuncInfo &FuncInfo,
86 int getFrameIndexOffset(int FrameIndex, const WinEHFuncInfo &FuncInfo);
H A DWinException.cpp99 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); local
102 emitEHRegistrationOffsetLabel(FuncInfo, FLinkageName);
337 const WinEHFuncInfo &FuncInfo) {
353 assert(FuncInfo.EHRegNodeEndOffset != INT_MAX);
355 Offset += FuncInfo.EHRegNodeEndOffset;
552 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); local
568 MCConstantExpr::create(FuncInfo.SEHSetFrameOffset, Ctx);
602 InvokeStateChangeIterator::range(FuncInfo, MF->begin(), Stop)) {
606 emitSEHActionsForRange(FuncInfo, LastStartLabel,
615 void WinException::emitSEHActionsForRange(const WinEHFuncInfo &FuncInfo, argument
336 getFrameIndexOffset(int FrameIndex, const WinEHFuncInfo &FuncInfo) argument
661 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); local
884 computeIP2StateTable( const MachineFunction *MF, const WinEHFuncInfo &FuncInfo, SmallVectorImpl<std::pair<const MCExpr *, int>> &IPToStateTable) argument
938 emitEHRegistrationOffsetLabel(const WinEHFuncInfo &FuncInfo, StringRef FLinkageName) argument
977 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); local
1058 getTryRank(const WinEHFuncInfo &FuncInfo, int State) argument
1067 getTryAncestor(const WinEHFuncInfo &FuncInfo, int Left, int Right) argument
1094 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp96 explicit PPCFastISel(FunctionLoweringInfo &FuncInfo, argument
98 : FastISel(FuncInfo, LibInfo), TM(FuncInfo.MF->getTarget()),
99 PPCSubTarget(&FuncInfo.MF->getSubtarget<PPCSubtarget>()),
100 PPCFuncInfo(FuncInfo.MF->getInfo<PPCFunctionInfo>()),
103 Context(&FuncInfo.Fn->getContext()) {}
158 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
305 return FuncInfo.MBBMap[I->getParent()] == FuncInfo
2462 createFastISel(FunctionLoweringInfo &FuncInfo, const TargetLibraryInfo *LibInfo) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp131 static int addUnwindMapEntry(WinEHFuncInfo &FuncInfo, int ToState, argument
136 FuncInfo.CxxUnwindMap.push_back(UME);
137 return FuncInfo.getLastStateNumber();
140 static void addTryBlockMapEntry(WinEHFuncInfo &FuncInfo, int TryLow, argument
164 FuncInfo.TryBlockMap.push_back(TBME);
175 WinEHFuncInfo &FuncInfo) {
203 auto BaseStateI = FuncInfo.FuncletBaseStateMap.find(FuncletPad);
204 if (BaseStateI != FuncInfo.FuncletBaseStateMap.end())
209 FuncInfo.InvokeStateMap[II] = BaseState;
212 assert(FuncInfo
174 calculateStateNumbersForInvokes(const Function *Fn, WinEHFuncInfo &FuncInfo) argument
237 calculateCXXStateNumbers(WinEHFuncInfo &FuncInfo, const Instruction *FirstNonPHI, int ParentState) argument
317 addSEHExcept(WinEHFuncInfo &FuncInfo, int ParentState, const Function *Filter, const BasicBlock *Handler) argument
328 addSEHFinally(WinEHFuncInfo &FuncInfo, int ParentState, const BasicBlock *Handler) argument
339 calculateSEHStateNumbers(WinEHFuncInfo &FuncInfo, const Instruction *FirstNonPHI, int ParentState) argument
429 calculateSEHStateNumbers(const Function *Fn, WinEHFuncInfo &FuncInfo) argument
447 calculateWinCXXEHStateNumbers(const Function *Fn, WinEHFuncInfo &FuncInfo) argument
465 addClrEHHandler(WinEHFuncInfo &FuncInfo, int HandlerParentState, int TryParentState, ClrHandlerType HandlerType, uint32_t TypeToken, const BasicBlock *Handler) argument
478 calculateClrEHStateNumbers(const Function *Fn, WinEHFuncInfo &FuncInfo) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp472 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg);
475 MIB->addMemOperand(*FuncInfo.MF, MMO);
502 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
649 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, Desc);
652 MIB->addMemOperand(*FuncInfo.MF, MMO);
685 BuildMI(*FuncInfo.MBB, FuncInfo
[all...]
H A DX86WinEHState.cpp63 void addStateStores(Function &F, WinEHFuncInfo &FuncInfo);
74 WinEHFuncInfo &FuncInfo, BasicBlock *BB);
76 WinEHFuncInfo &FuncInfo, CallSite CS);
189 WinEHFuncInfo FuncInfo; local
190 addStateStores(F, FuncInfo);
512 DenseMap<BasicBlock *, ColorVector> &BlockColors, WinEHFuncInfo &FuncInfo,
521 auto BaseStateI = FuncInfo.FuncletBaseStateMap.find(FuncletPad);
522 if (BaseStateI != FuncInfo.FuncletBaseStateMap.end())
531 DenseMap<BasicBlock *, ColorVector> &BlockColors, WinEHFuncInfo &FuncInfo,
535 assert(FuncInfo
511 getBaseStateForBB( DenseMap<BasicBlock *, ColorVector> &BlockColors, WinEHFuncInfo &FuncInfo, BasicBlock *BB) argument
530 getStateForCallSite( DenseMap<BasicBlock *, ColorVector> &BlockColors, WinEHFuncInfo &FuncInfo, CallSite CS) argument
633 addStateStores(Function &F, WinEHFuncInfo &FuncInfo) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp311 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II,
314 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II)
316 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
337 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg)
341 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp195 WebAssemblyFastISel(FunctionLoweringInfo &FuncInfo, argument
197 : FastISel(FuncInfo, LibInfo, /*SkipTargetIndependentISel=*/true) {
198 Subtarget = &FuncInfo.MF->getSubtarget<WebAssemblySubtarget>();
199 Context = &FuncInfo.Fn->getContext();
215 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
216 FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) {
321 FuncInfo.StaticAllocaMap.find(AI);
322 if (SI != FuncInfo.StaticAllocaMap.end()) {
388 BuildMI(*FuncInfo
1398 createFastISel(FunctionLoweringInfo &FuncInfo, const TargetLibraryInfo *LibInfo) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DWinEHFuncInfo.h119 WinEHFuncInfo &FuncInfo);
122 WinEHFuncInfo &FuncInfo);
124 void calculateClrEHStateNumbers(const Function *Fn, WinEHFuncInfo &FuncInfo);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp292 explicit AArch64FastISel(FunctionLoweringInfo &FuncInfo, argument
294 : FastISel(FuncInfo, LibInfo, /*SkipTargetIndependentISel=*/true) {
296 &static_cast<const AArch64Subtarget &>(FuncInfo.MF->getSubtarget());
297 Context = &FuncInfo.Fn->getContext();
361 if (!FuncInfo.StaticAllocaMap.count(AI))
365 FuncInfo.StaticAllocaMap.find(AI);
367 if (SI != FuncInfo.StaticAllocaMap.end()) {
369 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri),
392 BuildMI(*FuncInfo
5242 createFastISel(FunctionLoweringInfo &FuncInfo, const TargetLibraryInfo *LibInfo) argument
[all...]
H A DAArch64CallLowering.cpp385 AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>();
399 FuncInfo->getForwardedMustTailRegParms();
448 AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>();
462 FuncInfo->setVarArgsStackIndex(MFI.CreateFixedObject(4, StackOffset, true));
473 FuncInfo->setArgumentStackToRestore(StackOffset);
483 FuncInfo->setBytesInStackArgArea(StackOffset);
587 const AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>(); local
588 if (OutInfo.getNextStackOffset() > FuncInfo->getBytesInStackArgArea()) {
785 AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>(); local
841 unsigned NumReusableBytes = FuncInfo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp211 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc));
215 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc),
342 FuncInfo.StaticAllocaMap.find(AI);
344 if (SI != FuncInfo.StaticAllocaMap.end()) {
346 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::LEA_ADDiu),
471 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
472 FuncInfo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp812 FuncPGOInstrumentation<PGOEdge, BBInfo> FuncInfo(F, ComdatMembers, true, BPI,
815 FuncInfo.getInstrumentBBs(InstrumentBBs);
817 InstrumentBBs.size() + FuncInfo.SIVisitor.getNumOfSelectInsts();
827 {ConstantExpr::getBitCast(FuncInfo.FuncNameVar, I8PtrTy),
828 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters),
833 FuncInfo.SIVisitor.instrumentSelects(F, &I, NumCounters, FuncInfo.FuncNameVar,
834 FuncInfo.FunctionHash);
840 NumOfPGOICall += FuncInfo.ValueSites[IPVK_IndirectCallTarget].size();
848 for (VPCandidateInfo Cand : FuncInfo
1018 FuncPGOInstrumentation<PGOUseEdge, UseBBInfo> FuncInfo; member in class:__anon2639::PGOUseFunc
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp87 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); local
117 if (FuncInfo->isLeafProc()) {
222 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); local
229 if (!FuncInfo->isLeafProc()) {
267 const SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); local
277 if (FuncInfo->isLeafProc()) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp100 for (const auto &FuncInfo : Funcs) {
101 uint64_t AddrOffset = FuncInfo.startAddress() - Hdr.BaseAddress;
138 for (const auto &FuncInfo : Funcs) {
139 if (Expected<uint64_t> OffsetOrErr = FuncInfo.encode(O))
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DValistChecker.cpp136 for (auto FuncInfo : VAListAccepters) {
137 if (!Call.isCalled(FuncInfo.Func))
141 getVAListAsRegion(Call.getArgSVal(FuncInfo.VAListPos),
142 Call.getArgExpr(FuncInfo.VAListPos), Symbolic, C);
155 Errmsg += FuncInfo.Func.getFunctionName();

Completed in 401 milliseconds

123