Home
last modified time | relevance | path

Searched refs:getFunction (Results 1 – 25 of 746) sorted by relevance

12345678910>>...30

/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp75 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
79 if (MF->getFunction().getCallingConv() == CallingConv::PreserveNone) in getCalleeSavedRegs()
81 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
84 if (MF->getFunction().getCallingConv() == CallingConv::ARM64EC_Thunk_X64) in getCalleeSavedRegs()
92 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs()
97 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
100 if (MF->getFunction().getCallingConv() == CallingConv::SwiftTail) in getCalleeSavedRegs()
102 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall) in getCalleeSavedRegs()
104 if (MF->getFunction().getCallingConv() == in getCalleeSavedRegs()
111 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall) in getCalleeSavedRegs()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineCFGPrinter.h27 const MachineFunction *getFunction() const { return this->F; } in getFunction() function
34 return &(CFGInfo->getFunction()->front());
41 return nodes_iterator(CFGInfo->getFunction()->begin());
45 return nodes_iterator(CFGInfo->getFunction()->end());
49 return CFGInfo->getFunction()->size();
88 return "Machine CFG for '" + CFGInfo->getFunction()->getName().str() +
H A DMachineOptimizationRemarkEmitter.h39 MBB->getParent()->getFunction(), Loc), in DiagnosticInfoMIROptimization()
79 const Function &Fn = getFunction(); in isEnabled()
105 const Function &Fn = getFunction(); in isEnabled()
137 const Function &Fn = getFunction(); in isEnabled()
179 MF.getFunction().getContext().getLLVMRemarkStreamer() || in allowExtraAnalysis()
180 MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled( in allowExtraAnalysis()
192 if (MF.getFunction().getContext().getLLVMRemarkStreamer() ||
193 MF.getFunction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp33 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip()
34 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip()
35 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip()
113 isSafeForNoCSROpt(MF.getFunction()) && in determineCalleeSaves()
114 isProfitableForNoCSROpt(MF.getFunction())) in determineCalleeSaves()
124 if (MF.getFunction().hasFnAttribute(Attribute::Naked)) in determineCalleeSaves()
134 if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in determineCalleeSaves()
135 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in determineCalleeSaves()
136 !MF.getFunction().hasFnAttribute(Attribute::UWTable) && in determineCalleeSaves()
H A DMachineBlockFrequencyInfo.cpp96 return &G->getFunction()->front(); in getEntryNode()
106 return nodes_iterator(G->getFunction()->begin()); in nodes_begin()
110 return nodes_iterator(G->getFunction()->end()); in nodes_end()
277 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
286 const Function &F = MBFI->getFunction()->getFunction(); in getProfileCountFromFreq()
307 const MachineFunction *MachineBlockFrequencyInfo::getFunction() const { in getFunction() function in MachineBlockFrequencyInfo
308 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
H A DMachineSizeOpts.cpp31 if (MF->getFunction().hasOptSize()) in shouldOptimizeForSize()
41 if (MBB->getParent()->getFunction().hasOptSize()) in shouldOptimizeForSize()
51 if (MBB->getParent()->getFunction().hasOptSize()) in shouldOptimizeForSize()
H A DPatchableFunction.cpp59 if (MF.getFunction().hasFnAttribute("patchable-function-entry")) { in run()
65 } else if (MF.getFunction().hasFnAttribute("patchable-function")) { in run()
67 Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function"); in run()
H A DRemoveRedundantDebugValues.cpp222 if (!MF.getFunction().getSubprogram() || in runOnMachineFunction()
223 (MF.getFunction().getSubprogram()->getUnit()->getEmissionKind() == in runOnMachineFunction()
235 if (!MF.getFunction().getSubprogram() || in run()
236 (MF.getFunction().getSubprogram()->getUnit()->getEmissionKind() == in run()
H A DMIRFSDiscriminator.cpp100 bool HasPseudoProbe = MF.getFunction().getParent()->getNamedMetadata( in runOnMachineFunction()
103 if (!HasPseudoProbe && !MF.getFunction().shouldEmitDebugInfoForProfiling()) in runOnMachineFunction()
131 << MF.getFunction().getName() << " Highbit=" << HighBit in runOnMachineFunction()
198 createFSDiscriminatorVariable(MF.getFunction().getParent()); in runOnMachineFunction()
H A DMachineOptimizationRemarkEmitter.cpp62 LLVMContext &Ctx = MF.getFunction().getContext(); in emit()
81 if (MF.getFunction().getContext().getDiagnosticsHotnessRequested()) in runOnMachineFunction()
103 MF.getFunction().getContext().getDiagnosticsHotnessRequested() in run()
H A DMIRSampleProfile.cpp134 static Function &getFunction(MachineFunction &F) { return F.getFunction(); } in getFunction() function
325 Function &Func = MF.getFunction(); in runOnFunction()
332 if (!ProbeManager->profileIsValid(MF.getFunction(), *Samples)) in runOnFunction()
368 << MF.getFunction().getName() << "\n"); in runOnMachineFunction()
384 MF.getFunction().getName() == ViewBlockFreqFuncName)) { in runOnMachineFunction()
395 MF.getFunction().getName() == ViewBlockFreqFuncName)) { in runOnMachineFunction()
H A DRegUsageInfoCollector.cpp92 switch (MF.getFunction().getCallingConv()) { in isCallableFunction()
110 Module &MFA = *MF.getFunction().getParent(); in run()
142 if (MF.getFunction().use_empty()) { in run()
155 const Function &F = MF.getFunction(); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCResourceInfo.cpp185 bool IsLocal = MF.getFunction().hasLocalLinkage(); in assignResourceInfoExpr()
186 MCSymbol *FnSym = TM.getSymbol(&MF.getFunction()); in assignResourceInfoExpr()
203 MCSymbol *CalleeFnSym = TM.getSymbol(&Callee->getFunction()); in assignResourceInfoExpr()
247 bool IsLocal = MF.getFunction().hasLocalLinkage(); in gatherResourceInfo()
249 if (!AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())) { in gatherResourceInfo()
256 MCSymbol *FnSym = TM.getSymbol(&MF.getFunction()); in gatherResourceInfo()
264 MCSymbol *CalleeFnSym = TM.getSymbol(&Callee->getFunction()); in gatherResourceInfo()
307 Seen.insert(&MF.getFunction()); in gatherResourceInfo()
313 MCSymbol *CalleeFnSym = TM.getSymbol(&Callee->getFunction()); in gatherResourceInfo()
378 MCSymbol *FnSym = TM.getSymbol(&MF.getFunction()); in createTotalNumVGPRs()
[all …]
H A DAMDGPUMemoryUtils.cpp117 Function *F = I->getFunction(); in getUsesOfLDSByFunction()
159 if (!R.second->getFunction()) in getTransitiveUsesOfLDS()
196 Function *Ith = R.second->getFunction(); in getTransitiveUsesOfLDS()
223 Function *Ith = R.second->getFunction(); in getTransitiveUsesOfLDS()
232 SmallVector<Function *> WorkList = {CG[&Func]->getFunction()}; in getTransitiveUsesOfLDS()
242 Function *Callee = CallRecord.second->getFunction(); in getTransitiveUsesOfLDS()
304 SmallVector<Function *> WorkList = {CG[KernelRoot]->getFunction()}; in removeFnAttrFromReachable()
315 Function *Callee = CallRecord.second->getFunction(); in removeFnAttrFromReachable()
325 ExternalCallRecord.second->getFunction(); in removeFnAttrFromReachable()
H A DAMDGPUAsmPrinter.cpp164 const Function &F = MF->getFunction(); in emitFunctionBodyStart()
237 getNameWithPrefix(KernelName, &MF->getFunction()); in emitFunctionBodyEnd()
275 if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) { in emitFunctionEntryLabel()
277 getNameWithPrefix(SymbolName, &MF->getFunction()), in emitFunctionEntryLabel()
608 const Function &F = MF.getFunction(); in getAmdhsaKernelDescriptor()
647 initTargetStreamer(*MF.getFunction().getParent()); in runOnMachineFunction()
664 bool IsLocal = MF.getFunction().hasLocalLinkage(); in runOnMachineFunction()
921 bool IsLocal = MF.getFunction().hasLocalLinkage(); in getSIProgramInfo()
977 LLVMContext &Ctx = MF.getFunction().getContext(); in getSIProgramInfo()
979 MF.getFunction(), "addressable scalar registers", NumSgpr, in getSIProgramInfo()
[all …]
H A DR600AsmPrinter.cpp73 switch (MF.getFunction().getCallingConv()) { in EmitProgramInfoR600()
82 switch (MF.getFunction().getCallingConv()) { in EmitProgramInfoR600()
97 if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) { in EmitProgramInfoR600()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCallGraph.cpp88 Function *F = Node->getFunction(); in populateCallGraphNode()
124 if (Function *LF = LHS->getFunction()) in print()
125 if (Function *RF = RHS->getFunction()) in print()
128 return RHS->getFunction() != nullptr; in print()
148 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule()
173 if (Function *F = getFunction()) in print()
182 if (Function *FI = I.second->getFunction()) in print()
282 OS << (CGN->getFunction() ? CGN->getFunction()->getName() in run()
H A DTrace.cpp27 Function *Trace::getFunction() const { in getFunction() function in Trace
32 return getFunction()->getParent(); in getModule()
37 Function *F = getFunction(); in print()
H A DCallPrinter.cpp76 Callers.insert(cast<Instruction>(U)->getFunction()); in CallGraphDOTInfo()
105 if (!(Visited.insert(CI->second->getFunction())).second) { in removeParallelEdges()
154 if (CallMultiGraph || Node->getFunction()) in isNodeHidden()
166 if (Function *Func = Node->getFunction()) in getNodeLabel()
184 Function *Caller = Node->getFunction(); in getEdgeAttributes()
188 Function *Callee = (*I)->getFunction(); in getEdgeAttributes()
202 Function *F = Node->getFunction(); in getNodeAttributes()
H A DBlockFrequencyInfo.cpp105 return &G->getFunction()->front(); in getEntryNode()
115 return nodes_iterator(G->getFunction()->begin()); in nodes_begin()
119 return nodes_iterator(G->getFunction()->end()); in nodes_end()
210 return BFI->getBlockProfileCount(*getFunction(), BB, AllowSynthetic); in getBlockProfileCount()
217 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
259 const Function *BlockFrequencyInfo::getFunction() const { in getFunction() function in BlockFrequencyInfo
260 return BFI ? BFI->getFunction() : nullptr; in getFunction()
H A DMLInlineAdvisor.cpp163 Function *F = CGNode->getFunction(); in MLInlineAdvisor()
180 Function *F = CGNode->getFunction(); in MLInlineAdvisor()
187 EdgeCount += getLocalCalls(KVP.first->getFunction()); in MLInlineAdvisor()
234 EdgeCount += getLocalCalls(N->getFunction()); in onPassEntry()
238 assert(!AdjNode->isDead() && !AdjNode->getFunction().isDeclaration()); in onPassEntry()
273 EdgesOfLastSeenNodes += getLocalCalls(N->getFunction()); in onPassExit()
281 EdgesOfLastSeenNodes += getLocalCalls(N.getFunction()); in onPassExit()
525 OS << (DeadFunctions.contains(&I.first->getFunction()) in print()
527 : I.first->getFunction().getName()) in print()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/
H A DHipStdPar.cpp208 if (!N.second->getFunction()) in run()
210 if (Reachable.contains(N.second->getFunction())) in run()
213 if (!checkIfSupported(N.second->getFunction(), in run()
217 Reachable.insert(N.second->getFunction()); in run()
218 Tmp.push_back(N.second->getFunction()); in run()
296 if (auto R = M.getFunction(It->second)) { in run()
313 if (auto F = M.getFunction(HR.first)) { in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ReturnThunks.cpp63 if (!MF.getFunction().hasFnAttribute(llvm::Attribute::FnRetThunkExtern)) in runOnMachineFunction()
67 if (MF.getFunction().getName() == ThunkName) in runOnMachineFunction()
81 MF.getFunction().getParent()->getModuleFlag("indirect_branch_cs_prefix"); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCFGPrinter.h84 const Function *getFunction() const { return this->F; } in getFunction() function
110 return &(CFGInfo->getFunction()->getEntryBlock());
117 return nodes_iterator(CFGInfo->getFunction()->begin());
121 return nodes_iterator(CFGInfo->getFunction()->end());
125 return CFGInfo->getFunction()->size();
201 return "CFG for '" + CFGInfo->getFunction()->getName().str() + "' function";
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBlockCoverageInference.cpp260 const Function &getFunction() { return BCI->F; } in getFunction() function in llvm::DotFuncBCIInfo
278 return &(Info->getFunction().getEntryBlock()); in getEntryNode()
285 return nodes_iterator(Info->getFunction().begin()); in nodes_begin()
289 return nodes_iterator(Info->getFunction().end()); in nodes_end()
293 return Info->getFunction().size(); in size()
303 return "BCI CFG for " + Info->getFunction().getName().str(); in getGraphName()

12345678910>>...30