/external/llvm-project/llvm/unittests/ADT/ |
D | FunctionExtrasTest.cpp | 20 unique_function<int(int, int)> Sum = [](int A, int B) { return A + B; }; in TEST() 23 unique_function<int(int, int)> Sum2 = std::move(Sum); in TEST() 26 unique_function<int(int, int)> Sum3 = [](int A, int B) { return A + B; }; in TEST() 30 Sum2 = unique_function<int(int, int)>([](int A, int B) { return A + B; }); in TEST() 37 Sum2 = unique_function<int(int, int)>(); in TEST() 41 unique_function<void(int &)> Inc = [](int &X) { ++X; }; in TEST() 48 unique_function<int(std::unique_ptr<int> &&)> ReadAndDeallocByRef = in TEST() 62 unique_function<int(std::unique_ptr<int>)> ReadAndDeallocByVal = in TEST() 78 unique_function<long()> Tmp; in TEST() 80 unique_function<long()> C1 = [A]() { return A; }; in TEST() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | FunctionExtras.h | 54 template <typename FunctionT> class unique_function; variable 337 class unique_function<R(P...)> : public detail::UniqueFunctionBase<R, P...> { 341 unique_function() = default; 342 unique_function(std::nullptr_t) {} 343 unique_function(unique_function &&) = default; 344 unique_function(const unique_function &) = delete; 345 unique_function &operator=(unique_function &&) = default; 346 unique_function &operator=(const unique_function &) = delete; 349 unique_function(CallableT Callable) 359 class unique_function<R(P...) const> [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | FunctionExtras.h | 42 template <typename FunctionT> class unique_function; variable 45 class unique_function<ReturnT(ParamTs...)> { 173 unique_function() = default; 174 unique_function(std::nullptr_t /*null_callable*/) {} in unique_function() function 176 ~unique_function() { in ~unique_function() 192 unique_function(unique_function &&RHS) noexcept { in unique_function() function 221 unique_function &operator=(unique_function &&RHS) noexcept { 228 this->~unique_function(); 229 new (this) unique_function(std::move(RHS)); 233 template <typename CallableT> unique_function(CallableT Callable) { in unique_function() function
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | PassInstrumentation.h | 138 SmallVector<llvm::unique_function<BeforePassFunc>, 4> 141 SmallVector<llvm::unique_function<BeforeSkippedPassFunc>, 4> 144 SmallVector<llvm::unique_function<BeforeNonSkippedPassFunc>, 4> 147 SmallVector<llvm::unique_function<AfterPassFunc>, 4> AfterPassCallbacks; 149 SmallVector<llvm::unique_function<AfterPassInvalidatedFunc>, 4> 152 SmallVector<llvm::unique_function<BeforeAnalysisFunc>, 4> 155 SmallVector<llvm::unique_function<AfterAnalysisFunc>, 4>
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Threading.cpp | 62 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async() 72 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async() 113 using AsyncThreadInfo = llvm::unique_function<void()>; 135 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PassInstrumentation.h | 117 SmallVector<llvm::unique_function<BeforePassFunc>, 4> BeforePassCallbacks; 118 SmallVector<llvm::unique_function<AfterPassFunc>, 4> AfterPassCallbacks; 119 SmallVector<llvm::unique_function<AfterPassInvalidatedFunc>, 4> 121 SmallVector<llvm::unique_function<BeforeAnalysisFunc>, 4> 123 SmallVector<llvm::unique_function<AfterAnalysisFunc>, 4>
|
/external/llvm-project/llvm/lib/Support/ |
D | Threading.cpp | 65 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async() 75 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async() 104 using AsyncThreadInfo = llvm::unique_function<void()>; 126 llvm::unique_function<void()> Func, in llvm_execute_on_thread_async()
|
/external/llvm-project/llvm/include/llvm/ExecutionEngine/ |
D | RuntimeDyld.h | 274 unique_function<Error(const object::ObjectFile &Obj, LoadedObjectInfo &, 277 unique_function<void(object::OwningBinary<object::ObjectFile> O, 300 unique_function<Error(const object::ObjectFile &Obj, 304 unique_function<void(object::OwningBinary<object::ObjectFile>,
|
D | JITSymbol.h | 267 using GetAddressFtor = unique_function<Expected<JITTargetAddress>()>; 375 using OnResolvedFunction = unique_function<void(Expected<LookupResult>)>;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/ |
D | RuntimeDyld.h | 275 unique_function<Error(std::unique_ptr<LoadedObjectInfo>, 278 unique_function<void(Error)> OnEmitted); 299 unique_function<Error(std::unique_ptr<RuntimeDyld::LoadedObjectInfo>, 302 unique_function<void(Error)> OnEmitted);
|
D | JITSymbol.h | 239 using GetAddressFtor = unique_function<Expected<JITTargetAddress>()>; 347 using OnResolvedFunction = unique_function<void(Expected<LookupResult>)>;
|
/external/llvm-project/clang/test/CodeCompletion/ |
D | lambdas.cpp | 40 template <class T> struct unique_function {}; struct 43 unique_function<void()> a = {}; in test3()
|
/external/llvm-project/clang-tools-extra/clangd/support/ |
D | Threading.h | 113 void runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action); 124 std::future<T> runAsync(llvm::unique_function<T()> Action) { in runAsync() 127 [](llvm::unique_function<T()> &&Action, Context Ctx) { in runAsync()
|
D | Function.h | 28 using Callback = llvm::unique_function<void(llvm::Expected<T>)>;
|
/external/llvm-project/clang/unittests/AST/ |
D | RecursiveASTVisitorTest.cpp | 27 ProcessASTAction(llvm::unique_function<void(clang::ASTContext &)> Process) in ProcessASTAction() 49 llvm::unique_function<void(clang::ASTContext &)> Process;
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MachinePassManager.h | 242 SmallVector<llvm::unique_function<FuncTy>, 4> InitializationFuncs; 243 SmallVector<llvm::unique_function<FuncTy>, 4> FinalizationFuncs; 246 std::map<PassIndex, llvm::unique_function<FuncTy>> MachineModulePasses;
|
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
D | LazyReexports.h | 41 unique_function<Error(JITTargetAddress ResolvedAddr)>; 89 using NotifyTargetResolved = unique_function<void(JITTargetAddress)>;
|
D | IRTransformLayer.h | 31 using TransformFunction = unique_function<Expected<ThreadSafeModule>(
|
D | TPCDynamicLibrarySearchGenerator.h | 25 using SymbolPredicate = unique_function<bool(const SymbolStringPtr &)>;
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | TidyProvider.h | 22 llvm::unique_function<void(tidy::ClangTidyOptions &,
|
D | TUScheduler.cpp | 391 llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action, 408 llvm::unique_function<void(std::shared_ptr<const PreambleData>)>); 435 void startTask(llvm::StringRef Name, llvm::unique_function<void()> Task, 448 llvm::unique_function<void()> Action; 687 llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action, in runWithAST() 962 llvm::unique_function<void()> Task, in startTask() 1307 llvm::unique_function<void()> Action) { in run() 1324 llvm::unique_function<void(llvm::Expected<InputsAndAST>)> Action, in runWithAST()
|
D | Config.h | 57 std::vector<llvm::unique_function<void(std::vector<std::string> &) const>>
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | TUSchedulerTests.cpp | 97 llvm::unique_function<void()> CB) { in updateWithCallback() 104 llvm::unique_function<void()> CB) { in updateWithCallback() 109 static Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>> 134 llvm::unique_function<void(PathRef, std::vector<Diag>)> &> (*D)( in captureDiags() 147 llvm::unique_function<void(std::vector<Diag>)> CB) { in updateWithDiags() 160 llvm::unique_function<void(std::vector<Diag>)> CB) { in updateWithDiags() 169 Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | Threading.h | 83 llvm::unique_function<void()> Func,
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | RenamerClangTidyCheck.h | 147 llvm::unique_function<void(DiagnosticBuilder &)> ApplyArgs;
|