Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DScopeExit.h25 template <typename Callable> class scope_exit {
26 Callable ExitFunction;
56 template <typename Callable>
57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
58 make_scope_exit(Callable &&F) { in make_scope_exit()
59 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
60 std::forward<Callable>(F)); in make_scope_exit()
H A DFunctionExtras.h257 UniqueFunctionBase(CallableT Callable, CalledAs<CalledAsT>) {
272 new (CallableAddr) CallableT(std::move(Callable));
371 CallableT Callable,
374 : Base(std::forward<CallableT>(Callable),
397 CallableT Callable,
400 : Base(std::forward<CallableT>(Callable),
H A DSTLExtras.h96 template <typename Callable, typename... Args>
98 decltype(std::declval<Callable &>()(std::declval<Args>()...));
102 template <typename Callable, typename... Args>
103 using is_invocable = is_detected<detail::is_invocable, Callable, Args...>;
175 template<typename Callable>
177 return (*reinterpret_cast<Callable*>(callable))(
185 template <typename Callable>
187 Callable &&callable,
189 std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
193 std::is_convertible<decltype(std::declval<Callable>()(
[all …]
/freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.h31 template<typename Callable>
32 void ForEachChunk(const Callable &callback);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h86 Callable = 1U << 5, enumerator
149 bool isCallable() const { return (Flags & Callable) == Callable; } in isCallable()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveRegMatrix.cpp79 template <typename Callable>
82 Callable Func) { in foreachUnit()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h236 template <typename Callable>
237 inline ASTEdit withMetadata(ASTEdit Edit, Callable Metadata) { in withMetadata()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h76 template <typename Callable>
79 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); in CallbackFn()
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>>), in CodeGen()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectLinkingLayer.cpp62 Flags |= JITSymbolFlags::Callable; in scanLinkGraph()
215 Flags |= JITSymbolFlags::Callable; in notifyResolved()
234 Flags |= JITSymbolFlags::Callable; in notifyResolved()
H A DOrcV2CBindings.cpp234 JSF |= JITSymbolFlags::Callable; in toJITSymbolFlags()
249 if (JSF & JITSymbolFlags::Callable) in fromJITSymbolFlags()
H A DLLJIT.cpp474 R.defineMaterializing({{InternedName, JITSymbolFlags::Callable}})) in operator ()()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Demangle/
H A DRustDemangle.cpp112 template <typename Callable> void demangleBackref(Callable Demangler) { in demangleBackref()
/freebsd-13.1/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h2641 template <typename Callable, typename InnerMatcher>
2644 ResultOfMatcher(Callable callable, InnerMatcher matcher)
2646 CallableTraits<Callable>::CheckIsValid(callable_);
2655 typedef typename CallableTraits<Callable>::StorageType CallableStorageType;
2660 using ResultType = decltype(CallableTraits<Callable>::template Invoke<T>(
2663 typedef typename CallableTraits<Callable>::ResultType ResultType;
2688 CallableTraits<Callable>::template Invoke<T>(callable_, obj);
4575 template <typename Callable, typename InnerMatcher>
4576 internal::ResultOfMatcher<Callable, InnerMatcher> ResultOf(
4577 Callable callable, InnerMatcher matcher) {
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Dmutex182 template<class Callable, class ...Args>
183 void call_once(once_flag& flag, Callable&& func, Args&&... args);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp355 template <typename Callable>
356 bool simplifyInstruction(Instruction &I, Callable Evaluate);
1456 template <typename Callable>
1457 bool CallAnalyzer::simplifyInstruction(Instruction &I, Callable Evaluate) { in simplifyInstruction()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h109 Callable, enumerator
H A DPythonDataObjects.cpp174 return PyObjectType::Callable; in GetObjectType()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp769 void SymbolTableSection::updateSymbols(function_ref<void(Symbol &)> Callable) { in updateSymbols() argument
771 [Callable](SymPtr &Sym) { Callable(*Sym); }); in updateSymbols()
H A DObject.h706 void updateSymbols(function_ref<void(Symbol &)> Callable);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp1999 void visitDomSubTree(DominatorTree &DT, BasicBlock *BB, CallableT Callable) { in visitDomSubTree() argument
2010 if (!Callable(N->getBlock())) in visitDomSubTree()