Home
last modified time | relevance | path

Searched refs:unique_function (Results 1 – 25 of 89) sorted by relevance

1234

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DFunctionExtrasTest.cpp23 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 DFunctionExtras.h368 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 DPassInstrumentation.h149 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 DSimpleRemoteEPCServer.h38 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 DMemoryMapper.h43 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 DMachOPlatform.h167 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 DELFNixPlatform.h179 unique_function<void(Expected<ELFNixJITDylibInitializerSequence>)>;
182 unique_function<void(Expected<ELFNixJITDylibDeinitializerSequence>)>;
184 using SendSymbolAddressFn = unique_function<void(Expected<ExecutorAddr>)>;
H A DLazyReexports.h41 unique_function<Error(JITTargetAddress ResolvedAddr)>;
89 using NotifyTargetResolved = unique_function<void(JITTargetAddress)>;
H A DSimpleRemoteEPC.h44 unique_function<CreateMemoryManagerFn> CreateMemoryManager;
45 unique_function<CreateMemoryAccessFn> CreateMemoryAccess;
/llvm-project-15.0.7/clang/test/CodeCompletion/
H A Dlambdas.cpp40 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 DTUScheduler.h102 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 DFeatureModule.h135 using OutgoingNotification = llvm::unique_function<void(const P &)>;
137 using OutgoingMethod = llvm::unique_function<void(const P &, Callback<R>)>;
H A DLSPBinder.h40 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 DEditline.h95 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 DRuntimeDyld.h292 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 DJITLinkMemoryManager.h120 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 DExtensibleDialect.h56 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 DOperationSupport.h67 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 DWrapperFunctionUtilsTest.cpp106 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 DThreading.h115 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 DTransport.h96 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 DMachinePassManager.h243 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 DProjectAware.cpp50 llvm::unique_function<IndexContents(llvm::StringRef) const>
114 llvm::unique_function<IndexContents(llvm::StringRef) const>
H A DIndex.h155 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 DRecursiveASTVisitorTest.cpp29 ProcessASTAction(llvm::unique_function<void(clang::ASTContext &)> Process) in ProcessASTAction()
51 llvm::unique_function<void(clang::ASTContext &)> Process;

1234