| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCLowerMASSVEntries.cpp | 53 static std::string createMASSVFuncName(Function &Func, 95 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, in createMASSVFuncName() argument 98 auto GenericName = Func.getName().str(); in createMASSVFuncName() 107 if (Func.getName() != "__powf4" && Func.getName() != "__powd2") in handlePowSpecialCases() 141 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall() 146 MASSVEntryName, Func.getFunctionType(), Func.getAttributes()); in lowerMASSVCall() 163 for (Function &Func : M) { in runOnModule() 164 if (!Func.isDeclaration()) in runOnModule() 167 if (!isMASSVFunc(Func.getName())) in runOnModule() 173 SmallVector<User *, 4> MASSVUsers(Func.users()); in runOnModule() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | InterpFrame.cpp | 22 : Caller(Caller), S(S), Func(Func), This(std::move(This)), RetPC(RetPC), in InterpFrame() 23 ArgSize(Func ? Func->getArgSize() : 0), in InterpFrame() 25 if (Func) { in InterpFrame() 28 for (auto &Scope : Func->scopes()) { in InterpFrame() 39 if (Func && Func->isConstructor() && This.isBaseClass()) in ~InterpFrame() 52 for (PrimType Ty : Func->args_reverse()) in popArgs() 146 if (!Caller->Func) in getCallLocation() 152 return Func->getDecl(); in getCallee() 183 return S.getSource(Func, PC); in getSource() 187 return S.getExpr(Func, PC); in getExpr() [all …]
|
| H A D | Context.cpp | 30 Function *Func = P->getFunction(FD); in isPotentialConstantExpr() local 31 if (!Func) { in isPotentialConstantExpr() 33 Func = *R; in isPotentialConstantExpr() 42 if (!Func->isConstexpr()) in isPotentialConstantExpr() 46 return Run(Parent, Func, Dummy); in isPotentialConstantExpr() 113 bool Context::Run(State &Parent, Function *Func, APValue &Result) { in Run() argument 115 State.Current = new InterpFrame(State, Func, nullptr, {}, {}); in Run()
|
| H A D | InterpFrame.h | 35 InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller, 60 Function *getFunction() const { return Func; } in getFunction() 100 bool isRoot() const { return !Func; } in isRoot() 103 CodePtr getPC() const { return Func->getCodeBegin(); } in getPC() 133 Function *Func; variable
|
| H A D | Program.h | 77 auto *Func = new Function(*this, Def, std::forward<Ts>(Args)...); in createFunction() local 78 Funcs.insert({Def, std::unique_ptr<Function>(Func)}); in createFunction() 79 return Func; in createFunction() 84 auto *Func = new Function(*this, std::forward<Ts>(Args)...); in createFunction() local 85 AnonFuncs.emplace_back(Func); in createFunction() 86 return Func; in createFunction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUHSAMetadataStreamer.cpp | 283 for (auto &Arg : Func.args()) in emitKernelArgs() 286 emitHiddenKernelArgs(Func); in emitKernelArgs() 290 auto Func = Arg.getParent(); in emitKernelArg() local 457 auto &Func = MF.getFunction(); in emitKernel() local 469 emitKernelLanguage(Func); in emitKernel() 470 emitKernelAttrs(Func); in emitKernel() 471 emitKernelArgs(Func); in emitKernel() 674 for (auto &Arg : Func.args()) in emitKernelArgs() 684 auto Func = Arg.getParent(); in emitKernelArg() local 905 auto &Func = MF.getFunction(); in emitKernel() local [all …]
|
| H A D | AMDGPUHSAMetadataStreamer.h | 81 void emitKernelLanguage(const Function &Func, msgpack::MapDocNode Kern); 83 void emitKernelAttrs(const Function &Func, msgpack::MapDocNode Kern); 85 void emitKernelArgs(const Function &Func, msgpack::MapDocNode Kern); 97 void emitHiddenKernelArgs(const Function &Func, unsigned &Offset, 168 void emitKernelLanguage(const Function &Func); 170 void emitKernelAttrs(const Function &Func); 172 void emitKernelArgs(const Function &Func); 182 void emitHiddenKernelArgs(const Function &Func);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LibCallsShrinkWrap.cpp | 140 switch (Func) { in performCallDomainErrorOnly() 192 switch (Func) { in performCallRangeErrorOnly() 230 switch (Func) { in performCallErrors() 300 LibFunc Func; in checkCandidate() local 304 if (!TLI.getLibFunc(*Callee, Func) || !TLI.has(Func)) in checkCandidate() 322 switch (Func) { in generateOneRangeCond() 344 switch (Func) { in generateTwoRangeCond() 423 if (Func != LibFunc_pow) { in generateCondForPow() 506 LibFunc Func; in perform() local 509 TLI.getLibFunc(*Callee, Func); in perform() [all …]
|
| H A D | EntryExitInstrumenter.cpp | 24 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument 29 if (Func == "mcount" || in insertCall() 30 Func == ".mcount" || in insertCall() 31 Func == "llvm.arm.gnu.eabi.mcount" || in insertCall() 32 Func == "\01_mcount" || in insertCall() 33 Func == "\01mcount" || in insertCall() 34 Func == "__mcount" || in insertCall() 35 Func == "_mcount" || in insertCall() 36 Func == "__cyg_profile_func_enter_bare") { in insertCall() 43 if (Func == "__cyg_profile_func_enter" || Func == "__cyg_profile_func_exit") { in insertCall() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | Iterator.cpp | 76 bool isInsertCall(const FunctionDecl *Func) { in isInsertCall() argument 77 const auto *IdInfo = Func->getIdentifier(); in isInsertCall() 80 if (Func->getNumParams() < 2 || Func->getNumParams() > 3) in isInsertCall() 88 const auto *IdInfo = Func->getIdentifier(); in isEmplaceCall() 91 if (Func->getNumParams() < 2) in isEmplaceCall() 98 bool isEraseCall(const FunctionDecl *Func) { in isEraseCall() argument 99 const auto *IdInfo = Func->getIdentifier(); in isEraseCall() 102 if (Func->getNumParams() < 1 || Func->getNumParams() > 2) in isEraseCall() 106 if (Func->getNumParams() == 2 && in isEraseCall() 116 if (Func->getNumParams() < 1 || Func->getNumParams() > 2) in isEraseAfterCall() [all …]
|
| H A D | MismatchedIteratorChecker.cpp | 65 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPreCall() local 66 if (!Func) in checkPreCall() 69 if (Func->isOverloadedOperator() && in checkPreCall() 70 isComparisonOperator(Func->getOverloadedOperator())) { in checkPreCall() 96 if (isEraseCall(Func) || isEraseAfterCall(Func)) { in checkPreCall() 103 } else if (isInsertCall(Func)) { in checkPreCall() 111 } else if (isEmplaceCall(Func)) { in checkPreCall() 150 const auto *Templ = Func->getPrimaryTemplate(); in checkPreCall() 155 const auto *TArgs = Func->getTemplateSpecializationArgs(); in checkPreCall() 175 for (auto J = 0U; J < Func->getNumParams(); ++J) { in checkPreCall() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsCCState.h | 35 static bool originalTypeIsF128(const Type *Ty, const char *Func); 59 const char *Func); 110 PreAnalyzeCallOperands(Outs, FuncArgs, Func); in PreAnalyzeCallOperands() 117 const char *Func) { in AnalyzeCallOperands() argument 118 PreAnalyzeCallOperands(Outs, Fn, FuncArgs, Func); in AnalyzeCallOperands() 145 void PreAnalyzeCallResult(const Type *RetTy, const char *Func) { in PreAnalyzeCallResult() argument 146 OriginalArgWasF128.push_back(originalTypeIsF128(RetTy, Func)); in PreAnalyzeCallResult() 153 const char *Func) { in PreAnalyzeCallResult() argument 157 PreAnalyzeCallResultForF128(Ins, RetTy, Func); in PreAnalyzeCallResult() 163 const char *Func) { in AnalyzeCallResult() argument [all …]
|
| H A D | MipsCCState.cpp | 39 bool MipsCCState::originalTypeIsF128(const Type *Ty, const char *Func) { in originalTypeIsF128() argument 50 return (Func && Ty->isIntegerTy(128) && isF128SoftLibCall(Func)); in originalTypeIsF128() 134 const char *Func) { in PreAnalyzeCallOperand() argument 135 OriginalArgWasF128.push_back(originalTypeIsF128(ArgTy, Func)); in PreAnalyzeCallOperand() 146 const char *Func) { in PreAnalyzeCallOperands() argument 150 OriginalArgWasF128.push_back(originalTypeIsF128(FuncArg.Ty, Func)); in PreAnalyzeCallOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | RPCUtils.h | 1147 template <typename Func, typename HandlerT> 1160 template <typename Func, typename HandlerT> 1216 template <typename Func> 1254 template <typename Func, typename HandlerT> 1286 template <typename Func, typename HandlerT> 1369 addHandler<Func>( in addHandler() 1381 addAsyncHandler<Func>( in addAsyncHandler() 1386 template <typename Func> 1480 addHandler<Func>( in addHandler() 1492 addAsyncHandler<Func>( in addAsyncHandler() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOMemOPSizeOpt.cpp | 191 LibFunc Func; in isMemcmp() local 193 Func == LibFunc_memcmp) { in isMemcmp() 199 LibFunc Func; in isBcmp() local 201 Func == LibFunc_bcmp) { in isBcmp() 209 LibFunc Func; in getName() local 213 if (Func == LibFunc_bcmp) in getName() 226 : Func(Func), BFI(BFI), ORE(ORE), DT(DT), TLI(TLI), Changed(false) { in MemOPSizeOpt() 233 visit(Func); in perform() 255 LibFunc Func; in visitCallInst() local 257 (Func == LibFunc_memcmp || Func == LibFunc_bcmp) && in visitCallInst() [all …]
|
| H A D | PGOInstrumentation.cpp | 356 SelectInstVisitor(Function &Func) : F(Func) {} in SelectInstVisitor() 361 visit(Func); in countSelects() 375 visit(Func); in instrumentSelects() 383 visit(Func); in annotateSelects() 614 : F(Func), IsCS(IsCS), ComdatMembers(ComdatMembers), VPC(Func, TLI), in FuncPGOInstrumentation() 1883 Func.populateCounters(); in annotateAllFunctions() 1884 Func.setBranchWeights(); in annotateAllFunctions() 1885 Func.annotateValueSites(); in annotateAllFunctions() 1912 WriteGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName()); in annotateAllFunctions() 1914 ViewGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName()); in annotateAllFunctions() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | RecordSerialization.h | 74 serialize_conditional_impl(T &Item, U Func) : Item(Item), Func(Func) {} in serialize_conditional_impl() 77 if (!Func()) in deserialize() 83 U Func; member 87 serialize_conditional_impl<T, U> serialize_conditional(T &Item, U Func) { in serialize_conditional() argument 88 return serialize_conditional_impl<T, U>(Item, Func); in serialize_conditional() 92 serialize_array_impl(ArrayRef<T> &Item, U Func) : Item(Item), Func(Func) {} in serialize_array_impl() 95 return Reader.readArray(Item, Func()); in deserialize() 99 U Func; member 162 serialize_array_impl<T, U> serialize_array(ArrayRef<T> &Item, U Func) { in serialize_array() argument 163 return serialize_array_impl<T, U>(Item, Func); in serialize_array()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | InstrProfWriter.cpp | 256 for (auto &Func : I.getValue()) in mergeRecordsFromWriter() local 257 addRecord(I.getKey(), Func.first, std::move(Func.second), 1, Warn); in mergeRecordsFromWriter() 263 for (const auto &Func : PD) { in shouldEncodeData() local 264 const InstrProfRecord &IPR = Func.second; in shouldEncodeData() 412 uint32_t NS = Func.getNumValueSites(VK); in validateRecord() 439 for (uint64_t Count : Func.Counts) in writeRecordInText() 450 uint32_t NS = Func.getNumValueSites(VK); in writeRecordInText() 489 for (const auto &Func : I.getValue()) in writeText() local 501 const FuncPair &Func = record.second; in writeText() local 502 writeRecordInText(Name, Func.first, Func.second, Symtab, OS); in writeText() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DiagnosticInfo.cpp | 260 static const BasicBlock *getFirstFunctionBlock(const Function *Func) { in getFirstFunctionBlock() argument 261 return Func->empty() ? nullptr : &Func->front(); in getFirstFunctionBlock() 266 const Function *Func) in OptimizationRemark() argument 268 RemarkName, *Func, Func->getSubprogram(), in OptimizationRemark() 269 getFirstFunctionBlock(Func)) {} in OptimizationRemark() 294 const Function *Func) in OptimizationRemarkMissed() argument 296 DK_OptimizationRemarkMissed, DS_Remark, PassName, RemarkName, *Func, in OptimizationRemarkMissed() 297 Func->getSubprogram(), getFirstFunctionBlock(Func)) {} in OptimizationRemarkMissed() 329 const Function *Func) in OptimizationRemarkAnalysis() argument 331 DK_OptimizationRemarkAnalysis, DS_Remark, PassName, RemarkName, *Func, in OptimizationRemarkAnalysis() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.cpp | 47 FunctionCallee Func, ArrayRef<Value *> Args, const Twine &NameStr, in createCallInstWithColors() argument 50 FunctionType *FTy = Func.getFunctionType(); in createCallInstWithColors() 51 Value *Callee = Func.getCallee(); in createCallInstWithColors() 107 Function *Func = EP.get(IsRetainRV ? ARCRuntimeEntryPointKind::RetainRV in insertRVCallWithColors() local 109 Type *ParamTy = Func->getArg(0)->getType(); in insertRVCallWithColors() 112 createCallInstWithColors(Func, CallArg, "", InsertPt, BlockColors); in insertRVCallWithColors()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBContext.cpp | 41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress() local 42 Length = Func->getLength(); in getLineInfoForAddress() 141 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName() local 153 if (!Func || Func->getVirtualAddress() == PS->getVirtualAddress()) in getFunctionName() 158 return Func ? Func->getName() : std::string(); in getFunctionName()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Marshallers.h | 390 : Marshaller(Marshaller), Func(Func), MatcherName(MatcherName), 416 void (* const Func)(); 491 ResultT (*Func)(ArrayRef<const ArgT *>)> 530 return outvalueToVariantMatcher(Func(InnerArgsPtr)); 561 return Func(MatcherName, NameRange, Args, Error); 581 const RunFunc Func; 594 : VariadicFuncMatcherDescriptor(Func, MatcherName), 1095 ReturnType (*Func)(llvm::StringRef)) { 1104 ResultT (*Func)(ArrayRef<const ArgT *>)> 1150 Func, [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | AbstractCallSite.h | 226 void forEachCallbackCallSite(const CallBase &CB, UnaryFunction Func) { in forEachCallbackCallSite() argument 232 Func(ACS); in forEachCallbackCallSite() 238 void forEachCallbackFunction(const CallBase &CB, UnaryFunction Func) { in forEachCallbackFunction() argument 239 forEachCallbackCallSite(CB, [&Func](AbstractCallSite &ACS) { in forEachCallbackFunction() 241 Func(Callback); in forEachCallbackFunction()
|
| H A D | Instructions.h | 1566 return Create(Func.getFunctionType(), Func.getCallee(), NameStr, 1574 return Create(Func.getFunctionType(), Func.getCallee(), Args, Bundles, 1587 return Create(Func.getFunctionType(), Func.getCallee(), NameStr, 3807 return Create(Func.getFunctionType(), Func.getCallee(), IfNormal, 3816 return Create(Func.getFunctionType(), Func.getCallee(), IfNormal, 3823 return Create(Func.getFunctionType(), Func.getCallee(), IfNormal, 3831 return Create(Func.getFunctionType(), Func.getCallee(), IfNormal, 4022 return Create(Func.getFunctionType(), Func.getCallee(), DefaultDest, 4032 return Create(Func.getFunctionType(), Func.getCallee(), DefaultDest, 4040 return Create(Func.getFunctionType(), Func.getCallee(), DefaultDest, [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/bin/sh/ |
| H A D | t_redir.sh | 766 atf_check -s exit:0 -o inline:'In-Func\nsuccess1\n' -e empty \ 772 atf_check -s exit:0 -o inline:'In-Func\nsuccess4\n' -e empty \ 776 atf_check -s exit:0 -o inline:'In-Func\nIn-Func\nsuccess6\n' -e empty \ 778 atf_check -s exit:0 -o inline:'In-Func\nIn-Func\nsuccess7\n' -e empty \ 780 atf_check -s exit:0 -o inline:'In-Func\nIn-Func\nsuccess8\n' -e empty \ 782 atf_check -s exit:0 -o inline:'In-Func\nsuccess9\n' -e empty \ 785 atf_check -s exit:0 -o inline:'In-Func\nsuccess10\n' -e empty \ 790 atf_check -s exit:0 -o inline:'Func a\nFunc b\nFunc c\n' -e empty \ 793 echo Func "$1" 823 "| atf_check -s exit:0 -o inline:'In-Func\nstdin1\n' -e empty ${TEST_SH}
|