| /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| ScopeExit.h | 25 template <typename Callable> class scope_exit { 26 Callable ExitFunction; 51 // Keeps the callable object that is passed in, and execute it at the 56 template <typename Callable> 57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type> 58 make_scope_exit(Callable &&F) { 59 return detail::scope_exit<typename std::decay<Callable>::type>( 60 std::forward<Callable>(F));
|
| FunctionExtras.h | 9 /// This file provides a collection of function (or more generally, callable) 14 /// move-only callable objects and const-qualification. 19 /// - Provide support for specifying multiple signatures to type erase callable 113 // the stored callable when it is trivial to move and destroy. 140 // storage or an inline buffer storing the callable. 163 // dispatching callbacks and the flag for whether the callable itself is 231 // callable type (and called-as type, which determines the overload chosen). 242 // See if we can create a trivial callback. We need the callable to be 257 UniqueFunctionBase(CallableT Callable, CalledAs<CalledAsT>) { 272 new (CallableAddr) CallableT(std::move(Callable)); [all...] |
| STLExtras.h | 96 template <typename Callable, typename... Args> 98 decltype(std::declval<Callable &>()(std::declval<Args>()...)); 101 /// Check if a Callable type can be invoked with the given set of arg types. 102 template <typename Callable, typename... Args> 103 using is_invocable = is_detected<detail::is_invocable, Callable, Args...>; 105 /// This class provides various trait information about a callable object. 162 /// An efficient, type-erasing, non-owning reference to a callable. This is 166 /// This class does not own the callable, so it is not in general safe to store 172 Ret (*callback)(intptr_t callable, Params ...params) = nullptr; 173 intptr_t callable; member in class:llvm::function_ref [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| TaskQueue.h | 37 // callable struct. We want to do as much of the wrapping in the 40 template <typename Callable> struct Task { 41 using ResultTy = std::result_of_t<Callable()>; 42 explicit Task(Callable C, TaskQueue &Parent) 62 Callable C; 80 template <typename Callable> 81 std::future<std::result_of_t<Callable()>> async(Callable &&C) { 86 Task<Callable> T{std::move(C), *this}; 87 using ResultTy = std::result_of_t<Callable()>; [all...] |
| /src/external/gpl3/gdb.old/dist/gdbsupport/ |
| function-view.h | 22 encapsulates a non-owning reference to arbitrary callable objects. 26 type-erased callable object internally, function_view holds a 27 type-erased reference to an external callable object. 33 #2 - Wants to support arbitrary callable objects as callback type 42 with the callable type as template parameter. For example, 82 the target callable. In addition, while it is possible to use 90 std::ref/std::cref where the callable is constructed, with the 95 Note that because function_view is a non-owning view of a callable, 96 care must be taken to ensure that the callable outlives the 152 automatically create a function_view from a callable without havin 265 bind (callable); variable [all...] |
| /src/external/gpl3/gdb/dist/gdbsupport/ |
| function-view.h | 22 encapsulates a non-owning reference to arbitrary callable objects. 26 type-erased callable object internally, function_view holds a 27 type-erased reference to an external callable object. 33 #2 - Wants to support arbitrary callable objects as callback type 42 with the callable type as template parameter. For example, 82 the target callable. In addition, while it is possible to use 90 std::ref/std::cref where the callable is constructed, with the 95 Note that because function_view is a non-owning view of a callable, 96 care must be taken to ensure that the callable outlives the 152 automatically create a function_view from a callable without havin 265 bind (callable); variable [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-xray/ |
| trie-node.h | 47 template <typename T, typename Callable> 53 Callable &&MergeCallable) { 55 std::forward<Callable>(MergeCallable));
|
| /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/thread/ |
| context.d | 26 struct Callable
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| JITSymbol.cpp | 34 Flags |= JITSymbolFlags::Callable; 37 Flags |= JITSymbolFlags::Callable; 63 Flags |= JITSymbolFlags::Callable; 88 Flags |= JITSymbolFlags::Callable;
|
| /src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/LLJITWithLazyReexports/ |
| LLJITWithLazyReexports.cpp | 137 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, 140 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}});
|
| /src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/LLJITWithTargetProcessControl/ |
| LLJITWithTargetProcessControl.cpp | 169 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, 172 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}});
|
| /src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
| lsan_allocator.h | 32 template<typename Callable> 33 void ForEachChunk(const Callable &callback);
|
| /src/external/gpl3/gcc/dist/libsanitizer/lsan/ |
| lsan_allocator.h | 31 template<typename Callable> 32 void ForEachChunk(const Callable &callback);
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/lsan/ |
| lsan_allocator.h | 31 template<typename Callable> 32 void ForEachChunk(const Callable &callback);
|
| /src/external/mpl/bind/dist/bin/tests/system/isctest/ |
| query.py | 12 from collections.abc import Callable 31 query_func: Callable[..., Any],
|
| asyncserver.py | 14 from collections.abc import AsyncGenerator, Callable, Coroutine, Sequence 46 _UdpHandler = Callable[ 51 _TcpHandler = Callable[
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/ |
| JITSymbol.h | 57 /// Convert a JITTargetAddress to a callable function pointer. 59 /// Casts the given address to a callable function pointer. This operation 86 Callable = 1U << 5, 148 /// Returns true if the given symbol is known to be callable. 149 bool isCallable() const { return (Flags & Callable) == Callable; }
|
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Transformer/ |
| RewriteRule.h | 230 // Note: This function template accepts any type callable with a MatchResult 232 // it accepted a `std::function<R(MatchResult)>`, lambdas or other callable 236 template <typename Callable> 237 inline ASTEdit withMetadata(ASTEdit Edit, Callable Metadata) {
|
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| LiveRegMatrix.cpp | 79 template <typename Callable> 82 Callable Func) {
|
| /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| KaleidoscopeJIT.h | 109 JITSymbolFlags(JITSymbolFlags::Exported | JITSymbolFlags::Callable);
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CGOpenMPRuntime.h | 76 template <typename Callable> 79 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); 83 template <typename Callable> 85 Callable &&CodeGen, 86 std::enable_if_t<!std::is_same<std::remove_reference_t<Callable>, 89 Callback(CallbackFn<std::remove_reference_t<Callable>>),
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
| ObjectLinkingLayer.cpp | 63 Flags |= JITSymbolFlags::Callable; 216 Flags |= JITSymbolFlags::Callable; 235 Flags |= JITSymbolFlags::Callable;
|
| /src/external/apache2/llvm/dist/llvm/utils/unittest/googlemock/include/gmock/ |
| gmock-matchers.h | 1893 template <typename Callable, typename InnerMatcher> 1896 ResultOfMatcher(Callable callable, InnerMatcher matcher) 1897 : callable_(std::move(callable)), matcher_(std::move(matcher)) { 1898 CallableTraits<Callable>::CheckIsValid(callable_); 1907 typedef typename CallableTraits<Callable>::StorageType CallableStorageType; 1911 using ResultType = decltype(CallableTraits<Callable>::template Invoke<T>( 1916 Impl(const CallableStorageType& callable, const M& matcher) 1917 : callable_(callable), matcher_(MatcherCast<ResultType>(matcher)) {} 1920 *os << "is mapped by the given callable to a value that " [all...] |
| /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/internal/ |
| traits.d | 569 Get the function type from a callable object `func`. 588 alias FunctionTypeOf = Fobj; // HIT: callable object 592 alias FunctionTypeOf = Ftyp; // HIT: callable type 640 class Callable { int opCall(int) { return 0; } } 641 auto call = new Callable;
|
| /src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| InlineCost.cpp | 351 template <typename Callable> 352 bool simplifyInstruction(Instruction &I, Callable Evaluate); 1236 /// \p Evaluate is a callable specific to instruction type that evaluates the 1238 template <typename Callable> 1239 bool CallAnalyzer::simplifyInstruction(Instruction &I, Callable Evaluate) {
|