| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | FunctionExtrasTest.cpp | 23 unique_function<int(int, int)> Sum2 = std::move(Sum); in TEST() 37 Sum2 = unique_function<int(int, int)>(); in TEST() 78 unique_function<long()> Tmp; in TEST() 80 unique_function<long()> C1 = [A]() { return A; }; in TEST() 112 unique_function<int(int)> Small = SmallCallable(); in TEST() 114 unique_function<int(int)> Small2 = std::move(Small); in TEST() 126 unique_function<int()> Large = LargeCallable(); in TEST() 128 unique_function<int()> Large2 = std::move(Large); in TEST() 242 unique_function<int(int) const> Plus2B; in TEST() 284 unique_function<void(Templated<Incomplete> &&)> in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | FunctionExtras.h | 368 unique_function() = default; 370 unique_function(unique_function &&) = default; 371 unique_function(const unique_function &) = delete; 372 unique_function &operator=(unique_function &&) = default; 373 unique_function &operator=(const unique_function &) = delete; 376 unique_function( 396 unique_function(unique_function &&) = default; 397 unique_function(const unique_function &) = delete; 398 unique_function &operator=(unique_function &&) = default; 399 unique_function &operator=(const unique_function &) = delete; [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PassInstrumentation.h | 149 SmallVector<llvm::unique_function<BeforePassFunc>, 4> 152 SmallVector<llvm::unique_function<BeforeSkippedPassFunc>, 4> 155 SmallVector<llvm::unique_function<BeforeNonSkippedPassFunc>, 4> 158 SmallVector<llvm::unique_function<AfterPassFunc>, 4> AfterPassCallbacks; 160 SmallVector<llvm::unique_function<AfterPassInvalidatedFunc>, 4> 163 SmallVector<llvm::unique_function<BeforeAnalysisFunc>, 4> 166 SmallVector<llvm::unique_function<AfterAnalysisFunc>, 4> 169 SmallVector<llvm::unique_function<AnalysisInvalidatedFunc>, 4> 172 SmallVector<llvm::unique_function<AnalysesClearedFunc>, 4>
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/ |
| H A D | SimpleRemoteEPCServer.h | 38 using ReportErrorFunction = unique_function<void(Error)>; 44 virtual void dispatch(unique_function<void()> Work) = 0; 51 void dispatch(unique_function<void()> Work) override; 72 void setErrorReporter(unique_function<void(Error)> ReportError) { in setErrorReporter() 87 Create(unique_function<Error(Setup &S)> SetupFunction, in Create()
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.h | 43 using OnReservedFunction = unique_function<void(Expected<ExecutorAddrRange>)>; 54 using OnInitializedFunction = unique_function<void(Expected<ExecutorAddr>)>; 65 using OnDeinitializedFunction = unique_function<void(Error)>; 72 using OnReleasedFunction = unique_function<void(Error)>;
|
| H A D | MachOPlatform.h | 167 unique_function<void(Expected<ExecutorAddr>)>; 169 unique_function<void(Expected<StringRef>)>; 171 unique_function<void(Expected<MachOJITDylibDepInfoMap>)>; 172 using SendSymbolAddressFn = unique_function<void(Expected<ExecutorAddr>)>;
|
| H A D | ELFNixPlatform.h | 179 unique_function<void(Expected<ELFNixJITDylibInitializerSequence>)>; 182 unique_function<void(Expected<ELFNixJITDylibDeinitializerSequence>)>; 184 using SendSymbolAddressFn = unique_function<void(Expected<ExecutorAddr>)>;
|
| H A D | LazyReexports.h | 41 unique_function<Error(JITTargetAddress ResolvedAddr)>; 89 using NotifyTargetResolved = unique_function<void(JITTargetAddress)>;
|
| H A D | SimpleRemoteEPC.h | 44 unique_function<CreateMemoryManagerFn> CreateMemoryManager; 45 unique_function<CreateMemoryAccessFn> CreateMemoryAccess;
|
| /llvm-project-15.0.7/clang/test/CodeCompletion/ |
| H A D | lambdas.cpp | 40 template <class T> struct unique_function {}; struct 43 unique_function<void()> a = {}; in test3()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | TUScheduler.h | 102 using Callback = llvm::unique_function<void()>; 277 llvm::unique_function<void()> Action); 284 llvm::unique_function<void()> Action); 361 llvm::unique_function<void()> Action, Semaphore &Sem);
|
| H A D | FeatureModule.h | 135 using OutgoingNotification = llvm::unique_function<void(const P &)>; 137 using OutgoingMethod = llvm::unique_function<void(const P &, Callback<R>)>;
|
| H A D | LSPBinder.h | 40 using HandlerMap = llvm::StringMap<llvm::unique_function<HandlerT>>; 81 using OutgoingMethod = llvm::unique_function<void(const P &, Callback<R>)>; 90 using OutgoingNotification = llvm::unique_function<void(const P &)>;
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | Editline.h | 95 llvm::unique_function<bool(Editline *, StringList &)>; 98 llvm::unique_function<int(Editline *, StringList &, int)>; 101 llvm::unique_function<llvm::Optional<std::string>(llvm::StringRef)>; 103 using CompleteCallbackType = llvm::unique_function<void(CompletionRequest &)>;
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/ |
| H A D | RuntimeDyld.h | 292 unique_function<Error(const object::ObjectFile &Obj, LoadedObjectInfo &, 295 unique_function<void(object::OwningBinary<object::ObjectFile> O, 318 unique_function<Error(const object::ObjectFile &Obj, 322 unique_function<void(object::OwningBinary<object::ObjectFile>,
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.h | 120 using OnFinalizedFunction = unique_function<void(Expected<FinalizedAlloc>)>; 121 using OnAbandonedFunction = unique_function<void(Error)>; 146 using OnAllocatedFunction = unique_function<void(AllocResult)>; 149 using OnDeallocatedFunction = unique_function<void(Error)>; 314 using OnCreatedFunction = unique_function<void(Expected<SimpleSegmentAlloc>)>;
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | ExtensibleDialect.h | 56 using VerifierFn = llvm::unique_function<LogicalResult( 58 using ParserFn = llvm::unique_function<ParseResult( 61 using PrinterFn = llvm::unique_function<void( 201 using VerifierFn = llvm::unique_function<LogicalResult( 203 using ParserFn = llvm::unique_function<ParseResult( 206 using PrinterFn = llvm::unique_function<void(
|
| H A D | OperationSupport.h | 67 llvm::unique_function<void(RewritePatternSet &, MLIRContext *) const>; 68 using FoldHookFn = llvm::unique_function<LogicalResult( 70 using HasTraitFn = llvm::unique_function<bool(TypeID) const>; 72 llvm::unique_function<ParseResult(OpAsmParser &, OperationState &) const>; 75 using PopulateDefaultAttrsFn = llvm::unique_function<void( 78 llvm::unique_function<void(Operation *, OpAsmPrinter &, StringRef) const>; 80 llvm::unique_function<LogicalResult(Operation *) const>; 82 llvm::unique_function<LogicalResult(Operation *) const>;
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | WrapperFunctionUtilsTest.cpp | 106 static void voidNoopAsync(unique_function<void(SPSEmpty)> SendResult) { in voidNoopAsync() 129 [](unique_function<void(int32_t)> SendResult, int32_t X, int32_t Y) { in addAsyncWrapper() 152 void asyncFailingWrapperCaller(unique_function<void(WrapperFunctionResult)> F, in asyncFailingWrapperCaller()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | Threading.h | 115 void runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action); 126 std::future<T> runAsync(llvm::unique_function<T()> Action) { in runAsync() 129 [](llvm::unique_function<T()> &&Action, Context Ctx) { in runAsync()
|
| /llvm-project-15.0.7/mlir/lib/Tools/lsp-server-support/ |
| H A D | Transport.h | 96 using Callback = llvm::unique_function<void(llvm::Expected<T>)>; 101 using OutgoingNotification = llvm::unique_function<void(const T &)>; 168 using HandlerMap = llvm::StringMap<llvm::unique_function<HandlerT>>;
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachinePassManager.h | 243 SmallVector<llvm::unique_function<FuncTy>, 4> InitializationFuncs; 244 SmallVector<llvm::unique_function<FuncTy>, 4> FinalizationFuncs; 247 std::map<PassIndex, llvm::unique_function<FuncTy>> MachineModulePasses;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | ProjectAware.cpp | 50 llvm::unique_function<IndexContents(llvm::StringRef) const> 114 llvm::unique_function<IndexContents(llvm::StringRef) const>
|
| H A D | Index.h | 155 llvm::unique_function<IndexContents(llvm::StringRef) const>; 182 llvm::unique_function<IndexContents(llvm::StringRef) const>
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | RecursiveASTVisitorTest.cpp | 29 ProcessASTAction(llvm::unique_function<void(clang::ASTContext &)> Process) in ProcessASTAction() 51 llvm::unique_function<void(clang::ASTContext &)> Process;
|