Searched refs:Func (Results 1 - 25 of 197) sorted by relevance

12345678

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp55 static std::string createMASSVFuncName(Function &Func,
57 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
91 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, argument
94 auto GenericName = Func.getName().drop_back(MASSVSuffixLength).str();
102 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, argument
108 std::string MASSVEntryName = createMASSVFuncName(Func, Subtarget);
110 MASSVEntryName, Func.getFunctionType(), Func.getAttributes());
128 for (Function &Func : M) {
129 if (!Func
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIterator.cpp76 bool isInsertCall(const FunctionDecl *Func) { argument
77 const auto *IdInfo = Func->getIdentifier();
80 if (Func->getNumParams() < 2 || Func->getNumParams() > 3)
82 if (!isIteratorType(Func->getParamDecl(0)->getType()))
87 bool isEmplaceCall(const FunctionDecl *Func) { argument
88 const auto *IdInfo = Func->getIdentifier();
91 if (Func->getNumParams() < 2)
93 if (!isIteratorType(Func->getParamDecl(0)->getType()))
98 bool isEraseCall(const FunctionDecl *Func) { argument
112 isEraseAfterCall(const FunctionDecl *Func) argument
[all...]
H A DInvalidatedIteratorChecker.cpp53 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
54 if (!Func)
57 if (Func->isOverloadedOperator() &&
58 isAccessOperator(Func->getOverloadedOperator())) {
H A DMismatchedIteratorChecker.cpp64 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
65 if (!Func)
68 if (Func->isOverloadedOperator() &&
69 isComparisonOperator(Func->getOverloadedOperator())) {
95 if (isEraseCall(Func) || isEraseAfterCall(Func)) {
102 } else if (isInsertCall(Func)) {
110 } else if (isEmplaceCall(Func)) {
149 const auto *Templ = Func->getPrimaryTemplate();
154 const auto *TArgs = Func
[all...]
H A DIteratorRangeChecker.cpp63 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
64 if (!Func)
67 if (Func->isOverloadedOperator()) {
68 if (isIncrementOperator(Func->getOverloadedOperator())) {
77 } else if (isDecrementOperator(Func->getOverloadedOperator())) {
86 } else if (isRandomIncrOrDecrOperator(Func->getOverloadedOperator())) {
91 verifyRandomIncrOrDecr(C, Func->getOverloadedOperator(),
98 verifyRandomIncrOrDecr(C, Func->getOverloadedOperator(),
102 } else if (isDereferenceOperator(Func->getOverloadedOperator())) {
H A DIteratorModeling.cpp140 bool isBeginCall(const FunctionDecl *Func);
141 bool isEndCall(const FunctionDecl *Func);
142 bool isAssignCall(const FunctionDecl *Func);
143 bool isClearCall(const FunctionDecl *Func);
144 bool isPushBackCall(const FunctionDecl *Func);
145 bool isEmplaceBackCall(const FunctionDecl *Func);
146 bool isPopBackCall(const FunctionDecl *Func);
147 bool isPushFrontCall(const FunctionDecl *Func);
148 bool isEmplaceFrontCall(const FunctionDecl *Func);
149 bool isPopFrontCall(const FunctionDecl *Func);
208 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
1153 isBeginCall(const FunctionDecl *Func) argument
1160 isEndCall(const FunctionDecl *Func) argument
1167 isAssignCall(const FunctionDecl *Func) argument
1176 isClearCall(const FunctionDecl *Func) argument
1185 isPushBackCall(const FunctionDecl *Func) argument
1194 isEmplaceBackCall(const FunctionDecl *Func) argument
1203 isPopBackCall(const FunctionDecl *Func) argument
1212 isPushFrontCall(const FunctionDecl *Func) argument
1221 isEmplaceFrontCall(const FunctionDecl *Func) argument
1230 isPopFrontCall(const FunctionDecl *Func) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp21 static void insertCall(Function &CurFn, StringRef Func, argument
26 if (Func == "mcount" ||
27 Func == ".mcount" ||
28 Func == "llvm.arm.gnu.eabi.mcount" ||
29 Func == "\01_mcount" ||
30 Func == "\01mcount" ||
31 Func == "__mcount" ||
32 Func == "_mcount" ||
33 Func == "__cyg_profile_func_enter_bare") {
34 FunctionCallee Fn = M.getOrInsertFunction(Func, Typ
[all...]
H A DLibCallsShrinkWrap.cpp96 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) {
140 switch (Func) {
189 const LibFunc &Func) {
192 switch (Func) {
136 performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func) argument
188 performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func) argument
226 performCallErrors(CallInst *CI, const LibFunc &Func) argument
319 generateOneRangeCond(CallInst *CI, const LibFunc &Func) argument
341 generateTwoRangeCond(CallInst *CI, const LibFunc &Func) argument
420 generateCondForPow(CallInst *CI, const LibFunc &Func) argument
506 LibFunc Func; local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpFrame.cpp20 InterpFrame::InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller, argument
22 : Caller(Caller), S(S), Func(Func), This(std::move(This)), RetPC(RetPC),
23 ArgSize(Func ? Func->getArgSize() : 0),
25 if (Func) {
26 if (unsigned FrameSize = Func->getFrameSize()) {
28 for (auto &Scope : Func->scopes()) {
39 if (Func && Func
[all...]
H A DContext.cpp29 Function *Func = P->getFunction(FD); local
30 if (!Func) {
32 Func = *R;
41 if (!Func->isConstexpr())
45 return Run(Parent, Func, Dummy);
112 bool Context::Run(State &Parent, Function *Func, APValue &Result) { argument
114 State.Current = new InterpFrame(State, Func, nullptr, {}, {});
H A DInterpFrame.h35 InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller,
60 Function *getFunction() const { return Func; }
100 bool isRoot() const { return !Func; }
103 CodePtr getPC() const { return Func->getCodeBegin(); }
133 Function *Func; member in class:clang::interp::final
H A DProgram.h77 auto *Func = new Function(*this, Def, std::forward<Ts>(Args)...); local
78 Funcs.insert({Def, std::unique_ptr<Function>(Func)});
79 return Func;
84 auto *Func = new Function(*this, std::forward<Ts>(Args)...); local
85 AnonFuncs.emplace_back(Func);
86 return Func;
H A DDisasm.cpp63 for (auto &Func : Funcs) {
64 Func.second->dump();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DThreading.cpp62 llvm::unique_function<void()> Func,
64 (void)Func;
72 llvm::unique_function<void()> Func,
75 std::thread(std::move(Func)).detach();
135 llvm::unique_function<void()> Func,
138 new AsyncThreadInfo(std::move(Func)),
61 llvm_execute_on_thread_async( llvm::unique_function<void()> Func, llvm::Optional<unsigned> StackSizeInBytes) argument
71 llvm_execute_on_thread_async( llvm::unique_function<void()> Func, llvm::Optional<unsigned> StackSizeInBytes) argument
134 llvm_execute_on_thread_async( llvm::unique_function<void()> Func, llvm::Optional<unsigned> StackSizeInBytes) argument
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/DIA/
H A DDIAUtils.h17 HRESULT (__stdcall Obj::*Func)(BSTR *)) {
19 HRESULT Result = (Object.*Func)(&Str16);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp265 void MetadataStreamerV2::emitKernelLanguage(const Function &Func) { argument
269 auto Node = Func.getParent()->getNamedMetadata("opencl.ocl.version");
283 void MetadataStreamerV2::emitKernelAttrs(const Function &Func) { argument
286 if (auto Node = Func.getMetadata("reqd_work_group_size"))
288 if (auto Node = Func.getMetadata("work_group_size_hint"))
290 if (auto Node = Func.getMetadata("vec_type_hint")) {
295 if (Func.hasFnAttribute("runtime-handle")) {
297 Func.getFnAttribute("runtime-handle").getValueAsString().str();
301 void MetadataStreamerV2::emitKernelArgs(const Function &Func) { argument
302 for (auto &Arg : Func
309 auto Func = Arg.getParent(); local
399 emitHiddenKernelArgs(const Function &Func) argument
472 auto &Func = MF.getFunction(); local
677 emitKernelLanguage(const Function &Func, msgpack::MapDocNode Kern) argument
696 emitKernelAttrs(const Function &Func, msgpack::MapDocNode Kern) argument
717 emitKernelArgs(const Function &Func, msgpack::MapDocNode Kern) argument
731 auto Func = Arg.getParent(); local
835 emitHiddenKernelArgs(const Function &Func, unsigned &Offset, msgpack::ArrayDocNode Args) argument
943 auto &Func = MF.getFunction(); local
[all...]
H A DAMDGPUHSAMetadataStreamer.h81 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);
96 void emitHiddenKernelArgs(const Function &Func, unsigned &Offset,
153 void emitKernelLanguage(const Function &Func);
155 void emitKernelAttrs(const Function &Func);
157 void emitKernelArgs(const Function &Func);
167 void emitHiddenKernelArgs(const Function &Func);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DRecordSerialization.h74 serialize_conditional_impl(T &Item, U Func) : Item(Item), Func(Func) {} argument
77 if (!Func())
83 U Func; member in struct:llvm::codeview::serialize_conditional_impl
87 serialize_conditional_impl<T, U> serialize_conditional(T &Item, U Func) { argument
88 return serialize_conditional_impl<T, U>(Item, Func);
92 serialize_array_impl(ArrayRef<T> &Item, U Func) : Item(Item), Func(Func) {} argument
99 U Func; member in struct:llvm::codeview::serialize_array_impl
162 serialize_array(ArrayRef<T> &Item, U Func) argument
[all...]
H A DTypeCollection.h34 template <typename TFunc> void ForEachRecord(TFunc Func) { argument
39 Func(N, getType(N));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DCallPrinter.cpp31 if (Function *Func = Node->getFunction())
32 return Func->getName();
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-cov/
H A Dllvm-cov.cpp69 MainFunction Func = StringSwitch<MainFunction>(argv[1]) local
79 if (Func) {
82 return Func(argc - 1, argv + 1);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/
H A DRPCUtils.h180 /// template <typename Func> T allocate():
181 /// Allocate a unique id for function Func.
194 template <typename Func> T allocate() { return NextId++; }
1001 /// Negotiate a function id for Func with the other end of the channel.
1002 template <typename Func> Error negotiateFunction(bool Retry = false) {
1003 return getRemoteFunctionId<Func>(true, Retry).takeError();
1006 /// Append a call Func, does not call send on the channel.
1008 /// function returns. The handler should take an Expected<Func::ReturnType>,
1009 /// or an Error (if Func::ReturnType is void). The handler will be called
1011 template <typename Func, typenam
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBContext.cpp41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) {
42 Length = Func->getLength();
106 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get()); local
118 if (!Func || Func->getVirtualAddress() == PS->getVirtualAddress())
123 return Func ? Func->getName() : std::string();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h33 const Type *RetTy, const char * Func);
44 const char *Func);
92 const char *Func) {
93 PreAnalyzeCallOperands(Outs, FuncArgs, Func);
121 const char *Func) {
122 PreAnalyzeCallResultForF128(Ins, RetTy, Func);
89 AnalyzeCallOperands(const SmallVectorImpl<ISD::OutputArg> &Outs, CCAssignFn Fn, std::vector<TargetLowering::ArgListEntry> &FuncArgs, const char *Func) argument
119 AnalyzeCallResult(const SmallVectorImpl<ISD::InputArg> &Ins, CCAssignFn Fn, const Type *RetTy, const char *Func) argument
H A DMipsCCState.cpp40 static bool originalTypeIsF128(const Type *Ty, const char *Func) { argument
50 return (Func && Ty->isIntegerTy(128) && isF128SoftLibCall(Func));
134 const char *Func) {
138 OriginalArgWasF128.push_back(originalTypeIsF128(FuncArg.Ty, Func));
131 PreAnalyzeCallOperands( const SmallVectorImpl<ISD::OutputArg> &Outs, std::vector<TargetLowering::ArgListEntry> &FuncArgs, const char *Func) argument

Completed in 318 milliseconds

12345678