Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_functional.cpp45 auto Func = [&vec]() { vec.push_back(0.4f); }; in TEST() local
46 ExpectRealtimeDeath(Func); in TEST()
48 ExpectNonRealtimeSurvival(Func); in TEST()
54 auto Func = [&allocated_ptr]() { allocated_ptr.reset(); }; in TEST() local
55 ExpectRealtimeDeath(Func); in TEST()
57 ExpectNonRealtimeSurvival(Func); in TEST()
62 auto Func = []() { std::this_thread::sleep_for(1us); }; in TEST() local
63 ExpectRealtimeDeath(Func); in TEST()
64 ExpectNonRealtimeSurvival(Func); in TEST()
68 auto Func = []() { std::ifstream ifs{"./file.txt"}; }; in TEST() local
[all …]
H A Drtsan_test_interceptors.cpp69 auto Func = []() { EXPECT_NE(nullptr, malloc(1)); }; in TEST() local
70 ExpectRealtimeDeath(Func, "malloc"); in TEST()
71 ExpectNonRealtimeSurvival(Func); in TEST()
76 auto Func = [ptr_1]() { EXPECT_NE(nullptr, realloc(ptr_1, 8)); }; in TEST() local
77 ExpectRealtimeDeath(Func, "realloc"); in TEST()
78 ExpectNonRealtimeSurvival(Func); in TEST()
84 auto Func = [ptr_1]() { EXPECT_NE(nullptr, reallocf(ptr_1, 8)); }; in TEST() local
85 ExpectRealtimeDeath(Func, "reallocf"); in TEST()
86 ExpectNonRealtimeSurvival(Func); in TEST()
91 auto Func = []() { EXPECT_NE(nullptr, valloc(4)); }; 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,
39 EXPECT_EXIT(RealtimeInvoke(std::forward<Function>(Func)),
43 template <typename Function> void ExpectNonRealtimeSurvival(Function &&Func) { in ExpectNonRealtimeSurvival() argument
44 std::forward<Function>(Func)(); in ExpectNonRealtimeSurvival() local
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DFunctionPointer.h22 const Function *Func;
26 FunctionPointer(const Function *Func) : Func(Func), Valid(true) { in FunctionPointer() argument
27 assert(Func); in FunctionPointer()
31 : Func(reinterpret_cast<const Function *>(IntVal)), Valid(false) {} in Func() function
33 const Function *getFunction() const { return Func; } in getFunction()
34 bool isZero() const { return !Func; } in isZero()
37 if (!Func || !Valid) in isWeak()
40 return Func->getDecl()->isWeak(); in isWeak()
44 if (!Func) in toAPValue()
53 return APValue(Func->getDecl(), CharUnits::Zero(), {}, in toAPValue()
[all …]
H A DInterpFrame.cpp25 InterpFrame::InterpFrame(InterpState &S, const Function *Func, in InterpFrame() argument
27 : Caller(Caller), S(S), Depth(Caller ? Caller->Depth + 1 : 0), Func(Func), in InterpFrame()
30 if (!Func) in InterpFrame()
33 unsigned FrameSize = Func->getFrameSize(); in InterpFrame()
38 for (auto &Scope : Func->scopes()) { in InterpFrame()
48 InterpFrame::InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, in InterpFrame() argument
50 : InterpFrame(S, Func, S.Current, RetPC, Func->getArgSize() + VarArgSize) { in InterpFrame()
57 if (Func->hasRVO()) in InterpFrame()
60 if (Func->hasThisPointer()) { in InterpFrame()
61 if (Func->hasRVO()) in InterpFrame()
[all …]
H A DContext.cpp30 Function *Func = P->getFunction(FD); in isPotentialConstantExpr() local
31 if (!Func || !Func->hasBody()) in isPotentialConstantExpr()
32 Func = Compiler<ByteCodeEmitter>(*this, *P).compileFunc(FD); in isPotentialConstantExpr()
34 if (!Func) in isPotentialConstantExpr()
38 if (!Run(Parent, Func, DummyResult)) in isPotentialConstantExpr()
41 return Func->isConstexpr(); in isPotentialConstantExpr()
202 bool Context::Run(State &Parent, const Function *Func, APValue &Result) { in Run() argument
206 State.Current = new InterpFrame(State, Func, /*Caller=*/nullptr, CodePtr(), in Run()
207 Func->getArgSize()); in Run()
261 const Function *Func = P->getFunction(FD); in getOrCreateFunction() local
[all …]
H A DByteCodeEmitter.cpp147 Function *Func = P.getFunction(FuncDecl); in compileFunc() local
148 if (!Func) { in compileFunc()
153 Func = in compileFunc()
159 assert(Func); in compileFunc()
164 Func->setDefined(false); in compileFunc()
165 return Func; in compileFunc()
168 Func->setDefined(true); in compileFunc()
180 Func->setIsFullyCompiled(true); in compileFunc()
181 return Func; in compileFunc()
191 Func->setCode(NextLocalOffset, std::move(Code), std::move(SrcMap), in compileFunc()
[all …]
/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.cpp57 Function &Func) const;
89 Function &Func) const { in createScalarMASSCall()
93 Module *M = Func.getParent(); in createScalarMASSCall()
101 MASSEntryStr, Func.getFunctionType(), Func.getAttributes()); in createScalarMASSCall()
115 for (Function &Func : M) { in runOnModule()
116 if (!Func.isDeclaration()) in runOnModule()
119 auto Iter = ScalarMASSFuncs.find(Func.getName()); in runOnModule()
127 for (auto *User : Func.users()) in runOnModule()
133 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()
257 Block.Index = Func in createFlowFunction()
303 findUnlikelyJumps(const std::vector<const BasicBlockT * > & BasicBlocks,BlockEdgeMap & Successors,FlowFunction & Func) findUnlikelyJumps() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp214 void MetadataStreamerMsgPackV4::emitKernelLanguage(const Function &Func, in emitKernelLanguage() argument
217 auto Node = Func.getParent()->getNamedMetadata("opencl.ocl.version"); in emitKernelLanguage()
233 void MetadataStreamerMsgPackV4::emitKernelAttrs(const Function &Func, in emitKernelAttrs() argument
236 if (auto Node = Func.getMetadata("reqd_work_group_size")) in emitKernelAttrs()
238 if (auto Node = Func.getMetadata("work_group_size_hint")) in emitKernelAttrs()
240 if (auto Node = Func.getMetadata("vec_type_hint")) { in emitKernelAttrs()
247 if (Func.hasFnAttribute("runtime-handle")) { in emitKernelAttrs()
249 Func.getFnAttribute("runtime-handle").getValueAsString().str(), in emitKernelAttrs()
252 if (Func.hasFnAttribute("device-init")) in emitKernelAttrs()
254 else if (Func.hasFnAttribute("device-fini")) in emitKernelAttrs()
[all …]
H A DAMDGPULowerModuleLDSPass.cpp264 static void markUsedByKernel(Function *Func, GlobalVariable *SGV) { in markUsedByKernel() argument
285 BasicBlock *Entry = &Func->getEntryBlock(); in markUsedByKernel()
289 Intrinsic::getDeclaration(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()
556 for (Function &Func : M->functions()) { in assignLDSKernelIDToEachKernel()
557 if (Func.isDeclaration()) in assignLDSKernelIDToEachKernel()
559 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.h713 template <typename Func, typename Arg>
719 return Func::template Apply<MappingGoPPC64_46>(arg); in Apply()
721 return Func::template Apply<MappingGoPPC64_47>(arg); in Apply()
724 return Func::template Apply<MappingGoMips64_47>(arg); in Apply()
726 return Func::template Apply<MappingGoS390x>(arg); in Apply()
728 return Func::template Apply<MappingGoAarch64>(arg); in Apply()
730 return Func::template Apply<MappingGoLoongArch64_47>(arg); in Apply()
732 return Func::template Apply<MappingGoWindows>(arg); in Apply()
734 return Func::template Apply<MappingGo48>(arg); in Apply()
738 return Func in Apply()
[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/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/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/DebugInfo/CodeView/
H A DRecordSerialization.h73 serialize_conditional_impl(T &Item, U Func) : Item(Item), Func(Func) {} in serialize_conditional_impl()
76 if (!Func()) in deserialize()
82 U Func; member
86 serialize_conditional_impl<T, U> serialize_conditional(T &Item, U Func) { in serialize_conditional() argument
87 return serialize_conditional_impl<T, U>(Item, Func); in serialize_conditional()
91 serialize_array_impl(ArrayRef<T> &Item, U Func) : Item(Item), Func(Func) {} in serialize_array_impl()
94 return Reader.readArray(Item, Func()); in deserialize()
98 U Func; member
161 serialize_array_impl<T, U> serialize_array(ArrayRef<T> &Item, U Func) { in serialize_array() argument
162 return serialize_array_impl<T, U>(Item, Func); in serialize_array()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp25 FunctionCallee Func, ArrayRef<Value *> Args, const Twine &NameStr, in createCallInstWithColors() argument
28 FunctionType *FTy = Func.getFunctionType(); in createCallInstWithColors()
29 Value *Callee = Func.getCallee(); in createCallInstWithColors()
84 Function *Func = *objcarc::getAttachedARCFunction(AnnotatedCall); in insertRVCallWithColors() local
85 assert(Func && "operand isn't a Function"); in insertRVCallWithColors()
86 Type *ParamTy = Func->getArg(0)->getType(); in insertRVCallWithColors()
89 createCallInstWithColors(Func, CallArg, "", InsertPt, BlockColors); in insertRVCallWithColors()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp162 for (Function &Func : M.functions()) { in getTransitiveUsesOfLDS()
163 if (Func.isDeclaration() || isKernelLDS(&Func)) in getTransitiveUsesOfLDS()
167 SmallVector<Function *, 4> wip = {&Func}; in getTransitiveUsesOfLDS()
174 set_union(TransitiveMapFunction[&Func], DirectMapFunction[F]); in getTransitiveUsesOfLDS()
192 for (Function &Func : M.functions()) { in getTransitiveUsesOfLDS()
193 if (Func.isDeclaration() || !isKernelLDS(&Func)) in getTransitiveUsesOfLDS()
196 for (const CallGraphNode::CallRecord &R : *CG[&Func]) { in getTransitiveUsesOfLDS()
199 set_union(IndirectMapKernel[&Func], TransitiveMapFunction[Ith]); in getTransitiveUsesOfLDS()
201 set_union(IndirectMapKernel[&Func], in getTransitiveUsesOfLDS()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h466 FunctionId Func;
471 SampleContextFrame(FunctionId Func, LineLocation Location)
472 : Func(Func), Location(Location) {}
475 return Location == That.Location && Func == That.Func;
484 OContextStr << Func.str();
494 uint64_t NameHash = Func.getHashCode();
528 : Func(Name), State(UnknownContext), Attributes(ContextNone) {
532 SampleContext(FunctionId Func)
533 : Func(Func), State(UnknownContext), Attributes(ContextNone) {}
555 Func = FunctionId(ContextStr);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDiagnosticInfo.cpp267 static const BasicBlock *getFirstFunctionBlock(const Function *Func) { in getFirstFunctionBlock() argument
268 return Func->empty() ? nullptr : &Func->front(); in getFirstFunctionBlock()
273 const Function *Func) in OptimizationRemark() argument
275 RemarkName, *Func, Func->getSubprogram(), in OptimizationRemark()
276 getFirstFunctionBlock(Func)) {} in OptimizationRemark()
301 const Function *Func) in OptimizationRemarkMissed() argument
303 DK_OptimizationRemarkMissed, DS_Remark, PassName, RemarkName, *Func, in OptimizationRemarkMissed()
304 Func->getSubprogram(), getFirstFunctionBlock(Func)) {} in OptimizationRemarkMissed()
336 const Function *Func) in OptimizationRemarkAnalysis() argument
338 DK_OptimizationRemarkAnalysis, DS_Remark, PassName, RemarkName, *Func, in OptimizationRemarkAnalysis()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBContext.cpp43 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress() local
44 Length = Func->getLength(); in getLineInfoForAddress()
150 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); in getFunctionName() local
162 if (!Func || Func->getVirtualAddress() == PS->getVirtualAddress()) in getFunctionName()
167 return Func ? Func->getName() : std::string(); in getFunctionName()

12345678910>>...12