| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| D | TLSVariableHoist.cpp | 59 bool runOnFunction(Function &Fn) override; 89 bool TLSVariableHoistLegacyPass::runOnFunction(Function &Fn) { in runOnFunction() argument 90 if (skipFunction(Fn)) in runOnFunction() 94 LLVM_DEBUG(dbgs() << "********** Function: " << Fn.getName() << '\n'); in runOnFunction() 97 Impl.runImpl(Fn, getAnalysis<DominatorTreeWrapperPass>().getDomTree(), in runOnFunction() 102 << Fn.getName() << '\n'); in runOnFunction() 103 LLVM_DEBUG(dbgs() << Fn); in runOnFunction() 126 void TLSVariableHoistPass::collectTLSCandidates(Function &Fn) { in collectTLSCandidates() argument 128 Module *M = Fn.getParent(); in collectTLSCandidates() 140 for (BasicBlock &BB : Fn) { in collectTLSCandidates() [all …]
|
| D | LowerExpectIntrinsic.cpp | 84 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect() local 85 if (!Fn || (Fn->getIntrinsicID() != Intrinsic::expect && in handleSwitchExpect() 86 Fn->getIntrinsicID() != Intrinsic::expect_with_probability)) in handleSwitchExpect() 98 getBranchWeight(Fn->getIntrinsicID(), CI, n + 1); in handleSwitchExpect() 129 Function *Fn = Expect->getCalledFunction(); in handlePhiDef() local 134 if (Fn->getIntrinsicID() == Intrinsic::expect_with_probability) { in handlePhiDef() 320 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect() local 321 if (!Fn || (Fn->getIntrinsicID() != Intrinsic::expect && in handleBrSelExpect() 322 Fn->getIntrinsicID() != Intrinsic::expect_with_probability)) in handleBrSelExpect() 335 getBranchWeight(Fn->getIntrinsicID(), CI, 2); in handleBrSelExpect() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/Mips/ |
| 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 …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/MC/ |
| D | TargetRegistry.h | 671 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local 674 return Fn(Triple(TT), Ctx); in createMCRelocationInfo() 694 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local 696 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer() 847 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo() 848 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo() 860 Target::MCObjectFileInfoCtorFnTy Fn) { in RegisterMCObjectFileInfo() 861 T.MCObjectFileInfoCtorFn = Fn; in RegisterMCObjectFileInfo() 873 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo() 874 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo() [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/CodeGen/ |
| D | CGDeclCXX.cpp | 430 llvm::Function *Fn = llvm::Function::Create(FTy, Linkage, Name, &getModule()); in CreateGlobalInitOrCleanUpFunction() local 435 Fn->setSection(Section); in CreateGlobalInitOrCleanUpFunction() 439 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); in CreateGlobalInitOrCleanUpFunction() 441 Fn->setCallingConv(getRuntimeCC()); in CreateGlobalInitOrCleanUpFunction() 444 Fn->setDoesNotThrow(); in CreateGlobalInitOrCleanUpFunction() 447 !isInNoSanitizeList(SanitizerKind::Address, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction() 448 Fn->addFnAttr(llvm::Attribute::SanitizeAddress); in CreateGlobalInitOrCleanUpFunction() 451 !isInNoSanitizeList(SanitizerKind::KernelAddress, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction() 452 Fn->addFnAttr(llvm::Attribute::SanitizeAddress); in CreateGlobalInitOrCleanUpFunction() 455 !isInNoSanitizeList(SanitizerKind::HWAddress, Fn, Loc)) in CreateGlobalInitOrCleanUpFunction() [all …]
|
| D | CodeGenFunction.cpp | 585 llvm::Function *Fn) { in EmitKernelMetadata() argument 591 CGM.GenKernelArgMetadata(Fn, FD, this); in EmitKernelMetadata() 608 Fn->setMetadata("vec_type_hint", llvm::MDNode::get(Context, AttrMDArgs)); in EmitKernelMetadata() 616 Fn->setMetadata("work_group_size_hint", llvm::MDNode::get(Context, AttrMDArgs)); in EmitKernelMetadata() 624 Fn->setMetadata("reqd_work_group_size", llvm::MDNode::get(Context, AttrMDArgs)); in EmitKernelMetadata() 631 Fn->setMetadata("intel_reqd_sub_group_size", in EmitKernelMetadata() 652 void CodeGenFunction::markAsIgnoreThreadCheckingAtRuntime(llvm::Function *Fn) { in markAsIgnoreThreadCheckingAtRuntime() argument 654 Fn->addFnAttr("sanitize_thread_no_checking_at_run_time"); in markAsIgnoreThreadCheckingAtRuntime() 655 Fn->removeFnAttr(llvm::Attribute::SanitizeThread); in markAsIgnoreThreadCheckingAtRuntime() 696 llvm::Function *Fn, in StartFunction() argument [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| 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 …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | TaskDispatch.h | 60 GenericNamedTaskImpl(FnT &&Fn, std::string DescBuffer) in GenericNamedTaskImpl() argument 61 : Fn(std::forward<FnT>(Fn)), Desc(DescBuffer.c_str()), in GenericNamedTaskImpl() 63 GenericNamedTaskImpl(FnT &&Fn, const char *Desc) in GenericNamedTaskImpl() argument 64 : Fn(std::forward<FnT>(Fn)), Desc(Desc) { in GenericNamedTaskImpl() 68 void run() override { Fn(); } in run() 71 FnT Fn; 78 std::unique_ptr<GenericNamedTask> makeGenericNamedTask(FnT &&Fn, in makeGenericNamedTask() argument 80 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn), in makeGenericNamedTask() 87 makeGenericNamedTask(FnT &&Fn, const char *Desc = nullptr) { 90 return std::make_unique<GenericNamedTaskImpl<FnT>>(std::forward<FnT>(Fn),
|
| /openbsd/src/gnu/llvm/llvm/bindings/ocaml/analysis/ |
| D | analysis_ocaml.c | 46 value llvm_verify_function(LLVMValueRef Fn) { in llvm_verify_function() argument 47 return Val_bool(LLVMVerifyFunction(Fn, LLVMReturnStatusAction) == 0); in llvm_verify_function() 57 value llvm_assert_valid_function(LLVMValueRef Fn) { in llvm_assert_valid_function() argument 58 LLVMVerifyFunction(Fn, LLVMAbortProcessAction); in llvm_assert_valid_function() 63 value llvm_view_function_cfg(LLVMValueRef Fn) { in llvm_view_function_cfg() argument 64 LLVMViewFunctionCFG(Fn); in llvm_view_function_cfg() 69 value llvm_view_function_cfg_only(LLVMValueRef Fn) { in llvm_view_function_cfg_only() argument 70 LLVMViewFunctionCFGOnly(Fn); in llvm_view_function_cfg_only()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/IR/ |
| 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 …]
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | CallingConvLower.cpp | 83 CCAssignFn Fn) { in AnalyzeFormalArguments() argument 89 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) in AnalyzeFormalArguments() 97 CCAssignFn Fn) { in CheckReturn() argument 102 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in CheckReturn() 111 CCAssignFn Fn) { in AnalyzeReturn() argument 116 if (Fn(i, VT, VT, CCValAssign::Full, ArgFlags, *this)) in AnalyzeReturn() 124 CCAssignFn Fn) { in AnalyzeCallOperands() argument 129 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) { in AnalyzeCallOperands() 142 CCAssignFn Fn) { in AnalyzeCallOperands() argument 147 if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags, *this)) { in AnalyzeCallOperands() [all …]
|
| 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()
|
| D | LocalStackSlotAllocation.cpp | 86 void calculateFrameObjectOffsets(MachineFunction &Fn); 87 bool insertFrameReferenceRegisters(MachineFunction &Fn); 186 void LocalStackSlotPass::calculateFrameObjectOffsets(MachineFunction &Fn) { in calculateFrameObjectOffsets() argument 188 MachineFrameInfo &MFI = Fn.getFrameInfo(); in calculateFrameObjectOffsets() 189 const TargetFrameLowering &TFI = *Fn.getSubtarget().getFrameLowering(); in calculateFrameObjectOffsets() 284 bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) { in insertFrameReferenceRegisters() argument 292 MachineFrameInfo &MFI = Fn.getFrameInfo(); in insertFrameReferenceRegisters() 293 const TargetRegisterInfo *TRI = Fn.getSubtarget().getRegisterInfo(); in insertFrameReferenceRegisters() 294 const TargetFrameLowering &TFI = *Fn.getSubtarget().getFrameLowering(); in insertFrameReferenceRegisters() 306 for (MachineBasicBlock &BB : Fn) { in insertFrameReferenceRegisters() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| D | Speculation.cpp | 83 for (auto &Fn : M.getFunctionList()) { in emit() local 84 if (!Fn.isDeclaration()) { in emit() 86 auto IRNames = QueryAnalysis(Fn); in emit() 95 "__orc_speculate.guard.for." + Fn.getName()); in emit() 99 BasicBlock &ProgramEntry = Fn.getEntryBlock(); in emit() 102 MContext, "__orc_speculate.block", &Fn, &ProgramEntry); in emit() 104 MContext, "__orc_speculate.decision.block", &Fn, SpeculateBlock); in emit() 106 assert(SpeculateDecisionBlock == &Fn.getEntryBlock() && in emit() 120 Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext)); in emit() 127 assert(Mutator.GetInsertBlock()->getParent() == &Fn && in emit()
|
| /openbsd/src/regress/usr.bin/mandoc/mdoc/Fo/ |
| D | tag.out_html | 2 <a class="permalink" href="#first"><code class="Fn">first</code></a>() and 3 <code class="Fn">second</code>()</p> 4 <p class="Pp" id="second"><a class="permalink" href="#second"><code class="Fn">second</code></a>() 5 and <code class="Fn">first</code>()</p> 7 <a class="permalink" href="#e3"><code class="Fn">third</code></a>() and 8 …<a class="permalink" href="#e4"><code class="Fn" id="e4">fourth</code></a>(<var class="Fa">void</v…
|
| /openbsd/src/gnu/llvm/clang/include/clang/Basic/ |
| 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()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| 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()
|
| /openbsd/src/gnu/llvm/libcxxabi/src/demangle/ |
| D | ItaniumDemangle.h | 223 template<typename Fn> void visit(Fn F) const; 341 template<typename Fn> void match(Fn F) const { F(Array); } in match() 354 template<typename Fn> void match(Fn F) const { F(Prefix, Suffix); } in match() 377 template <typename Fn> void match(Fn F) const { F(Ty, Ext, TA); } in match() 428 template<typename Fn> void match(Fn F) const { F(Child, Quals); } in match() 455 template<typename Fn> void match(Fn F) const { F(Ty); } in match() 471 template<typename Fn> void match(Fn F) const { F(Ty, Postfix); } in match() 485 template<typename Fn> void match(Fn F) const { F(Name); } in match() 501 template <typename Fn> void match(Fn F) const { F(Size, Signed); } in match() 520 template<typename Fn> void match(Fn F) const { F(Kind, Child); } in match() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Demangle/ |
| D | ItaniumDemangle.h | 223 template<typename Fn> void visit(Fn F) const; 341 template<typename Fn> void match(Fn F) const { F(Array); } in match() 354 template<typename Fn> void match(Fn F) const { F(Prefix, Suffix); } in match() 377 template <typename Fn> void match(Fn F) const { F(Ty, Ext, TA); } in match() 428 template<typename Fn> void match(Fn F) const { F(Child, Quals); } in match() 455 template<typename Fn> void match(Fn F) const { F(Ty); } in match() 471 template<typename Fn> void match(Fn F) const { F(Ty, Postfix); } in match() 485 template<typename Fn> void match(Fn F) const { F(Name); } in match() 501 template <typename Fn> void match(Fn F) const { F(Size, Signed); } in match() 520 template<typename Fn> void match(Fn F) const { F(Kind, Child); } in match() [all …]
|
| /openbsd/src/gnu/llvm/llvm/utils/TableGen/ |
| D | PredicateExpander.cpp | 394 const STIPredicateFunction &Fn) { in expandHeader() argument 395 const Record *Rec = Fn.getDeclaration(); in expandHeader() 421 const STIPredicateFunction &Fn) { in expandPrologue() argument 422 RecVec Delegates = Fn.getDeclaration()->getValueAsListOfDefs("Delegates"); in expandPrologue() 424 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandPrologue() 487 const STIPredicateFunction &Fn) { in expandBody() argument 489 Fn.getDeclaration()->getValueAsBit("UpdatesOpcodeMask"); in expandBody() 499 for (const OpcodeGroup &Group : Fn.getGroups()) { in expandBody() 520 const STIPredicateFunction &Fn) { in expandEpilogue() argument 524 expandPredicate(OS, Fn.getDefaultReturnPredicate()); in expandEpilogue() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| D | CallingConvLower.h | 261 CCAssignFn Fn); 265 CCAssignFn Fn) { in AnalyzeArguments() argument 266 AnalyzeFormalArguments(Ins, Fn); in AnalyzeArguments() 272 CCAssignFn Fn); 278 CCAssignFn Fn); 283 CCAssignFn Fn); 289 CCAssignFn Fn); 293 CCAssignFn Fn) { in AnalyzeArguments() argument 294 AnalyzeCallOperands(Outs, Fn); in AnalyzeArguments() 300 CCAssignFn Fn); [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Scalar/ |
| 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);
|
| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| D | Analysis.cpp | 117 LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action) { in LLVMVerifyFunction() argument 119 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() in LLVMVerifyFunction() 128 void LLVMViewFunctionCFG(LLVMValueRef Fn) { in LLVMViewFunctionCFG() argument 129 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFG() 133 void LLVMViewFunctionCFGOnly(LLVMValueRef Fn) { in LLVMViewFunctionCFGOnly() argument 134 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFGOnly()
|
| /openbsd/src/gnu/llvm/clang/lib/Sema/ |
| D | SemaCoroutine.cpp | 704 auto *Fn = cast<FunctionDecl>(CurContext); in ActOnCoroutineBodyStart() local 705 SourceLocation Loc = Fn->getLocation(); in ActOnCoroutineBodyStart() 1094 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody() local 1095 assert(Fn && Fn->isCoroutine() && "not a coroutine"); in CheckCompletedCoroutineBody() 1103 if (!Fn->CoroutinePromise) in CheckCompletedCoroutineBody() 1121 if (Fn->FirstReturnLoc.isValid()) { in CheckCompletedCoroutineBody() 1122 assert(Fn->FirstCoroutineStmtLoc.isValid() && in CheckCompletedCoroutineBody() 1124 Diag(Fn->FirstReturnLoc, diag::err_return_in_coroutine); in CheckCompletedCoroutineBody() 1125 Diag(Fn->FirstCoroutineStmtLoc, diag::note_declared_coroutine_here) in CheckCompletedCoroutineBody() 1126 << Fn->getFirstCoroutineStmtKeyword(); in CheckCompletedCoroutineBody() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Support/ |
| D | CrashRecoveryContext.cpp | 227 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() 493 function_ref<void()> Fn; member 507 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch() 509 bool CrashRecoveryContext::RunSafelyOnThread(function_ref<void()> Fn, in RunSafelyOnThread() argument 512 RunSafelyOnThreadInfo Info = { Fn, this, UseBackgroundPriority, false }; in RunSafelyOnThread()
|