Home
last modified time | relevance | path

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

12345678910>>...26

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp34 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip()
35 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip()
36 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip()
96 isSafeForNoCSROpt(MF.getFunction()) && in determineCalleeSaves()
97 isProfitableForNoCSROpt(MF.getFunction())) in determineCalleeSaves()
108 if (MF.getFunction().hasFnAttribute(Attribute::Naked)) in determineCalleeSaves()
118 if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in determineCalleeSaves()
119 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in determineCalleeSaves()
120 !MF.getFunction().hasFnAttribute(Attribute::UWTable) && in determineCalleeSaves()
138 if (LLVM_UNLIKELY(MF.getFunction().getCallingConv() == CallingConv::HHVM)) in getStackAlignmentSkew()
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()
239 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
248 const Function &F = MBFI->getFunction()->getFunction(); in getProfileCountFromFreq()
269 const MachineFunction *MachineBlockFrequencyInfo::getFunction() const { in getFunction() function in MachineBlockFrequencyInfo
270 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
H A DPatchableFunction.cpp41 if (MF.getFunction().hasFnAttribute("patchable-function-entry")) { in runOnMachineFunction()
50 if (!MF.getFunction().hasFnAttribute("patchable-function")) in runOnMachineFunction()
54 Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function"); in runOnMachineFunction()
H A DMachineFunctionSplitter.cpp175 bool UseProfileData = MF.getFunction().hasProfileData(); in runOnMachineFunction()
183 if (MF.getFunction().hasSection() || in runOnMachineFunction()
184 MF.getFunction().hasFnAttribute("implicit-section-name")) in runOnMachineFunction()
189 std::optional<StringRef> SectionPrefix = MF.getFunction().getSectionPrefix(); in runOnMachineFunction()
H A DMIRSampleProfile.cpp107 static Function &getFunction(MachineFunction &F) { return F.getFunction(); } in getFunction() function
274 Function &Func = MF.getFunction(); in runOnFunction()
310 << MF.getFunction().getName() << "\n"); in runOnMachineFunction()
320 MF.getFunction().getName().equals(ViewBlockFreqFuncName))) { in runOnMachineFunction()
330 MF.getFunction().getName().equals(ViewBlockFreqFuncName))) { in runOnMachineFunction()
H A DMIRFSDiscriminator.cpp73 if (!MF.getFunction().shouldEmitDebugInfoForProfiling()) in runOnMachineFunction()
95 << MF.getFunction().getName() << "\n"); in runOnMachineFunction()
136 createFSDiscriminatorVariable(MF.getFunction().getParent()); in runOnMachineFunction()
H A DShrinkWrap.cpp467 if (skipFunction(MF.getFunction()) || MF.empty() || !isShrinkWrapEnabled(MF)) in runOnMachineFunction()
484 MF.getFunction().getSubprogram(), &MF.front()); in runOnMachineFunction()
606 !(MF.getFunction().hasFnAttribute(Attribute::SanitizeAddress) || in isShrinkWrapEnabled()
607 MF.getFunction().hasFnAttribute(Attribute::SanitizeThread) || in isShrinkWrapEnabled()
608 MF.getFunction().hasFnAttribute(Attribute::SanitizeMemory) || in isShrinkWrapEnabled()
609 MF.getFunction().hasFnAttribute(Attribute::SanitizeHWAddress)); in isShrinkWrapEnabled()
/openbsd-src/gnu/llvm/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.h37 MBB->getParent()->getFunction(), Loc), in DiagnosticInfoMIROptimization()
77 const Function &Fn = getFunction(); in isEnabled()
103 const Function &Fn = getFunction(); in isEnabled()
135 const Function &Fn = getFunction(); in isEnabled()
170 MF.getFunction().getContext().getLLVMRemarkStreamer() || in allowExtraAnalysis()
171 MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled( in allowExtraAnalysis()
183 if (MF.getFunction().getContext().getLLVMRemarkStreamer() ||
184 MF.getFunction()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp74 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
78 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
86 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs()
90 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall) in getCalleeSavedRegs()
92 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_SVE_VectorCall) in getCalleeSavedRegs()
94 if (MF->getFunction().getCallingConv() == in getCalleeSavedRegs()
100 if (MF->getFunction().getCallingConv() == in getCalleeSavedRegs()
108 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
111 if (MF->getFunction().getCallingConv() == CallingConv::SwiftTail) in getCalleeSavedRegs()
113 if (MF->getFunction().getCallingConv() == CallingConv::PreserveMost) in getCalleeSavedRegs()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsmPrinter.cpp194 const Function &F = MF->getFunction(); in emitFunctionBodyStart()
261 getNameWithPrefix(KernelName, &MF->getFunction()); in emitFunctionBodyEnd()
283 if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) { in emitFunctionEntryLabel()
285 getNameWithPrefix(SymbolName, &MF->getFunction()), in emitFunctionEntryLabel()
425 const Function &F = MF.getFunction(); in getAmdhsaKernelDescriptor()
456 initTargetStreamer(*MF.getFunction().getParent()); in runOnMachineFunction()
520 ResourceUsage->getResourceInfo(&MF.getFunction()); in runOnMachineFunction()
683 ResourceUsage->getResourceInfo(&MF.getFunction()); in getSIProgramInfo()
700 DiagnosticInfoStackSize DiagStackSize(MF.getFunction(), in getSIProgramInfo()
703 MF.getFunction().getContext().diagnose(DiagStackSize); in getSIProgramInfo()
[all …]
H A DAMDGPUReplaceLDSUseWithPointer.cpp408 auto *F = CGN->getFunction(); in collectAddressTakenFunctions()
441 if (!CGN->getFunction() || CGN->getFunction()->isDeclaration()) in collectReachableCallees()
448 if (auto *DCallee = RCGN->getFunction()) { in collectReachableCallees()
453 auto *ACallee = ACGN->getFunction(); in collectReachableCallees()
520 Function *F = cast<Instruction>(U)->getFunction(); in collectNonKernelAccessorsOfLDS()
551 Function *F = I->getFunction(); in getFunctionToInstsMap()
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()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
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 DCallGraph.cpp90 Function *F = Node->getFunction(); in populateCallGraphNode()
126 if (Function *LF = LHS->getFunction()) in print()
127 if (Function *RF = RHS->getFunction()) in print()
130 return RHS->getFunction() != nullptr; in print()
160 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule()
185 if (Function *F = getFunction()) in print()
194 if (Function *FI = I.second->getFunction()) in print()
329 OS << ((*I)->getFunction() ? (*I)->getFunction()->getName() in run()
H A DCallPrinter.cpp75 Callers.insert(cast<Instruction>(U)->getFunction()); in CallGraphDOTInfo()
104 if (!(Visited.insert(CI->second->getFunction())).second) { in removeParallelEdges()
153 if (CallMultiGraph || Node->getFunction()) in isNodeHidden()
165 if (Function *Func = Node->getFunction()) in getNodeLabel()
183 Function *Caller = Node->getFunction(); in getEdgeAttributes()
187 Function *Callee = (*I)->getFunction(); in getEdgeAttributes()
201 Function *F = Node->getFunction(); in getNodeAttributes()
H A DBlockFrequencyInfo.cpp106 return &G->getFunction()->front(); in getEntryNode()
116 return nodes_iterator(G->getFunction()->begin()); in nodes_begin()
120 return nodes_iterator(G->getFunction()->end()); in nodes_end()
213 return BFI->getBlockProfileCount(*getFunction(), BB, AllowSynthetic); in getBlockProfileCount()
220 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
261 const Function *BlockFrequencyInfo::getFunction() const { in getFunction() function in BlockFrequencyInfo
262 return BFI ? BFI->getFunction() : nullptr; in getFunction()
H A DMLInlineAdvisor.cpp109 Function *F = CGNode->getFunction(); in MLInlineAdvisor()
126 Function *F = CGNode->getFunction(); in MLInlineAdvisor()
133 EdgeCount += getLocalCalls(KVP.first->getFunction()); in MLInlineAdvisor()
165 assert(!N->getFunction().isDeclaration()); in onPassEntry()
169 EdgeCount += getLocalCalls(N->getFunction()); in onPassEntry()
172 assert(!AdjNode->isDead() && !AdjNode->getFunction().isDeclaration()); in onPassEntry()
205 EdgesOfLastSeenNodes += getLocalCalls((*I++)->getFunction()); in onPassExit()
213 EdgesOfLastSeenNodes += getLocalCalls(N.getFunction()); in onPassExit()
H A DCallGraphSCCPass.cpp175 if (Function *F = CGN->getFunction()) { in RunPassOnSCC()
221 Function *F = CGN->getFunction(); in RefreshCallGraph()
275 if (!I->second->getFunction()) in RefreshCallGraph()
329 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
338 ExistingNode->getFunction() == nullptr) in RefreshCallGraph()
351 if (!ExistingNode->getFunction()) { in RefreshCallGraph()
695 if (Function *F = CGN->getFunction()) { in runOnSCC()
733 Function *F = CGN->getFunction(); in getDescription()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsCCState.cpp77 Function *F = G->getGlobal()->getParent()->getFunction(Sym); in getSpecialCallingConvForCallee()
103 originalTypeIsF128(MF.getFunction().getReturnType(), nullptr)); in PreAnalyzeReturnForF128()
105 MF.getFunction().getReturnType()->isFloatingPointTy()); in PreAnalyzeReturnForF128()
184 Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin(); in PreAnalyzeFormalArgumentsForF128()
196 assert(Ins[i].getOrigArgIndex() < MF.getFunction().arg_size()); in PreAnalyzeFormalArgumentsForF128()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DCFGPrinter.h80 const Function *getFunction() const { return this->F; } in getFunction() function
104 return &(CFGInfo->getFunction()->getEntryBlock());
111 return nodes_iterator(CFGInfo->getFunction()->begin());
115 return nodes_iterator(CFGInfo->getFunction()->end());
119 return CFGInfo->getFunction()->size();
198 return "CFG for '" + CFGInfo->getFunction()->getName().str() + "' function";
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp95 Function &F = *Frame->getFunction(); in removeTailCallAttribute()
143 getFirstNonAllocaInTheEntryBlock(CoroIds.front()->getFunction()); in elideHeapAllocations()
284 if (CII->getCoroutine() != CII->getFunction()) in collectPostSplitCoroIds()
345 bool ShouldElide = shouldElide(CoroId->getFunction(), DT); in processCoroId()
356 elideHeapAllocations(CoroId->getFunction(), FrameSizeAndAlign->first, in processCoroId()
364 << CoroId->getFunction()->getName() << "\n"; in processCoroId()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp35 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSPrologue()
50 auto &Ctx = MF.getFunction().getContext(); in emitSCSPrologue()
53 MF.getFunction(), "x18 not reserved by user for Shadow Call Stack."}); in emitSCSPrologue()
60 MF.getFunction(), in emitSCSPrologue()
86 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSEpilogue()
100 auto &Ctx = MF.getFunction().getContext(); in emitSCSEpilogue()
103 MF.getFunction(), "x18 not reserved by user for Shadow Call Stack."}); in emitSCSEpilogue()
110 MF.getFunction(), in emitSCSEpilogue()
412 if (MF.getFunction().getCallingConv() == CallingConv::GHC) in emitPrologue()
464 MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{ in emitPrologue()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLowerWidenableCondition.cpp43 auto *WCDecl = F.getParent()->getFunction( in lowerWidenableCondition()
55 if (CI->getFunction() == &F) in lowerWidenableCondition()
H A DLowerGuardIntrinsic.cpp45 auto *GuardDecl = F.getParent()->getFunction( in lowerGuardIntrinsic()
56 if (CI->getFunction() == &F) in lowerGuardIntrinsic()

12345678910>>...26