llvm-project/llvm/lib
Florian Hahn 6149e57dc1
[ThreadPool] Support returning futures with results.
This patch adjusts ThreadPool::async to return futures that wrap
the result type of the passed in callable.

To do so, ThreadPool::asyncImpl first creates a shared promise. The
result of the promise is set in a new callable that first executes the
task. The callable is added to the task queue.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D114183
2021-11-22 21:20:55 +00:00
..
Analysis Revert "[SCEV] Fix and validate ValueExprMap/ExprValueMap consistency" 2021-11-22 15:47:33 +01:00
AsmParser Revert "[DebugInfo] Enforce implicit constraints on `distinct` MDNodes" 2021-11-09 14:27:55 -08:00
BinaryFormat [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
Bitcode [llvm] Use range-based for loops (NFC) 2021-11-20 18:42:10 -08:00
Bitstream
CodeGen [asm] Merge EmitMSInlineAsmStr() and EmitGCCInlineAsmStr() 2021-11-22 11:49:57 -05:00
DWARFLinker Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
DWP
DebugInfo DWARFVerifier: Simplify name lookups 2021-11-19 12:31:27 -08:00
Demangle Fix memory leak in D demangler 2021-11-09 16:08:14 -08:00
ExecutionEngine [ORC][JITLink] Move JITDylib name into JITLinkDylib base class. 2021-11-19 20:54:28 -08:00
Extensions
FileCheck [llvm] Use StringRef::contains (NFC) 2021-10-23 08:45:27 -07:00
Frontend Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
FuzzMutate
Fuzzer
IR [llvm] Use range-based for loops (NFC) 2021-11-18 09:09:52 -08:00
IRReader
InterfaceStub [llvm] Use StringRef::contains (NFC) 2021-10-23 08:45:27 -07:00
LTO [NewPM] Use the default AA pipeline by default 2021-11-04 15:10:34 -07:00
LineEditor
Linker [llvm] Use make_early_inc_range (NFC) 2021-11-05 19:39:07 -07:00
MC [X86] Selective relocation relaxation for +tagged-globals 2021-11-19 07:18:27 -08:00
MCA [MCA] Fix a warning 2021-09-20 09:46:38 -07:00
Object Extend obj2yaml to optionally preserve raw __LINKEDIT/__DATA segments. 2021-11-08 11:30:12 -08:00
ObjectYAML Reland [XCOFF][yaml2obj] support for the auxiliary file header. 2021-11-10 07:23:56 +00:00
Option [llvm/OptTable] Add named param comment for GroupedShortOption 2021-09-27 11:33:29 -04:00
Passes [NewPM] Add option to prevent rerunning function pipeline on functions in CGSCC adaptor 2021-11-17 09:06:46 -08:00
ProfileData [InstrProf][NFC] Fix a few typos in code comments. 2021-11-15 12:55:25 -08:00
Remarks
Support [ThreadPool] Support returning futures with results. 2021-11-22 21:20:55 +00:00
TableGen [Tablegen] Collect all global state into one managed static 2021-11-09 01:24:54 +00:00
Target [AMDGPU] Allow VOP3 source modifiers in fpow expansion 2021-11-22 20:39:46 +00:00
Testing
TextAPI [llvm] Use drop_begin (NFC) 2021-09-16 08:46:26 -07:00
ToolDrivers [Type] Avoid APFloat.h include (NFC) 2021-10-09 11:29:26 +02:00
Transforms [InstCombine] (~(a | b) & c) | ~(c | (a ^ b)) -> ~((a | b) & (c | (b ^ a))) 2021-11-22 10:49:21 -08:00
WindowsManifest Make WindowsManifestMerger::merge() take a MemoryBufferRef 2021-08-24 16:39:20 -04:00
XRay Support: Use Expected<T>::moveInto() in a few places 2021-10-22 12:40:10 -07:00
CMakeLists.txt