Home
last modified time | relevance | path

Searched refs:Fn (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DRealtimeSanitizer.cpp37 static void insertCallBeforeInstruction(Function &Fn, Instruction &Instruction, in insertCallBeforeInstruction() argument
40 LLVMContext &Context = Fn.getContext(); in insertCallBeforeInstruction()
44 Fn.getParent()->getOrInsertFunction(FunctionName, FuncType); in insertCallBeforeInstruction()
49 static void insertCallAtFunctionEntryPoint(Function &Fn, in insertCallAtFunctionEntryPoint() argument
52 insertCallBeforeInstruction(Fn, Fn.front().front(), InsertFnName, in insertCallAtFunctionEntryPoint()
56 static void insertCallAtAllFunctionExitPoints(Function &Fn, in insertCallAtAllFunctionExitPoints() argument
59 for (auto &I : instructions(Fn)) in insertCallAtAllFunctionExitPoints()
61 insertCallBeforeInstruction(Fn, I, InsertFnName, FunctionArgs); in insertCallAtAllFunctionExitPoints()
70 static PreservedAnalyses runSanitizeRealtime(Function &Fn) { in runSanitizeRealtime() argument
71 insertCallAtFunctionEntryPoint(Fn, "__rtsan_realtime_enter", {}); in runSanitizeRealtime()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DTargetRegistry.h585 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local
588 return Fn(Triple(TT), Ctx); in createMCRelocationInfo()
608 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local
610 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer()
772 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo()
773 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo()
785 Target::MCObjectFileInfoCtorFnTy Fn) { in RegisterMCObjectFileInfo()
786 T.MCObjectFileInfoCtorFn = Fn; in RegisterMCObjectFileInfo()
798 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo()
799 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h104 const SmallVectorImpl<ISD::OutputArg> &Outs, CCAssignFn Fn, in PreAnalyzeCallOperands() argument
115 CCAssignFn Fn, in AnalyzeCallOperands() argument
118 PreAnalyzeCallOperands(Outs, Fn, FuncArgs, Func); in AnalyzeCallOperands()
119 CCState::AnalyzeCallOperands(Outs, Fn); in AnalyzeCallOperands()
126 CCAssignFn Fn) = delete;
129 CCAssignFn Fn) = delete;
132 CCAssignFn Fn) { in PreAnalyzeFormalArguments() argument
140 CCAssignFn Fn) { in AnalyzeFormalArguments() argument
141 PreAnalyzeFormalArguments(Ins, Fn); in AnalyzeFormalArguments()
142 CCState::AnalyzeFormalArguments(Ins, Fn); in AnalyzeFormalArguments()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp51 unsigned ComputeBlockSizes(MachineFunction &Fn);
52 void modifyAdjustment(MachineFunction &Fn);
53 int computeBranchSize(MachineFunction &Fn,
58 bool runOnMachineFunction(MachineFunction &Fn) override;
105 static inline unsigned GetInitialOffset(MachineFunction &Fn) { in GetInitialOffset() argument
107 if (Fn.getSubtarget<PPCSubtarget>().isELFv2ABI() && in GetInitialOffset()
108 !Fn.getRegInfo().use_empty(PPC::X2)) in GetInitialOffset()
114 unsigned PPCBSel::ComputeBlockSizes(MachineFunction &Fn) { in ComputeBlockSizes() argument
116 static_cast<const PPCInstrInfo *>(Fn.getSubtarget().getInstrInfo()); in ComputeBlockSizes()
117 unsigned FuncSize = GetInitialOffset(Fn); in ComputeBlockSizes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp441 llvm::Function *Fn = llvm::Function::Create(FTy, Linkage, Name, &getModule()); in CreateGlobalInitOrCleanUpFunction() local
446 Fn->setSection(Section); in CreateGlobalInitOrCleanUpFunction()
450 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); in CreateGlobalInitOrCleanUpFunction()
452 SetLLVMFunctionAttributes(GlobalDecl(), FI, Fn, false); in CreateGlobalInitOrCleanUpFunction()
453 SetLLVMFunctionAttributesForDefinition(nullptr, Fn); in CreateGlobalInitOrCleanUpFunction()
454 getTargetCodeGenInfo().setTargetAttributes(nullptr, Fn, *this); in CreateGlobalInitOrCleanUpFunction()
457 Fn->setCallingConv(getRuntimeCC()); in CreateGlobalInitOrCleanUpFunction()
460 Fn->setDoesNotThrow(); in CreateGlobalInitOrCleanUpFunction()
463 !isInNoSanitizeList(SanitizerKind::Address, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction()
464 Fn->addFnAttr(llvm::Attribute::SanitizeAddress); in CreateGlobalInitOrCleanUpFunction()
[all …]
H A DCodeGenSYCL.cpp20 static void SetSYCLKernelAttributes(llvm::Function *Fn, CodeGenFunction &CGF) { in SetSYCLKernelAttributes() argument
23 Fn->setDoesNotRecurse(); in SetSYCLKernelAttributes()
25 Fn->addFnAttr(llvm::Attribute::MustProgress); in SetSYCLKernelAttributes()
59 auto *Fn = llvm::Function::Create(FnTy, llvm::Function::ExternalLinkage, in EmitSYCLKernelCaller() local
64 SetLLVMFunctionAttributes(GlobalDecl(), FnInfo, Fn, false); in EmitSYCLKernelCaller()
65 SetSYCLKernelAttributes(Fn, CGF); in EmitSYCLKernelCaller()
66 CGF.StartFunction(GlobalDecl(), Ctx.VoidTy, Fn, FnInfo, Args, in EmitSYCLKernelCaller()
69 setDSOLocal(Fn); in EmitSYCLKernelCaller()
70 SetLLVMFunctionAttributesForDefinition(cast<Decl>(OutlinedFnDecl), Fn); in EmitSYCLKernelCaller()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DTaskDispatch.h62 GenericNamedTaskImpl(FnT &&Fn, std::string DescBuffer) in GenericNamedTaskImpl() argument
63 : Fn(std::forward<FnT>(Fn)), Desc(DescBuffer.c_str()), in GenericNamedTaskImpl()
65 GenericNamedTaskImpl(FnT &&Fn, const char *Desc) in GenericNamedTaskImpl() argument
66 : Fn(std::forward<FnT>(Fn)), Desc(Desc) { in GenericNamedTaskImpl()
70 void run() override { Fn(); } in run()
73 FnT Fn;
80 std::unique_ptr<GenericNamedTask> makeGenericNamedTask(FnT &&Fn, in makeGenericNamedTask() argument
82 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn), in makeGenericNamedTask()
89 makeGenericNamedTask(FnT &&Fn, const char *Desc = nullptr) {
92 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn),
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDiagnosticInfo.h355 const Function &Fn, in DiagnosticInfoWithLocationBase() argument
357 : DiagnosticInfo(Kind, Severity), Fn(Fn), Loc(Loc) {} in DiagnosticInfoWithLocationBase()
375 const Function &getFunction() const { return Fn; } in getFunction()
380 const Function &Fn;
396 DiagnosticInfoGenericWithLoc(const Twine &MsgStr, const Function &Fn,
399 : DiagnosticInfoWithLocationBase(DK_GenericWithLoc, Severity, Fn, Loc), in DiagnosticInfoWithLocationBase() argument
422 DiagnosticInfoRegAllocFailure(const Twine &MsgStr, const Function &Fn,
426 DiagnosticInfoRegAllocFailure(const Twine &MsgStr, const Function &Fn,
445 const Function &Fn;
459 DiagnosticInfoResourceLimit(const Function &Fn, const char *ResourceName,
[all …]
/freebsd/contrib/openpam/doc/man/
H A Dpam.man34 .Fn pam_start
42 .Fn pam_end
47 .Fn pam_set_item
49 .Fn pam_get_item
55 .Fn pam_set_data
57 .Fn pam_get_data
62 .Fn pam_authenticate
64 .Fn pam_setcred .
69 .Fn pam_acct_mgmt
74 .Fn pam_open_session
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCallingConvLower.cpp86 CCAssignFn Fn) { in AnalyzeFormalArguments() argument
92 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) in AnalyzeFormalArguments()
100 CCAssignFn Fn) { in CheckReturn() argument
105 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in CheckReturn()
114 CCAssignFn Fn) { in AnalyzeReturn() argument
119 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in AnalyzeReturn()
127 CCAssignFn Fn) { in AnalyzeCallOperands() argument
132 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) { in AnalyzeCallOperands()
145 CCAssignFn Fn) { in AnalyzeCallOperands() argument
150 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) { in AnalyzeCallOperands()
[all …]
H A DPostRAHazardRecognizer.cpp59 bool runOnMachineFunction(MachineFunction &Fn) override { in runOnMachineFunction() argument
60 return PostRAHazardRecognizer().run(Fn); in runOnMachineFunction()
83 bool PostRAHazardRecognizer::run(MachineFunction &Fn) { in run() argument
84 const TargetInstrInfo *TII = Fn.getSubtarget().getInstrInfo(); in run()
86 TII->CreateTargetPostRAHazardRecognizer(Fn)); in run()
94 for (auto &MBB : Fn) { in run()
H A DCallBrPrepare.cpp62 static SmallVector<CallBrInst *, 2> FindCallBrs(Function &Fn);
70 bool runOnFunction(Function &Fn) override;
76 PreservedAnalyses CallBrPreparePass::run(Function &Fn, in run() argument
79 SmallVector<CallBrInst *, 2> CBRs = FindCallBrs(Fn); in run()
84 auto &DT = FAM.getResult<DominatorTreeAnalysis>(Fn); in run()
109 SmallVector<CallBrInst *, 2> FindCallBrs(Function &Fn) { in FindCallBrs() argument
111 for (BasicBlock &BB : Fn) in FindCallBrs()
222 bool CallBrPrepare::runOnFunction(Function &Fn) { in runOnFunction() argument
224 SmallVector<CallBrInst *, 2> CBRs = FindCallBrs(Fn); in runOnFunction()
241 LazilyComputedDomTree.emplace(Fn); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSpeculation.cpp82 for (auto &Fn : M.getFunctionList()) { in emit() local
83 if (!Fn.isDeclaration()) { in emit()
85 auto IRNames = QueryAnalysis(Fn); in emit()
94 "__orc_speculate.guard.for." + Fn.getName()); in emit()
98 BasicBlock &ProgramEntry = Fn.getEntryBlock(); in emit()
101 MContext, "__orc_speculate.block", &Fn, &ProgramEntry); in emit()
103 MContext, "__orc_speculate.decision.block", &Fn, SpeculateBlock); in emit()
105 assert(SpeculateDecisionBlock == &Fn.getEntryBlock() && in emit()
119 Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext)); in emit()
126 assert(Mutator.GetInsertBlock()->getParent() == &Fn && in emit()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp81 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect() local
82 if (!Fn || (Fn->getIntrinsicID() != Intrinsic::expect && in handleSwitchExpect()
83 Fn->getIntrinsicID() != Intrinsic::expect_with_probability)) in handleSwitchExpect()
95 getBranchWeight(Fn->getIntrinsicID(), CI, n + 1); in handleSwitchExpect()
123 Function *Fn = Expect->getCalledFunction(); in handlePhiDef() local
128 if (Fn->getIntrinsicID() == Intrinsic::expect_with_probability) { in handlePhiDef()
316 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect() local
317 if (!Fn || (Fn->getIntrinsicID() != Intrinsic::expect && in handleBrSelExpect()
318 Fn->getIntrinsicID() != Intrinsic::expect_with_probability)) in handleBrSelExpect()
331 getBranchWeight(Fn->getIntrinsicID(), CI, 2); in handleBrSelExpect()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSplitModule.cpp196 for (auto &Fn : M) { in calculateFunctionCosts() local
197 if (Fn.isDeclaration()) in calculateFunctionCosts()
201 const auto &TTI = GetTTI(Fn); in calculateFunctionCosts()
202 for (const auto &BB : Fn) { in calculateFunctionCosts()
218 CostMap[&Fn] = FnCost; in calculateFunctionCosts()
222 if (AMDGPU::isEntryFunctionCC(Fn.getCallingConv())) in calculateFunctionCosts()
381 if (auto *Fn = dyn_cast<Function>(&GV)) in Node() local
382 IsEntryFnCC = AMDGPU::isEntryFunctionCC(Fn->getCallingConv()); in Node()
519 for (const Function &Fn : M) { in buildGraph() local
520 if (Fn.isDeclaration()) in buildGraph()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStack.h39 llvm::function_ref<void()> Fn);
44 llvm::function_ref<void()> Fn) { in runWithSufficientStackSpace() argument
47 runWithSufficientStackSpaceSlow(Diag, Fn); in runWithSufficientStackSpace()
49 Fn(); in runWithSufficientStackSpace()
53 Fn(); in runWithSufficientStackSpace()
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h232 template<typename Fn> void visit(Fn F) const;
373 template<typename Fn> void match(Fn F) const { F(Array); } in match()
386 template<typename Fn> void match(Fn F) const { F(Prefix, Suffix); } in match()
409 template <typename Fn> void match(Fn F) const { F(Ty, Ext, TA); } in match()
460 template<typename Fn> void match(Fn F) const { F(Child, Quals); } in match()
487 template<typename Fn> void match(Fn F) const { F(Ty); } in match()
503 template<typename Fn> void match(Fn F) const { F(Ty, Postfix); } in match()
517 template<typename Fn> void match(Fn F) const { F(Name); } in match()
533 template <typename Fn> void match(Fn F) const { F(Size, Signed); } in match()
552 template<typename Fn> void match(Fn F) const { F(Kind, Child); } in match()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorPrint.cpp58 bool runOnMachineFunction(MachineFunction &Fn) override;
91 MachineFunction &Fn) { in addAsmInstr() argument
93 const char *cstr = Fn.createExternalSymbolName(VDescStr); in addAsmInstr()
123 bool HexagonVectorPrint::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument
125 QST = &Fn.getSubtarget<HexagonSubtarget>(); in runOnMachineFunction()
129 for (auto &MBB : Fn) in runOnMachineFunction()
177 addAsmInstr(MBB, Reg, MII, DL, QII, Fn); in runOnMachineFunction()
181 MII, DL, QII, Fn); in runOnMachineFunction()
183 MII, DL, QII, Fn); in runOnMachineFunction()
186 addAsmInstr(MBB, Reg, MII, DL, QII, Fn); in runOnMachineFunction()
H A DHexagonCopyHoisting.cpp51 bool runOnMachineFunction(MachineFunction &Fn) override;
73 bool HexagonCopyHoisting::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument
75 if ((CPHoistFn != "") && (CPHoistFn != Fn.getFunction().getName())) in runOnMachineFunction()
78 MFN = &Fn; in runOnMachineFunction()
79 MRI = &Fn.getRegInfo(); in runOnMachineFunction()
81 LLVM_DEBUG(dbgs() << "\nCopy Hoisting:" << "\'" << Fn.getName() << "\'\n"); in runOnMachineFunction()
84 CopyMIList.resize(Fn.getNumBlockIDs()); in runOnMachineFunction()
92 for (MachineBasicBlock *BB : post_order(&Fn)) { in runOnMachineFunction()
105 SI->reanalyze(Fn); in runOnMachineFunction()
106 LIS.reanalyze(Fn); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DCrashRecoveryContext.cpp227 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() argument
229 Fn(); in RunSafely()
235 Fn(); in RunSafely()
413 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() argument
426 Fn(); in RunSafely()
496 function_ref<void()> Fn; member
510 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
512 bool CrashRecoveryContext::RunSafelyOnThread(function_ref<void()> Fn, in RunSafelyOnThread() argument
515 RunSafelyOnThreadInfo Info = { Fn, this, UseBackgroundPriority, false }; in RunSafelyOnThread()
527 bool CrashRecoveryContext::RunSafelyOnNewStack(function_ref<void()> Fn, in RunSafelyOnNewStack() argument
[all …]
H A DProgramStack.cpp60 void runOnNewStackImpl(void *Stack, void (*Fn)(void *), void *Ctx) __asm__(
104 void llvm::runOnNewStack(unsigned StackSize, function_ref<void()> Fn) { in runOnNewStack() argument
117 runOnNewStackImpl(BottomOfStack, callback, &Fn); in runOnNewStack()
122 void llvm::runOnNewStack(unsigned StackSize, function_ref<void()> Fn) { in runOnNewStack() argument
124 StackSize == 0 ? std::nullopt : std::optional<unsigned>(StackSize), Fn); in runOnNewStack()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DPredicateExpander.cpp418 const STIPredicateFunction &Fn) { in expandHeader() argument
419 const Record *Rec = Fn.getDeclaration(); in expandHeader()
444 const STIPredicateFunction &Fn) { in expandPrologue() argument
446 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandPrologue()
450 Fn.getDeclaration()->getValueAsListOfDefs("Delegates")) { in expandPrologue()
505 const STIPredicateFunction &Fn) { in expandBody() argument
507 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandBody()
513 for (const OpcodeGroup &Group : Fn.getGroups()) { in expandBody()
532 const STIPredicateFunction &Fn) { in expandEpilogue() argument
535 expandPredicate(OS, Fn.getDefaultReturnPredicate()); in expandEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DProgramStack.h46 LLVM_ABI void runOnNewStack(unsigned StackSize, function_ref<void()> Fn);
50 runOnNewStack(unsigned StackSize, function_ref<R(Ts...)> Fn, Ts &&...Args) { in runOnNewStack() argument
52 runOnNewStack(StackSize, [&]() { Ret = Fn(std::forward<Ts>(Args)...); }); in runOnNewStack()
57 void runOnNewStack(unsigned StackSize, function_ref<void(Ts...)> Fn, in runOnNewStack() argument
59 runOnNewStack(StackSize, [&]() { Fn(std::forward<Ts>(Args)...); }); in runOnNewStack()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCUtil.h60 if (std::optional<Function *> Fn = getAttachedARCFunction(CB)) in attachedCallOpBundleNeedsMarker() local
61 if ((*Fn)->getName() == "objc_claimAutoreleasedReturnValue") in attachedCallOpBundleNeedsMarker()
76 std::optional<Function *> Fn = getAttachedARCFunction(CB); in getAttachedARCFunctionKind() local
77 if (!Fn) in getAttachedARCFunctionKind()
79 auto FnClass = GetFunctionClass(*Fn); in getAttachedARCFunctionKind()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCompactUnwindSupport.h135 auto &Fn = PCBeginEdge->getTarget(); in prepareForPrune() local
137 if (!Fn.isDefined()) { in prepareForPrune()
141 << Fn.getName() << "\n"; in prepareForPrune()
151 if (Fn.hasName()) in prepareForPrune()
152 dbgs() << Fn.getName(); in prepareForPrune()
154 dbgs() << "<anon @ " << Fn.getAddress() << '>'; in prepareForPrune()
167 for (auto &E : Fn.getBlock().edges_at(0)) { in prepareForPrune()
207 Fn.getBlock().addEdge(Edge::KeepAlive, 0, CURecSym, 0); in prepareForPrune()
268 B.addEdge(Edge::KeepAlive, 0, *R.Fn, 0); in processAndReserveUnwindInfo()
369 Symbol *Fn = nullptr; member
[all …]

12345678910>>...18