/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUSplitModule.cpp | 229 for (auto &Fn : M) { in calculateFunctionCosts() local 230 if (Fn.isDeclaration()) in calculateFunctionCosts() 234 const auto &TTI = GetTTI(Fn); in calculateFunctionCosts() 235 for (const auto &BB : Fn) { in calculateFunctionCosts() 250 CostMap[&Fn] = FnCost; in calculateFunctionCosts() 254 if (isEntryPoint(&Fn)) in calculateFunctionCosts() 292 for (const auto &Fn : M) { in addAllIndirectCallDependencies() local 293 if (canBeIndirectlyCalled(Fn)) in addAllIndirectCallDependencies() 294 Fns.insert(&Fn); in addAllIndirectCallDependencies() 311 const Function &Fn, in addAllDependencies() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | TargetRegistry.h | 578 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local 581 return Fn(Triple(TT), Ctx); in createMCRelocationInfo() 601 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local 603 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer() 753 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo() 754 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo() 766 Target::MCObjectFileInfoCtorFnTy Fn) { in RegisterMCObjectFileInfo() 767 T.MCObjectFileInfoCtorFn = Fn; in RegisterMCObjectFileInfo() 779 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo() 780 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | TLSVariableHoist.cpp | 58 bool runOnFunction(Function &Fn) override; 88 bool TLSVariableHoistLegacyPass::runOnFunction(Function &Fn) { 89 if (skipFunction(Fn)) in runOnFunction() argument 93 LLVM_DEBUG(dbgs() << "********** Function: " << Fn.getName() << '\n'); in runOnFunction() 96 Impl.runImpl(Fn, getAnalysis<DominatorTreeWrapperPass>().getDomTree(), in runOnFunction() 101 << Fn.getName() << '\n'); in runOnFunction() 102 LLVM_DEBUG(dbgs() << Fn); in runOnFunction() 125 void TLSVariableHoistPass::collectTLSCandidates(Function &Fn) { 127 Module *M = Fn.getParent(); in collectTLSCandidates() 139 for (BasicBlock &BB : Fn) { in collectTLSCandidates() 126 collectTLSCandidates(Function & Fn) collectTLSCandidates() argument 193 findInsertPos(Function & Fn,GlobalVariable * GV,BasicBlock * & PosBB) findInsertPos() argument 219 genBitCastInst(Function & Fn,GlobalVariable * GV) genBitCastInst() argument 229 tryReplaceTLSCandidate(Function & Fn,GlobalVariable * GV) tryReplaceTLSCandidate() argument 248 tryReplaceTLSCandidates(Function & Fn) tryReplaceTLSCandidates() argument 262 runImpl(Function & Fn,DominatorTree & DT,LoopInfo & LI) runImpl() argument [all...] |
H A D | LowerExpectIntrinsic.cpp | 81 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/Mips/ |
H A D | MipsCCState.h | 104 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/clang/lib/CodeGen/ |
H A D | CGDeclCXX.cpp | 446 llvm::Function *Fn = llvm::Function::Create(FTy, Linkage, Name, &getModule()); in CreateGlobalInitOrCleanUpFunction() local 451 Fn->setSection(Section); in CreateGlobalInitOrCleanUpFunction() 455 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); 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() 467 !isInNoSanitizeList(SanitizerKind::KernelAddress, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction() 468 Fn->addFnAttr(llvm::Attribute::SanitizeAddress); in CreateGlobalInitOrCleanUpFunction() 471 !isInNoSanitizeList(SanitizerKind::HWAddress, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCBranchSelector.cpp | 54 unsigned ComputeBlockSizes(MachineFunction &Fn); 55 void modifyAdjustment(MachineFunction &Fn); 56 int computeBranchSize(MachineFunction &Fn, 61 bool runOnMachineFunction(MachineFunction &Fn) override; 109 static inline unsigned GetInitialOffset(MachineFunction &Fn) { in GetInitialOffset() argument 111 if (Fn.getSubtarget<PPCSubtarget>().isELFv2ABI() && in GetInitialOffset() 112 !Fn.getRegInfo().use_empty(PPC::X2)) in GetInitialOffset() 118 unsigned PPCBSel::ComputeBlockSizes(MachineFunction &Fn) { in ComputeBlockSizes() argument 120 static_cast<const PPCInstrInfo *>(Fn.getSubtarget().getInstrInfo()); in ComputeBlockSizes() 121 unsigned FuncSize = GetInitialOffset(Fn); in ComputeBlockSizes() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | TaskDispatch.h | 61 GenericNamedTaskImpl(FnT &&Fn, std::string DescBuffer) in GenericNamedTaskImpl() argument 62 : Fn(std::forward<FnT>(Fn)), Desc(DescBuffer.c_str()), in GenericNamedTaskImpl() 64 GenericNamedTaskImpl(FnT &&Fn, const char *Desc) in GenericNamedTaskImpl() argument 65 : Fn(std::forward<FnT>(Fn)), Desc(Desc) { in GenericNamedTaskImpl() 69 void run() override { Fn(); } in run() 72 FnT Fn; 79 std::unique_ptr<GenericNamedTask> makeGenericNamedTask(FnT &&Fn, in makeGenericNamedTask() argument 81 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn), in makeGenericNamedTask() 88 makeGenericNamedTask(FnT &&Fn, const char *Desc = nullptr) { 91 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn),
|
/freebsd/contrib/openpam/doc/man/ |
H A D | pam.man | 34 .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/include/llvm/IR/ |
H A D | DiagnosticInfo.h | 325 const Function &Fn, in DiagnosticInfoWithLocationBase() argument 327 : DiagnosticInfo(Kind, Severity), Fn(Fn), Loc(Loc) {} in DiagnosticInfoWithLocationBase() 345 const Function &getFunction() const { return Fn; } in getFunction() 350 const Function &Fn; 361 const Function &Fn; 375 DiagnosticInfoResourceLimit(const Function &Fn, const char *ResourceName, 380 const Function &getFunction() const { return Fn; } in getFunction() 397 DiagnosticInfoStackSize(const Function &Fn, uint64_t StackSize, 400 : DiagnosticInfoResourceLimit(Fn, "stack frame size", StackSize, 459 const Function &Fn, in DiagnosticInfoOptimizationBase() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CallingConvLower.cpp | 86 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 D | CallBrPrepare.cpp | 62 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()
|
H A D | WinEHPrepare.cpp | 68 bool runOnFunction(Function &Fn); 110 bool runOnFunction(Function &Fn) override { in runOnFunction() argument 111 return WinEHPrepareImpl(DemoteCatchSwitchPHIOnly).runOnFunction(Fn); in runOnFunction() 131 bool WinEHPrepareImpl::runOnFunction(Function &Fn) { in runOnFunction() argument 132 if (!Fn.hasPersonalityFn()) in runOnFunction() 136 Personality = classifyEHPersonality(Fn.getPersonalityFn()); in runOnFunction() 142 DL = &Fn.getDataLayout(); in runOnFunction() 143 return prepareExplicitEH(Fn); in runOnFunction() 189 static void calculateStateNumbersForInvokes(const Function *Fn, in calculateStateNumbersForInvokes() argument 191 auto *F = const_cast<Function *>(Fn); in calculateStateNumbersForInvokes() [all …]
|
H A D | PostRAHazardRecognizer.cpp | 54 bool runOnMachineFunction(MachineFunction &Fn) override; 66 bool PostRAHazardRecognizer::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument 67 const TargetInstrInfo *TII = Fn.getSubtarget().getInstrInfo(); in runOnMachineFunction() 69 TII->CreateTargetPostRAHazardRecognizer(Fn)); in runOnMachineFunction() 77 for (auto &MBB : Fn) { in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | Speculation.cpp | 82 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() [all...] |
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Stack.h | 36 llvm::function_ref<void()> Fn); 41 llvm::function_ref<void()> Fn) { in runWithSufficientStackSpace() argument 44 runWithSufficientStackSpaceSlow(Diag, Fn); in runWithSufficientStackSpace() 46 Fn(); in runWithSufficientStackSpace() 50 Fn(); in runWithSufficientStackSpace()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorPrint.cpp | 66 bool runOnMachineFunction(MachineFunction &Fn) override; 99 MachineFunction &Fn) { in addAsmInstr() argument 101 const char *cstr = Fn.createExternalSymbolName(VDescStr); in addAsmInstr() 131 bool HexagonVectorPrint::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument 133 QST = &Fn.getSubtarget<HexagonSubtarget>(); in runOnMachineFunction() 137 for (auto &MBB : Fn) in runOnMachineFunction() 185 addAsmInstr(MBB, Reg, MII, DL, QII, Fn); in runOnMachineFunction() 189 MII, DL, QII, Fn); in runOnMachineFunction() 191 MII, DL, QII, Fn); in runOnMachineFunction() 194 addAsmInstr(MBB, Reg, MII, DL, QII, Fn); in runOnMachineFunction()
|
H A D | HexagonCopyHoisting.cpp | 58 bool runOnMachineFunction(MachineFunction &Fn) override; 80 bool HexagonCopyHoisting::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument 82 if ((CPHoistFn != "") && (CPHoistFn != Fn.getFunction().getName())) in runOnMachineFunction() 85 MFN = &Fn; in runOnMachineFunction() 86 MRI = &Fn.getRegInfo(); in runOnMachineFunction() 88 LLVM_DEBUG(dbgs() << "\nCopy Hoisting:" << "\'" << Fn.getName() << "\'\n"); in runOnMachineFunction() 91 CopyMIList.resize(Fn.getNumBlockIDs()); in runOnMachineFunction() 99 for (MachineBasicBlock *BB : post_order(&Fn)) { in runOnMachineFunction() 112 SI->reanalyze(Fn); in runOnMachineFunction() 113 LIS.reanalyze(Fn); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | ItaniumDemangle.h | 228 template<typename Fn> void visit(Fn F) const; 346 template<typename Fn> void match(Fn F) const { F(Array); } in match() 359 template<typename Fn> void match(Fn F) const { F(Prefix, Suffix); } in match() 382 template <typename Fn> void match(Fn F) const { F(Ty, Ext, TA); } in match() 433 template<typename Fn> void match(Fn F) const { F(Child, Quals); } in match() 460 template<typename Fn> void match(Fn F) const { F(Ty); } in match() 476 template<typename Fn> void match(Fn F) const { F(Ty, Postfix); } in match() 490 template<typename Fn> void match(Fn F) const { F(Name); } in match() 506 template <typename Fn> void match(Fn F) const { F(Size, Signed); } in match() 525 template<typename Fn> void match(Fn F) const { F(Kind, Child); } in match() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | CallingConvLower.h | 263 CCAssignFn Fn); 267 CCAssignFn Fn) { in AnalyzeArguments() argument 268 AnalyzeFormalArguments(Ins, Fn); in AnalyzeArguments() 274 CCAssignFn Fn); 280 CCAssignFn Fn); 285 CCAssignFn Fn); 291 CCAssignFn Fn); 295 CCAssignFn Fn) { in AnalyzeArguments() argument 296 AnalyzeCallOperands(Outs, Fn); in AnalyzeArguments() 302 CCAssignFn Fn); 517 AnalyzeArgumentsSecondPass(const SmallVectorImpl<T> & Args,CCAssignFn Fn) AnalyzeArgumentsSecondPass() argument [all...] |
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | PredicateExpander.cpp | 436 const STIPredicateFunction &Fn) { in expandHeader() argument 437 const Record *Rec = Fn.getDeclaration(); in expandHeader() 463 const STIPredicateFunction &Fn) { in expandPrologue() argument 464 RecVec Delegates = Fn.getDeclaration()->getValueAsListOfDefs("Delegates"); in expandPrologue() 466 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandPrologue() 530 const STIPredicateFunction &Fn) { in expandBody() argument 532 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandBody() 542 for (const OpcodeGroup &Group : Fn.getGroups()) { in expandBody() 563 const STIPredicateFunction &Fn) { in expandEpilogue() argument 567 expandPredicate(OS, Fn.getDefaultReturnPredicate()); in expandEpilogue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Analysis.cpp | 88 LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action) { in LLVMVerifyFunction() argument 90 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() in LLVMVerifyFunction() 99 void LLVMViewFunctionCFG(LLVMValueRef Fn) { in LLVMViewFunctionCFG() argument 100 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFG() 104 void LLVMViewFunctionCFGOnly(LLVMValueRef Fn) { in LLVMViewFunctionCFGOnly() argument 105 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFGOnly()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | WebAssembly.cpp | 62 llvm::Function *Fn = cast<llvm::Function>(GV); in setTargetAttributes() local 65 Fn->addFnAttrs(B); in setTargetAttributes() 68 llvm::Function *Fn = cast<llvm::Function>(GV); in setTargetAttributes() local 71 Fn->addFnAttrs(B); in setTargetAttributes() 74 llvm::Function *Fn = cast<llvm::Function>(GV); in setTargetAttributes() local 77 Fn->addFnAttrs(B); in setTargetAttributes() 82 llvm::Function *Fn = cast<llvm::Function>(GV); in setTargetAttributes() local 84 Fn->addFnAttr("no-prototype"); in setTargetAttributes()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVPushPopOptimizer.cpp | 36 bool runOnMachineFunction(MachineFunction &Fn) override; 117 bool RISCVPushPopOpt::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument 118 if (skipFunction(Fn.getFunction())) in runOnMachineFunction() 122 const RISCVSubtarget *Subtarget = &Fn.getSubtarget<RISCVSubtarget>(); in runOnMachineFunction() 128 if (Fn.getTarget().Options.DisableFramePointerElim(Fn)) in runOnMachineFunction() 139 for (auto &MBB : Fn) { in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | TLSVariableHoist.h | 118 void collectTLSCandidates(Function &Fn); 122 BasicBlock::iterator findInsertPos(Function &Fn, GlobalVariable *GV, 124 Instruction *genBitCastInst(Function &Fn, GlobalVariable *GV); 125 bool tryReplaceTLSCandidates(Function &Fn); 126 bool tryReplaceTLSCandidate(Function &Fn, GlobalVariable *GV);
|