Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DTaskQueue.h41 template <typename Callable> struct Task {
42 using ResultTy = typename std::result_of<Callable()>::type;
43 explicit Task(Callable C, TaskQueue &Parent) in Task()
63 Callable C;
81 template <typename Callable>
82 std::future<typename std::result_of<Callable()>::type> async(Callable &&C) { in async()
87 Task<Callable> T{std::move(C), *this}; in async()
88 using ResultTy = typename std::result_of<Callable()>::type; in async()
/freebsd-12.1/contrib/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 DFunctionExtras.h234 template <typename CallableT> unique_function(CallableT Callable) { in unique_function() argument
249 new (CallableAddr) CallableT(std::move(Callable)); in unique_function()
H A DSTLExtras.h124 template<typename Callable>
126 return (*reinterpret_cast<Callable*>(callable))(
134 template <typename Callable>
135 function_ref(Callable &&callable,
137 !std::is_same<typename std::remove_reference<Callable>::type,
139 : callback(callback_fn<typename std::remove_reference<Callable>::type>),
/freebsd-12.1/contrib/llvm/tools/llvm-xray/
H A Dtrie-node.h48 template <typename T, typename Callable>
54 Callable &&MergeCallable) { in mergeTrieNodes()
56 std::forward<Callable>(MergeCallable)); in mergeTrieNodes()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DJITSymbol.cpp32 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
35 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
55 Flags |= JITSymbolFlags::Callable; in fromObjectSymbol()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIFormMemoryClauses.cpp64 template <typename Callable>
65 void forAllLanes(unsigned Reg, LaneBitmask LaneMask, Callable Func) const;
142 template <typename Callable>
144 Callable Func) const { in forAllLanes()
/freebsd-12.1/contrib/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h68 Callable = 1U << 5, enumerator
148 bool isCallable() const { return (Flags & Callable) == Callable; } in isCallable()
/freebsd-12.1/contrib/compiler-rt/lib/lsan/
H A Dlsan_allocator.h32 template<typename Callable>
33 void ForEachChunk(const Callable &callback);
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DLiveRegMatrix.cpp79 template <typename Callable>
82 Callable Func) { in foreachUnit()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h72 template <typename Callable>
75 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); in CallbackFn()
79 template <typename Callable>
81 Callable &&CodeGen,
83 !std::is_same<typename std::remove_reference<Callable>::type,
86 Callback(CallbackFn<typename std::remove_reference<Callable>::type>), in CodeGen()
/freebsd-12.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-12.1/contrib/llvm/lib/Analysis/
H A DInlineCost.cpp200 template <typename Callable>
201 bool simplifyInstruction(Instruction &I, Callable Evaluate);
602 template <typename Callable>
603 bool CallAnalyzer::simplifyInstruction(Instruction &I, Callable Evaluate) { in simplifyInstruction()
/freebsd-12.1/contrib/libc++/include/
H A Dmutex183 template<class Callable, class ...Args>
184 void call_once(once_flag& flag, Callable&& func, Args&&... args);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h68 Callable, enumerator
H A DPythonDataObjects.cpp86 return PyObjectType::Callable; in GetObjectType()
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp440 void SymbolTableSection::updateSymbols(function_ref<void(Symbol &)> Callable) { in updateSymbols() argument
442 [Callable](SymPtr &Sym) { Callable(*Sym); }); in updateSymbols()
H A DObject.h523 void updateSymbols(function_ref<void(Symbol &)> Callable);
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp1852 void visitDomSubTree(DominatorTree &DT, BasicBlock *BB, CallableT Callable) { in visitDomSubTree() argument
1863 if (!Callable(N->getBlock())) in visitDomSubTree()