| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| D | PPCLowerMASSVEntries.cpp | 53 static std::string createMASSVFuncName(Function &Func, 55 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M); 56 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M, 95 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, in createMASSVFuncName() argument 98 auto GenericName = Func.getName().str(); in createMASSVFuncName() 105 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument 107 if (Func.getName() != "__powf4" && Func.getName() != "__powd2") in handlePowSpecialCases() 134 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument 141 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall() 144 std::string MASSVEntryName = createMASSVFuncName(Func, Subtarget); in lowerMASSVCall() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
| D | InterpFrame.cpp | 20 InterpFrame::InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller, in InterpFrame() argument 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() 26 if (unsigned FrameSize = Func->getFrameSize()) { in InterpFrame() 28 for (auto &Scope : Func->scopes()) { in InterpFrame() 39 if (Func && Func->isConstructor() && This.isBaseClass()) in ~InterpFrame() 46 for (auto &Local : Func->getScope(Idx).locals()) { in destroy() 52 for (PrimType Ty : Func->args_reverse()) in popArgs() 120 unsigned Off = Func->hasRVO() ? primSize(PT_Ptr) : 0; in describe() [all …]
|
| 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()
|
| 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
|
| 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-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUHSAMetadataStreamer.cpp | 246 void MetadataStreamerV2::emitKernelLanguage(const Function &Func) { in emitKernelLanguage() argument 250 auto Node = Func.getParent()->getNamedMetadata("opencl.ocl.version"); in emitKernelLanguage() 264 void MetadataStreamerV2::emitKernelAttrs(const Function &Func) { in emitKernelAttrs() argument 267 if (auto Node = Func.getMetadata("reqd_work_group_size")) in emitKernelAttrs() 269 if (auto Node = Func.getMetadata("work_group_size_hint")) in emitKernelAttrs() 271 if (auto Node = Func.getMetadata("vec_type_hint")) { in emitKernelAttrs() 276 if (Func.hasFnAttribute("runtime-handle")) { in emitKernelAttrs() 278 Func.getFnAttribute("runtime-handle").getValueAsString().str(); in emitKernelAttrs() 282 void MetadataStreamerV2::emitKernelArgs(const Function &Func) { in emitKernelArgs() argument 283 for (auto &Arg : Func.args()) in emitKernelArgs() [all …]
|
| 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-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | LibCallsShrinkWrap.cpp | 96 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func); 97 bool performCallErrors(CallInst *CI, const LibFunc &Func); 98 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func); 99 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func); 100 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func); 101 Value *generateCondForPow(CallInst *CI, const LibFunc &Func); 137 const LibFunc &Func) { in performCallDomainErrorOnly() argument 140 switch (Func) { in performCallDomainErrorOnly() 189 const LibFunc &Func) { in performCallRangeErrorOnly() argument 192 switch (Func) { in performCallRangeErrorOnly() [all …]
|
| 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() 37 FunctionCallee Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); in insertCall() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| 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() 82 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isInsertCall() 87 bool isEmplaceCall(const FunctionDecl *Func) { in isEmplaceCall() argument 88 const auto *IdInfo = Func->getIdentifier(); in isEmplaceCall() 91 if (Func->getNumParams() < 2) in isEmplaceCall() 93 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isEmplaceCall() 98 bool isEraseCall(const FunctionDecl *Func) { in isEraseCall() argument 99 const auto *IdInfo = Func->getIdentifier(); in isEraseCall() [all …]
|
| 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-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
| D | MipsCCState.h | 35 static bool originalTypeIsF128(const Type *Ty, const char *Func); 39 void PreAnalyzeCallOperand(const Type *ArgTy, bool IsFixed, const char *Func); 48 const Type *RetTy, const char * Func); 59 const char *Func); 105 std::vector<TargetLowering::ArgListEntry> &FuncArgs, const char *Func) { in PreAnalyzeCallOperands() argument 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() [all …]
|
| 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-12-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| D | RPCUtils.h | 198 template <typename Func> T allocate() { return NextId++; } in allocate() 995 template <typename Func> Error negotiateFunction(bool Retry = false) { 996 return getRemoteFunctionId<Func>(true, Retry).takeError(); 1004 template <typename Func, typename HandlerT, typename... ArgTs> 1008 detail::RPCArgTypeCheck<CanSerializeCheck, typename Func::Type, in appendCallAsync() 1014 if (auto FnIdOrErr = getRemoteFunctionId<Func>(LazyAutoNegotiation, false)) in appendCallAsync() 1035 detail::createResponseHandler<ChannelT, typename Func::ReturnType>( in appendCallAsync() 1046 if (auto Err = detail::HandlerTraits<typename Func::Type>::serializeArgs( in appendCallAsync() 1063 template <typename Func, typename HandlerT, typename... ArgTs> 1065 if (auto Err = appendCallAsync<Func>(std::move(Handler), Args...)) in callAsync() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| D | PGOMemOPSizeOpt.cpp | 191 LibFunc Func; in isMemcmp() local 192 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && in isMemcmp() 193 Func == LibFunc_memcmp) { in isMemcmp() 199 LibFunc Func; in isBcmp() local 200 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && in isBcmp() 201 Func == LibFunc_bcmp) { in isBcmp() 209 LibFunc Func; in getName() local 210 if (TLI.getLibFunc(*asCI(), Func)) { in getName() 211 if (Func == LibFunc_memcmp) in getName() 213 if (Func == LibFunc_bcmp) in getName() [all …]
|
| D | PGOInstrumentation.cpp | 356 SelectInstVisitor(Function &Func) : F(Func) {} in SelectInstVisitor() 358 void countSelects(Function &Func) { in countSelects() 361 visit(Func); in countSelects() 368 void instrumentSelects(Function &Func, unsigned *Ind, unsigned TotalNC, in instrumentSelects() 375 visit(Func); in instrumentSelects() 379 void annotateSelects(Function &Func, PGOUseFunc *UF, unsigned *Ind) { in annotateSelects() 383 visit(Func); in annotateSelects() 609 Function &Func, TargetLibraryInfo &TLI, in FuncPGOInstrumentation() argument 614 : F(Func), IsCS(IsCS), ComdatMembers(ComdatMembers), VPC(Func, TLI), in FuncPGOInstrumentation() 615 ValueSites(IPVK_Last + 1), SIVisitor(Func), in FuncPGOInstrumentation() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| 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-12-stable/contrib/llvm-project/llvm/lib/ProfileData/ |
| 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() 410 Error InstrProfWriter::validateRecord(const InstrProfRecord &Func) { in validateRecord() argument 412 uint32_t NS = Func.getNumValueSites(VK); in validateRecord() 416 uint32_t ND = Func.getNumValueDataForSite(VK, S); in validateRecord() 417 std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S); in validateRecord() 432 const InstrProfRecord &Func, in writeRecordInText() argument 437 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| 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-12-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| 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-12-stable/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| D | Marshallers.h | 374 using MarshallerType = VariantMatcher (*)(void (*Func)(), 386 FixedArgCountMatcherDescriptor(MarshallerType Marshaller, void (*Func)(), 390 : Marshaller(Marshaller), Func(Func), MatcherName(MatcherName), 397 return Marshaller(Func, MatcherName, NameRange, Args, Error); 416 void (* const Func)(); 491 ResultT (*Func)(ArrayRef<const ArgT *>)> 530 return outvalueToVariantMatcher(Func(InnerArgsPtr)); 550 ast_matchers::internal::VariadicFunction<ResultT, ArgT, F> Func, 552 : Func(&variadicMatcherDescriptor<ResultT, ArgT, F>), 561 return Func(MatcherName, NameRange, Args, Error); [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/ |
| 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-12-stable/contrib/netbsd-tests/bin/sh/ |
| 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}
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | Instructions.h | 1480 inline CallInst(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args, 1484 inline CallInst(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args, 1486 : CallInst(Ty, Func, Args, None, NameStr, InsertBefore) {} 1490 inline CallInst(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args, 1500 void init(FunctionType *FTy, Value *Func, ArrayRef<Value *> Args, 1502 void init(FunctionType *FTy, Value *Func, const Twine &NameStr); 1523 static CallInst *Create(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args, 1527 CallInst(Ty, Func, Args, None, NameStr, InsertBefore); 1530 static CallInst *Create(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args, 1539 CallInst(Ty, Func, Args, Bundles, NameStr, InsertBefore); [all …]
|
| 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()
|