Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 67) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidBindCheck.cpp104 CallableInfo Callable; member
278 if (!Callable.Decl || ArgIndex < Callable.Decl->getNumParams() || in buildBindArguments()
559 LP.Callable.Decl = in getLambdaProperties()
560 getCallMethodDecl(Result, LP.Callable.Type, LP.Callable.Materialization); in getLambdaProperties()
563 LP.Callable.CE = CE_Var; in getLambdaProperties()
564 LP.Callable.CM = CM_ByValue; in getLambdaProperties()
571 LP.Callable.CM = CM_ByValue; in getLambdaProperties()
613 CaptureSet, "", LP.Callable.CM, LP.Callable.CE, in emitCaptureList()
614 LP.Callable.CaptureIdentifier, LP.Callable.CaptureInitializer, Stream); in emitCaptureList()
696 switch (LP.Callable.CE) { in check()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DTaskQueue.h40 template <typename Callable> struct Task {
41 using ResultTy = std::result_of_t<Callable()>;
42 explicit Task(Callable C, TaskQueue &Parent) in Task()
62 Callable C;
80 template <typename Callable>
81 std::future<std::result_of_t<Callable()>> async(Callable &&C) { in async()
86 Task<Callable> T{std::move(C), *this}; in async()
87 using ResultTy = std::result_of_t<Callable()>; in async()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DScopeExit.h26 template <typename Callable> class scope_exit {
27 Callable ExitFunction;
57 template <typename Callable>
58 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
59 make_scope_exit(Callable &&F) { in make_scope_exit()
60 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
61 std::forward<Callable>(F)); in make_scope_exit()
H A DSTLFunctionalExtras.h43 template<typename Callable>
45 return (*reinterpret_cast<Callable*>(callable))( in callback_fn()
53 template <typename Callable>
55 Callable &&callable,
57 std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
61 std::is_convertible<decltype(std::declval<Callable>()(
64 : callback(callback_fn<typename std::remove_reference<Callable>::type>), in callback()
H A DFunctionExtras.h263 UniqueFunctionBase(CallableT Callable, CalledAs<CalledAsT>) {
278 new (CallableAddr) CallableT(std::move(Callable));
377 CallableT Callable,
380 : Base(std::forward<CallableT>(Callable),
403 CallableT Callable,
406 : Base(std::forward<CallableT>(Callable),
/llvm-project-15.0.7/clang/test/Analysis/
H A Dcxx-uninitialized-object.cpp748 template <class Callable>
750 Callable functor;
764 template <class Callable>
766 Callable functor;
779 template <class Callable>
781 Callable functor;
794 Callable functor;
817 Callable functor;
840 Callable functor;
856 Callable functor;
[all …]
H A Dmalloc-bodyfarms.cpp8 template <class Callable, class... Args>
9 void call_once(once_flag &o, Callable&& func, Args&&... args);
H A Dcall_once.cpp43 template <class Callable, class... Args>
44 void call_once(once_flag &o, Callable&& func, Args&&... args) {}; in call_once()
46 template <class Callable, class... Args> // libcxx03 call_once
47 void call_once(once_flag &o, Callable func, Args&&... args) {}; in call_once()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DScopeExitTest.cpp17 struct Callable { in TEST() struct
19 Callable(bool &Called) : Called(Called) {} in TEST() argument
20 Callable(Callable &&RHS) : Called(RHS.Called) {} in TEST() argument
25 auto g = make_scope_exit(Callable(Called)); in TEST()
/llvm-project-15.0.7/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/
H A Dp4.cpp154 struct Callable { void operator()(S); }; struct
155 static struct Callable Callable; variable
160 Callable(s); // expected-error {{use of undeclared}} in test()
/llvm-project-15.0.7/libc/utils/UnitTest/
H A DFPExceptMatcher.h33 struct Callable : public FunctionCaller { in getFunctionCaller() struct
35 explicit Callable(Func theFunc) : f(theFunc) {} in getFunctionCaller() argument
39 return new Callable(func); in getFunctionCaller()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/
H A Dranges.for_each.pass.cpp28 struct Callable { struct
33 concept HasForEachIt = requires (Iter iter, Sent sent) { std::ranges::for_each(iter, sent, Callable
45 static_assert(HasForEachItFunc<Callable>);
50 concept HasForEachR = requires (Range range) { std::ranges::for_each(range, Callable{}); };
62 static_assert(HasForEachRFunc<Callable>);
H A Dranges.for_each_n.pass.cpp25 struct Callable { struct
30 concept HasForEachN = requires (Iter iter) { std::ranges::for_each_n(iter, 0, Callable{}); };
40 static_assert(HasForEachItFunc<Callable>);
/llvm-project-15.0.7/llvm/tools/llvm-xray/
H A Dtrie-node.h47 template <typename T, typename Callable>
53 Callable &&MergeCallable) { in mergeTrieNodes()
55 std::forward<Callable>(MergeCallable)); in mergeTrieNodes()
/llvm-project-15.0.7/mlir/utils/mbr/mbr/
H A D__init__.py12 runner: typing.Callable
13 compiler: typing.Optional[typing.Callable] = None
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DJITSymbol.cpp34 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
37 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
63 Flags |= JITSymbolFlags::Callable; in fromSummary()
88 Flags |= JITSymbolFlags::Callable; in fromObjectSymbol()
/llvm-project-15.0.7/clang/test/Sema/
H A Dstmt-expr-in-default-arg.cpp19 template <typename Callable>
20 int bar(Callable &&Call) { in bar()
/llvm-project-15.0.7/clang/test/Analysis/html_diagnostics/relevant_lines/
H A Dsynthesized_body.cpp7 template <class Callable, class... Args>
8 void call_once(once_flag &o, Callable&& func, Args&&... args);
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/
H A Drobust_against_adl.pass.cpp34 struct Callable { struct
51 std::function<void()> i(Callable<Holder<Incomplete>>{}); in main() argument
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithLazyReexports/
H A DLLJITWithLazyReexports.cpp137 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, in main()
140 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}}); in main()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/
H A DLLJITWithExecutorProcessControl.cpp171 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, in main()
174 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}}); in main()
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_allocator.h31 template<typename Callable>
32 void ForEachChunk(const Callable &callback);
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h86 Callable = 1U << 5, enumerator
149 bool isCallable() const { return (Flags & Callable) == Callable; } in isCallable()
/llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/taco/tools/
H A Dmlir_pytaco_utils.py7 from typing import Callable, Dict, Sequence, Tuple
22 _SupportFunc = Callable[..., None]
23 _SupportFuncLocator = Callable[[np.dtype], Tuple[_SupportFunc, _SupportFunc]]
/llvm-project-15.0.7/mlir/include/mlir/Transforms/
H A DDialectConversion.h722 template <typename OpT, class Callable>
724 !llvm::is_invocable<Callable, Operation *>::value>::type
725 addDynamicallyLegalOp(Callable &&callback) { in addDynamicallyLegalOp()
762 template <typename OpT, class Callable>
764 !llvm::is_invocable<Callable, Operation *>::value>::type
765 markOpRecursivelyLegal(Callable &&callback) { in markOpRecursivelyLegal()

123