Home
last modified time | relevance | path

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

12345678910>>...22

/netbsd-src/external/apache2/llvm/dist/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()
91 isSafeForNoCSROpt(MF.getFunction()) && in determineCalleeSaves()
92 isProfitableForNoCSROpt(MF.getFunction())) in determineCalleeSaves()
103 if (MF.getFunction().hasFnAttribute(Attribute::Naked)) in determineCalleeSaves()
113 if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in determineCalleeSaves()
114 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in determineCalleeSaves()
115 !MF.getFunction().hasFnAttribute(Attribute::UWTable) && in determineCalleeSaves()
133 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 DMachineFunctionSplitter.cpp97 if (!MF.getFunction().hasProfileData()) in runOnMachineFunction()
104 if (MF.getFunction().hasSection() || in runOnMachineFunction()
105 MF.getFunction().hasFnAttribute("implicit-section-name")) in runOnMachineFunction()
110 Optional<StringRef> SectionPrefix = MF.getFunction().getSectionPrefix(); in runOnMachineFunction()
H A DPatchableFunction.cpp58 if (MF.getFunction().hasFnAttribute("patchable-function-entry")) { in runOnMachineFunction()
67 if (!MF.getFunction().hasFnAttribute("patchable-function")) in runOnMachineFunction()
71 Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function"); in runOnMachineFunction()
H A DShrinkWrap.cpp459 if (skipFunction(MF.getFunction()) || MF.empty() || !isShrinkWrapEnabled(MF)) in runOnMachineFunction()
476 MF.getFunction().getSubprogram(), &MF.front()); in runOnMachineFunction()
598 !(MF.getFunction().hasFnAttribute(Attribute::SanitizeAddress) || in isShrinkWrapEnabled()
599 MF.getFunction().hasFnAttribute(Attribute::SanitizeThread) || in isShrinkWrapEnabled()
600 MF.getFunction().hasFnAttribute(Attribute::SanitizeMemory) || in isShrinkWrapEnabled()
601 MF.getFunction().hasFnAttribute(Attribute::SanitizeHWAddress)); in isShrinkWrapEnabled()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp67 const Function &F = MF->getFunction(); in hasSVEArgsOrReturn()
78 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs()
82 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs()
90 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs()
94 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall) in getCalleeSavedRegs()
96 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_SVE_VectorCall) in getCalleeSavedRegs()
100 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
103 if (MF->getFunction().getCallingConv() == CallingConv::SwiftTail) in getCalleeSavedRegs()
105 if (MF->getFunction().getCallingConv() == CallingConv::PreserveMost) in getCalleeSavedRegs()
107 if (MF->getFunction().getCallingConv() == CallingConv::Win64) in getCalleeSavedRegs()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineOptimizationRemarkEmitter.h35 MBB->getParent()->getFunction(), Loc), in DiagnosticInfoMIROptimization()
75 const Function &Fn = getFunction(); in isEnabled()
101 const Function &Fn = getFunction(); in isEnabled()
127 const Function &Fn = getFunction(); in isEnabled()
162 MF.getFunction().getContext().getLLVMRemarkStreamer() || in allowExtraAnalysis()
163 MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled( in allowExtraAnalysis()
175 if (MF.getFunction().getContext().getLLVMRemarkStreamer() ||
176 MF.getFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsmPrinter.cpp194 const Function &F = MF->getFunction(); in emitFunctionBodyStart()
262 getNameWithPrefix(KernelName, &MF->getFunction()); in emitFunctionBodyEnd()
284 if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) { in emitFunctionEntryLabel()
286 getNameWithPrefix(SymbolName, &MF->getFunction()), in emitFunctionEntryLabel()
427 const Function &F = MF.getFunction(); in getAmdhsaKernelDescriptor()
478 std::make_pair(&MF.getFunction(), SIFunctionResourceInfo())); in runOnMachineFunction()
518 SIFunctionResourceInfo &Info = CallGraphResourceInfo[&MF.getFunction()]; in runOnMachineFunction()
1088 DiagnosticInfoStackSize DiagStackSize(MF.getFunction(), in getSIProgramInfo()
1090 MF.getFunction().getContext().diagnose(DiagStackSize); in getSIProgramInfo()
1107 LLVMContext &Ctx = MF.getFunction().getContext(); in getSIProgramInfo()
[all …]
H A DAMDGPUMachineFunction.cpp18 : MachineFunctionInfo(), Mode(MF.getFunction()), in AMDGPUMachineFunction()
20 AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())), in AMDGPUMachineFunction()
22 AMDGPU::isModuleEntryFunctionCC(MF.getFunction().getCallingConv())), in AMDGPUMachineFunction()
28 const Function &F = MF.getFunction(); in AMDGPUMachineFunction()
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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCallPrinter.cpp70 Callers.insert(cast<Instruction>(U)->getFunction()); in CallGraphDOTInfo()
99 if (!(Visited.insert(CI->second->getFunction())).second) { in removeParallelEdges()
148 if (CallMultiGraph || Node->getFunction()) in isNodeHidden()
160 if (Function *Func = Node->getFunction()) in getNodeLabel()
178 Function *Caller = Node->getFunction(); in getEdgeAttributes()
182 Function *Callee = (*I)->getFunction(); in getEdgeAttributes()
196 Function *F = Node->getFunction(); in getNodeAttributes()
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 DBlockFrequencyInfo.cpp107 return &G->getFunction()->front(); in getEntryNode()
117 return nodes_iterator(G->getFunction()->begin()); in nodes_begin()
121 return nodes_iterator(G->getFunction()->end()); in nodes_end()
214 return BFI->getBlockProfileCount(*getFunction(), BB, AllowSynthetic); in getBlockProfileCount()
221 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
262 const Function *BlockFrequencyInfo::getFunction() const { in getFunction() function in BlockFrequencyInfo
263 return BFI ? BFI->getFunction() : nullptr; in getFunction()
H A DCallGraph.cpp92 Function *F = Node->getFunction(); in populateCallGraphNode()
131 if (Function *LF = LHS->getFunction()) in print()
132 if (Function *RF = RHS->getFunction()) in print()
135 return RHS->getFunction() != nullptr; in print()
165 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule()
190 if (Function *F = getFunction()) in print()
199 if (Function *FI = I.second->getFunction()) in print()
H A DCallGraphSCCPass.cpp176 if (Function *F = CGN->getFunction()) { in RunPassOnSCC()
222 Function *F = CGN->getFunction(); in RefreshCallGraph()
284 if (!I->second->getFunction()) in RefreshCallGraph()
338 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
347 ExistingNode->getFunction() == nullptr) in RefreshCallGraph()
360 if (!ExistingNode->getFunction()) { in RefreshCallGraph()
704 if (Function *F = CGN->getFunction()) { in runOnSCC()
742 Function *F = CGN->getFunction(); in getDescription()
H A DGlobalsModRef.cpp380 isFreeCall(I, &GetTLI(*Call->getFunction()))) { in AnalyzeUsesOfPointer()
441 if (!isAllocLikeFn(Ptr, &GetTLI(*SI->getFunction()))) in AnalyzeIndirectGlobalMemory()
481 if (Function *F = CGN->getFunction()) in CollectSCCMembership()
498 Function *F = SCC[0]->getFunction(); in AnalyzeCallGraph()
505 FunctionInfos.erase(Node->getFunction()); in AnalyzeCallGraph()
546 if (Function *Callee = CI->second->getFunction()) { in AnalyzeCallGraph()
566 FunctionInfos.erase(Node->getFunction()); in AnalyzeCallGraph()
578 if (Node->getFunction()->hasOptNone()) in AnalyzeCallGraph()
581 for (Instruction &I : instructions(Node->getFunction())) { in AnalyzeCallGraph()
588 auto &TLI = GetTLI(*Node->getFunction()); in AnalyzeCallGraph()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
151 Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin(); in PreAnalyzeFormalArgumentsForF128()
163 assert(Ins[i].getOrigArgIndex() < MF.getFunction().arg_size()); in PreAnalyzeFormalArgumentsForF128()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/
H A DAVRMachineFunctionInfo.h56 unsigned CallConv = MF.getFunction().getCallingConv(); in AVRMachineFunctionInfo()
58 …this->IsInterruptHandler = CallConv == CallingConv::AVR_INTR || MF.getFunction().hasFnAttribute("i… in AVRMachineFunctionInfo()
59 …this->IsSignalHandler = CallConv == CallingConv::AVR_SIGNAL || MF.getFunction().hasFnAttribute("si… in AVRMachineFunctionInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DCFGPrinter.h79 const Function *getFunction() { return this->F; } in getFunction() function
103 return &(CFGInfo->getFunction()->getEntryBlock());
110 return nodes_iterator(CFGInfo->getFunction()->begin());
114 return nodes_iterator(CFGInfo->getFunction()->end());
118 return CFGInfo->getFunction()->size();
131 return "CFG for '" + CFGInfo->getFunction()->getName().str() + "' function";
H A DLazyCallGraph.h163 Function &getFunction() const;
324 Function &getFunction() const { return *F; } in getFunction() function
1105 if (Visited.count(BA->getFunction())) in visitReferences()
1112 return I->getFunction() == BA->getFunction(); in visitReferences()
1118 Visited.insert(BA->getFunction()); in visitReferences()
1119 Worklist.push_back(BA->getFunction()); in visitReferences()
1251 inline Function &LazyCallGraph::Edge::getFunction() const { in getFunction() function
1253 return getNode().getFunction(); in getFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp31 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSPrologue()
46 auto &Ctx = MF.getFunction().getContext(); in emitSCSPrologue()
49 MF.getFunction(), "x18 not reserved by user for Shadow Call Stack."}); in emitSCSPrologue()
56 MF.getFunction(), in emitSCSPrologue()
80 if (!MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) in emitSCSEpilogue()
94 auto &Ctx = MF.getFunction().getContext(); in emitSCSEpilogue()
97 MF.getFunction(), "x18 not reserved by user for Shadow Call Stack."}); in emitSCSEpilogue()
104 MF.getFunction(), in emitSCSEpilogue()
348 if (MF.getFunction().getCallingConv() == CallingConv::GHC) in emitPrologue()
400 MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{ in emitPrologue()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp72 bool IsVarArg = MF.getFunction().isVarArg(); in assignCalleeSavedSpillSlots()
142 bool IsVarArg = MF.getFunction().isVarArg(); in determineCalleeSaves()
208 bool IsVarArg = MF.getFunction().isVarArg(); in spillCalleeSavedRegisters()
321 bool BackChain = MF.getFunction().hasFnAttribute("backchain"); in processFunctionBeforeFrameFinalized()
431 if (MF.getFunction().getCallingConv() == CallingConv::GHC) { in emitPrologue()
506 bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain"); in emitPrologue()
585 if (MF.getFunction().getCallingConv() == CallingConv::GHC) in emitEpilogue()
664 bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain"); in inlineStackProbe()
766 bool IsVarArg = MF.getFunction().isVarArg(); in getRegSpillOffset()
767 bool BackChain = MF.getFunction().hasFnAttribute("backchain"); in getRegSpillOffset()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DDiagnosticInfo.cpp78 DP << " exceeded (" << getResourceSize() << ") in " << getFunction(); in print()
274 const Function &Fn = getFunction(); in isEnabled()
302 const Function &Fn = getFunction(); in isEnabled()
337 const Function &Fn = getFunction(); in isEnabled()
367 OS << getLocationStr() << ": in function " << getFunction().getName() << ' ' in print()
368 << *getFunction().getFunctionType() << ": " << Msg << '\n'; in print()
374 DP << "Instruction selection used fallback path for " << getFunction(); in print()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMMachineFunctionInfo.cpp19 IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")), in ARMFunctionInfo()
20 IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {} in ARMFunctionInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp87 Function &F = *Frame->getFunction(); in removeTailCallAttribute()
128 getFirstNonAllocaInTheEntryBlock(CoroIds.front()->getFunction()); in elideHeapAllocations()
269 if (CII->getCoroutine() != CII->getFunction()) in collectPostSplitCoroIds()
333 bool ShouldElide = shouldElide(CoroId->getFunction(), DT); in processCoroId()
344 elideHeapAllocations(CoroId->getFunction(), FrameSizeAndAlign.first, in processCoroId()
365 Function *DevirtFn = M.getFunction(CORO_DEVIRT_TRIGGER_FN); in replaceDevirtTrigger()

12345678910>>...22