Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dunique_function.h30 template <typename RetT, typename... ArgTs> class Callable {
32 virtual ~Callable() = default;
37 class CallableImpl : public Callable<RetT, ArgTs...> {
39 CallableImpl(CallableT &&Callable) : Callable(std::move(Callable)) {} in CallableImpl() argument
41 return Callable(std::forward<ArgTs>(Args)...); in call()
45 CallableT Callable;
63 unique_function(CallableT &&Callable) in unique_function() argument
66 std::forward<CallableT>(Callable))) {} in unique_function()
75 std::unique_ptr<unique_function_detail::Callable<RetT, ArgTs...>> C;
H A Dexecutor_symbol_def.h39 Callable = 1U << 5, enumerator
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DScopeExit.h26 template <typename Callable> class scope_exit {
27 Callable ExitFunction;
57 template <typename Callable>
58 [[nodiscard]] detail::scope_exit<std::decay_t<Callable>>
59 make_scope_exit(Callable &&F) { in make_scope_exit()
60 return detail::scope_exit<std::decay_t<Callable>>(std::forward<Callable>(F)); in make_scope_exit()
H A DSTLFunctionalExtras.h44 template<typename Callable>
46 return (*reinterpret_cast<Callable*>(callable))( in callback_fn()
54 template <typename Callable>
56 Callable &&callable LLVM_LIFETIME_BOUND,
58 std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
62 std::is_convertible<decltype(std::declval<Callable>()(
65 : callback(callback_fn<std::remove_reference_t<Callable>>), in callback() argument
H A DFunctionExtras.h263 UniqueFunctionBase(CallableT Callable, CalledAs<CalledAsT>) {
278 new (CallableAddr) CallableT(std::move(Callable));
380 CallableT Callable,
383 : Base(std::forward<CallableT>(Callable),
406 CallableT Callable,
409 : Base(std::forward<CallableT>(Callable),
H A DSTLExtras.h210 class Callable {
221 Callable() = default;
222 Callable(T const &O) : Obj(std::in_place, O) {}
224 Callable(Callable const &Other) = default;
225 Callable(Callable &&Other) = default;
227 Callable &operator=(Callable const &Other) {
234 Callable &operator=(Callable &&Other) {
262 template <typename T> class Callable<T, true> {
283 Callable() = default;
292 !std::is_same_v<remove_cvref_t<FnPtrOrRef>, Callable>, int
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dfunctional.h36 template <typename Callable>
38 return (*reinterpret_cast<Callable *>(callable))( in callback_fn()
47 template <typename Callable>
49 Callable &&callable,
51 enable_if_t<!cpp::is_same_v<remove_cvref_t<Callable>, function>> * =
56 decltype(declval<Callable>()(declval<Params>()...)), Ret>>
58 : callback(callback_fn<cpp::remove_reference_t<Callable>>), in callback() argument
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h428 template <typename Callable>
431 std::is_constructible<typename std::decay<Callable>::type, Callable>,
433 internal::is_callable_r<Result, typename std::decay<Callable>::type,
438 template <typename Callable>
441 std::is_constructible<typename std::decay<Callable>::type, Callable>,
444 internal::is_callable_r<Result, typename std::decay<Callable>::type>>;
450 template <typename Callable,
458 OnceAction, typename std::decay<Callable>::type>>,
459 IsDirectlyCompatible<Callable>> //
462 OnceAction(Callable&& callable) // NOLINT
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h87 Callable = 1U << 5, enumerator
150 bool isCallable() const { return (Flags & Callable) == Callable; } in isCallable()
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.h31 template<typename Callable>
32 void ForEachChunk(const Callable &callback);
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dexecutor_symbol_def_test.cpp18 ExecutorSymbolDef{ExecutorAddr{0x70}, {JITSymbolFlags::Callable, 9}}); in TEST()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaConcept.h151 SubsumptionChecker(Sema &SemaRef, SubsumptionCallable Callable = {});
162 SubsumptionCallable Callable; variable
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DHLSLRuntime.h50 ENUM_COMPARE_ASSERT(Callable)
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveRegMatrix.cpp86 template <typename Callable>
89 Callable Func) { in foreachUnit()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DLinkGraphLayer.cpp87 Flags |= JITSymbolFlags::Callable; in getJITSymbolFlagsForSymbol()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp36 void SymbolTable::updateSymbols(function_ref<void(SymbolEntry &)> Callable) { in updateSymbols() argument
38 Callable(*Sym); in updateSymbols()
/freebsd/contrib/llvm-project/lldb/include/lldb/DataFormatters/
H A DTypeCategory.h187 template <typename Callable> ForEachCallback(Callable c) : callback(c) {} in ForEachCallback()
/freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp171 template <typename Callable>
172 int forEachCoff(object::Archive &Archive, StringRef Name, Callable Callback) { in forEachCoff()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h243 template <typename Callable>
244 inline ASTEdit withMetadata(ASTEdit Edit, Callable Metadata) { in withMetadata()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOPlatform.h47 Callable = 1U << 1, enumerator
48 LLVM_MARK_AS_BITMASK_ENUM(/* LargestValue = */ Callable)
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h74 template <typename Callable>
77 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); in CallbackFn()
81 template <typename Callable>
83 Callable &&CodeGen,
84 std::enable_if_t<!std::is_same<std::remove_reference_t<Callable>,
87 Callback(CallbackFn<std::remove_reference_t<Callable>>), in CodeGen()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DExecutorSymbolDef.h35 Flags |= JITSymbolFlags::Callable;
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dmutex182 template<class Callable, class ...Args>
183 void call_once(once_flag& flag, Callable&& func, Args&&... args);

12