Home
last modified time | relevance | path

Searched refs:Func (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_interceptors_posix.cpp111 auto Func = []() { EXPECT_NE(nullptr, malloc(1)); }; in TEST() local
112 ExpectRealtimeDeath(Func, "malloc"); in TEST()
113 ExpectNonRealtimeSurvival(Func); in TEST()
117 auto Func = []() { EXPECT_NE(nullptr, calloc(2, 4)); }; in TEST() local
118 ExpectRealtimeDeath(Func, "calloc"); in TEST()
119 ExpectNonRealtimeSurvival(Func); in TEST()
124 auto Func = [ptr_1]() { EXPECT_NE(nullptr, realloc(ptr_1, 8)); }; in TEST() local
125 ExpectRealtimeDeath(Func, "realloc"); in TEST()
126 ExpectNonRealtimeSurvival(Func); in TEST()
132 auto Func = [ptr_1]() { EXPECT_NE(nullptr, reallocf(ptr_1, 8)); }; in TEST() local
[all …]
H A Drtsan_test_functional.cpp46 auto Func = [&vec]() { vec.push_back(0.4f); }; in TEST() local
47 ExpectRealtimeDeath(Func); in TEST()
49 ExpectNonRealtimeSurvival(Func); in TEST()
55 auto Func = [&allocated_ptr]() { allocated_ptr.reset(); }; in TEST() local
56 ExpectRealtimeDeath(Func); in TEST()
58 ExpectNonRealtimeSurvival(Func); in TEST()
63 auto Func = []() { std::this_thread::sleep_for(1us); }; in TEST() local
64 ExpectRealtimeDeath(Func); in TEST()
65 ExpectNonRealtimeSurvival(Func); in TEST()
69 auto Func = []() { std::this_thread::yield(); }; in TEST() local
[all …]
H A Drtsan_test_utilities.h19 template <typename Function> void RealtimeInvoke(Function &&Func) { in RealtimeInvoke() argument
21 std::forward<Function>(Func)(); in RealtimeInvoke() local
26 void ExpectRealtimeDeath(Function &&Func,
40 EXPECT_EXIT(RealtimeInvoke(std::forward<Function>(Func)), ExitedWithCode(43),
44 template <typename Function> void ExpectNonRealtimeSurvival(Function &&Func) { in ExpectNonRealtimeSurvival() argument
45 std::forward<Function>(Func)(); in ExpectNonRealtimeSurvival() local
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dextern_template_lists.h31 #define _LIBCPP_STRING_COMMON_EXTERN_TEMPLATE_LIST(Func, CharT) … argument
32Func(void basic_string<CharT>::__init(const value_type*, size_type)) …
33Func(void basic_string<CharT>::__init(size_type, value_type)) …
34Func(basic_string<CharT>::basic_string(const basic_string&, size_type, size_type, const allocator<…
35Func(basic_string<CharT>::~basic_string()) …
36Func(basic_string<CharT>& basic_string<CharT>::operator=(value_type)) …
37Func(basic_string<CharT>& basic_string<CharT>::assign(size_type, value_type)) …
38Func(basic_string<CharT>& basic_string<CharT>::assign(const basic_string&, size_type, size_type)) …
39Func(basic_string<CharT>& basic_string<CharT>::append(size_type, value_type)) …
40Func(basic_string<CharT>& basic_string<CharT>::append(const value_type*)) …
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpFrame.cpp26 : Caller(nullptr), S(S), Depth(0), Func(nullptr), RetPC(CodePtr()), in InterpFrame()
29 InterpFrame::InterpFrame(InterpState &S, const Function *Func, in InterpFrame() argument
31 : Caller(Caller), S(S), Depth(Caller ? Caller->Depth + 1 : 0), Func(Func), in InterpFrame()
34 if (!Func) in InterpFrame()
37 unsigned FrameSize = Func->getFrameSize(); in InterpFrame()
42 for (auto &Scope : Func->scopes()) { in InterpFrame()
52 InterpFrame::InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, in InterpFrame() argument
54 : InterpFrame(S, Func, S.Current, RetPC, Func->getArgSize() + VarArgSize) { in InterpFrame()
61 if (Func->hasRVO()) in InterpFrame()
64 if (Func->hasThisPointer()) { in InterpFrame()
[all …]
H A DFunctionPointer.h22 const Function *Func;
26 FunctionPointer(const Function *Func) : Func(Func) {} in FunctionPointer() argument
28 const Function *getFunction() const { return Func; } in getFunction()
29 bool isZero() const { return !Func; } in isZero()
31 if (!Func || !Func->getDecl()) in isWeak()
34 return Func->getDecl()->isWeak(); in isWeak()
41 if (!Func) in toDiagnosticString()
44 return toAPValue(Ctx).getAsString(Ctx, Func->getDecl()->getType()); in toDiagnosticString()
48 return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(Func)); in getIntegerRepresentation()
H A DFunctionPointer.cpp15 if (!Func) in toAPValue()
19 if (Func->getDecl()) in toAPValue()
20 return APValue(Func->getDecl(), CharUnits::fromQuantity(0), {}, in toAPValue()
22 return APValue(Func->getExpr(), CharUnits::fromQuantity(0), {}, in toAPValue()
28 if (Func) in print()
29 OS << Func->getName(); in print()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp55 static std::string createMASSVFuncName(Function &Func,
57 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
58 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
97 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, in createMASSVFuncName() argument
100 auto GenericName = Func.getName().str(); in createMASSVFuncName()
107 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument
109 if (Func.getName() != "__powf4" && Func.getName() != "__powd2") in handlePowSpecialCases()
136 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument
143 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall()
146 std::string MASSVEntryName = createMASSVFuncName(Func, Subtarget); in lowerMASSVCall()
[all …]
H A DPPCGenScalarMASSEntries.cpp56 Function &Func) const;
88 Function &Func) const { in createScalarMASSCall()
92 Module *M = Func.getParent(); in createScalarMASSCall()
100 MASSEntryStr, Func.getFunctionType(), Func.getAttributes()); in createScalarMASSCall()
114 for (Function &Func : M) { in runOnModule()
115 if (!Func.isDeclaration()) in runOnModule()
118 auto Iter = ScalarMASSFuncs.find(Func.getName()); in runOnModule()
125 SmallVector<User *, 4> TheUsers(Func.users()); in runOnModule()
130 Changed |= createScalarMASSCall(Iter->second, *CI, Func); in runOnModule()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileInference.h115 void applyFlowInference(const ProfiParams &Params, FlowFunction &Func);
116 void applyFlowInference(FlowFunction &Func);
147 BlockEdgeMap &Successors, FlowFunction &Func);
210 FlowFunction Func = createFlowFunction(BasicBlocks, BlockIndex); in apply() local
213 applyFlowInference(Func); in apply()
219 BlockWeights[BB] = Func.Blocks[BlockIndex[BB]].Flow; in apply()
221 for (auto &Jump : Func.Jumps) { in apply()
245 FlowFunction Func; in createFlowFunction() local
246 Func.Blocks.reserve(BasicBlocks.size()); in createFlowFunction()
258 Block.Index = Func.Blocks.size(); in createFlowFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSwLowerLDS.cpp186 void buildSwLDSGlobal(Function *Func);
187 void buildSwDynLDSGlobal(Function *Func);
188 void populateSwMetadataGlobal(Function *Func);
189 void populateSwLDSAttributeAndMetadata(Function *Func);
190 void populateLDSToReplacementIndicesMap(Function *Func);
191 void getLDSMemoryInstructions(Function *Func,
193 void replaceKernelLDSAccesses(Function *Func);
196 Function *Func, Value *LoadMallocPtr,
198 void poisonRedzones(Function *Func, Value *MallocPtr);
199 void lowerKernelLDSAccesses(Function *Func, DomTreeUpdater &DTU);
[all …]
H A DAMDGPUHSAMetadataStreamer.cpp237 void MetadataStreamerMsgPackV4::emitKernelLanguage(const Function &Func, in emitKernelLanguage() argument
240 auto *Node = Func.getParent()->getNamedMetadata("opencl.ocl.version"); in emitKernelLanguage()
257 const Function &Func, in emitKernelAttrs() argument
260 if (auto *Node = Func.getMetadata("reqd_work_group_size")) in emitKernelAttrs()
262 if (auto *Node = Func.getMetadata("work_group_size_hint")) in emitKernelAttrs()
264 if (auto *Node = Func.getMetadata("vec_type_hint")) { in emitKernelAttrs()
272 std::string HandleName = getEnqueuedBlockSymbolName(TM, Func); in emitKernelAttrs()
278 if (Func.hasFnAttribute("device-init")) in emitKernelAttrs()
280 else if (Func.hasFnAttribute("device-fini")) in emitKernelAttrs()
286 auto &Func = MF.getFunction(); in emitKernelArgs() local
[all …]
H A DAMDGPULowerModuleLDSPass.cpp264 static void markUsedByKernel(Function *Func, GlobalVariable *SGV) { in markUsedByKernel() argument
285 BasicBlock *Entry = &Func->getEntryBlock(); in markUsedByKernel()
289 Func->getParent(), Intrinsic::donothing, {}); in markUsedByKernel()
441 for (Function &Func : M.functions()) { in kernelsThatIndirectlyAccessAnyOfPassedVariables()
442 if (Func.isDeclaration() || !isKernelLDS(&Func)) in kernelsThatIndirectlyAccessAnyOfPassedVariables()
444 for (GlobalVariable *GV : LDSUsesInfo.indirect_access[&Func]) { in kernelsThatIndirectlyAccessAnyOfPassedVariables()
446 KernelSet.insert(&Func); in kernelsThatIndirectlyAccessAnyOfPassedVariables()
553 for (Function &Func : M->functions()) { in assignLDSKernelIDToEachKernel()
554 if (Func.isDeclaration()) in assignLDSKernelIDToEachKernel()
556 if (!isKernelLDS(&Func)) in assignLDSKernelIDToEachKernel()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp75 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func);
76 bool performCallErrors(CallInst *CI, const LibFunc &Func);
77 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func);
78 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func);
79 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func);
80 Value *generateCondForPow(CallInst *CI, const LibFunc &Func);
131 const LibFunc &Func) { in performCallDomainErrorOnly() argument
134 switch (Func) { in performCallDomainErrorOnly()
183 const LibFunc &Func) { in performCallRangeErrorOnly() argument
186 switch (Func) { in performCallRangeErrorOnly()
[all …]
H A DEntryExitInstrumenter.cpp25 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument
30 if (Func == "mcount" || in insertCall()
31 Func == ".mcount" || in insertCall()
32 Func == "llvm.arm.gnu.eabi.mcount" || in insertCall()
33 Func == "\01_mcount" || in insertCall()
34 Func == "\01mcount" || in insertCall()
35 Func == "__mcount" || in insertCall()
36 Func == "_mcount" || in insertCall()
37 Func == "__cyg_profile_func_enter_bare") { in insertCall()
39 if (TargetTriple.isOSAIX() && Func == "__mcount") { in insertCall()
[all …]
H A DSampleProfileInference.cpp602 FlowAdjuster(const ProfiParams &Params, FlowFunction &Func) in FlowAdjuster() argument
603 : Params(Params), Func(Func) {} in FlowAdjuster()
622 findReachable(Func.Entry, Visited); in joinIsolatedComponents()
626 auto &Block = Func.Blocks[I]; in joinIsolatedComponents()
631 assert(Path.size() > 0 && Path[0]->Source == Func.Entry && in joinIsolatedComponents()
633 Func.Blocks[Func.Entry].Flow += 1; in joinIsolatedComponents()
636 Func.Blocks[Jump->Target].Flow += 1; in joinIsolatedComponents()
655 for (auto *Jump : Func.Blocks[Src].SuccJumps) { in findReachable()
669 auto ForwardPath = findShortestPath(Func.Entry, BlockIdx); in findShortestPath()
687 if (Func.Blocks[Source].isExit() && Target == AnyExitBlock) in findShortestPath()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform.h740 template <typename Func, typename Arg>
746 return Func::template Apply<MappingGoPPC64_46>(arg); in SelectMapping()
748 return Func::template Apply<MappingGoPPC64_47>(arg); in SelectMapping()
751 return Func::template Apply<MappingGoMips64_47>(arg); in SelectMapping()
753 return Func::template Apply<MappingGoS390x>(arg); in SelectMapping()
755 return Func::template Apply<MappingGoAarch64>(arg); in SelectMapping()
757 return Func::template Apply<MappingGoLoongArch64_47>(arg); in SelectMapping()
759 return Func::template Apply<MappingGoRiscv64>(arg); in SelectMapping()
761 return Func::template Apply<MappingGoWindows>(arg); in SelectMapping()
763 return Func::template Apply<MappingGo48>(arg); in SelectMapping()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIterator.cpp76 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 …]
H A DMismatchedIteratorChecker.cpp55 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPreCall() local
56 if (!Func) in checkPreCall()
59 if (Func->isOverloadedOperator() && in checkPreCall()
60 isComparisonOperator(Func->getOverloadedOperator())) { in checkPreCall()
86 if (isEraseCall(Func) || isEraseAfterCall(Func)) { in checkPreCall()
93 } else if (isInsertCall(Func)) { in checkPreCall()
107 } else if (isEmplaceCall(Func)) { in checkPreCall()
146 const auto *Templ = Func->getPrimaryTemplate(); in checkPreCall()
151 const auto *TArgs = Func->getTemplateSpecializationArgs(); in checkPreCall()
171 for (auto J = 0U; J < Func->getNumParams(); ++J) { in checkPreCall()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp145 LibFunc Func; in isMemcmp() local
146 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && in isMemcmp()
147 Func == LibFunc_memcmp) { in isMemcmp()
153 LibFunc Func; in isBcmp() local
154 if (asMI() == nullptr && TLI.getLibFunc(*asCI(), Func) && in isBcmp()
155 Func == LibFunc_bcmp) { in isBcmp()
163 LibFunc Func; in getName() local
164 if (TLI.getLibFunc(*asCI(), Func)) { in getName()
165 if (Func == LibFunc_memcmp) in getName()
167 if (Func == LibFunc_bcmp) in getName()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h35 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 …]
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dcoff_platform.per_jd.cpp21 OnExitFunction Func);
22 ORC_RT_INTERFACE int __orc_rt_coff_atexit(void *Header, AtExitFunction Func);
25 __orc_rt_coff_onexit_per_jd(OnExitFunction Func) { in __orc_rt_coff_onexit_per_jd() argument
26 return __orc_rt_coff_onexit(&__ImageBase, Func); in __orc_rt_coff_onexit_per_jd()
29 ORC_RT_INTERFACE int __orc_rt_coff_atexit_per_jd(AtExitFunction Func) { in __orc_rt_coff_atexit_per_jd() argument
30 return __orc_rt_coff_atexit(&__ImageBase, Func); in __orc_rt_coff_atexit_per_jd()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DThreadSafeModule.h49 template <typename Func> decltype(auto) withContextDo(Func &&F) { in decltype()
57 template <typename Func> decltype(auto) withContextDo(Func &&F) const { in decltype()
113 template <typename Func> decltype(auto) withModuleDo(Func &&F) { in decltype()
122 template <typename Func> decltype(auto) withModuleDo(Func &&F) const { in decltype()
132 template <typename Func> decltype(auto) consumingModuleDo(Func &&F) { in decltype()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DRecordSerialization.h74 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/contrib/llvm-project/llvm/lib/CGData/
H A DStableFunctionMap.cpp81 void StableFunctionMap::insert(const StableFunction &Func) { in insert() argument
83 auto FuncNameId = getIdOrCreateForName(Func.FunctionName); in insert()
84 auto ModuleNameId = getIdOrCreateForName(Func.ModuleName); in insert()
86 for (auto &[Index, Hash] : Func.IndexOperandHashes) in insert()
89 Func.Hash, FuncNameId, ModuleNameId, Func.InstCount, in insert()
98 for (auto &Func : Funcs) { in merge() local
100 getIdOrCreateForName(*OtherMap.getNameForId(Func->FunctionNameId)); in merge()
102 getIdOrCreateForName(*OtherMap.getNameForId(Func->ModuleNameId)); in merge()
104 std::make_unique<IndexOperandHashMapType>(*Func->IndexOperandHashMap); in merge()
106 Func->Hash, FuncNameId, ModuleNameId, Func->InstCount, in merge()

12345678910>>...13