Home
last modified time | relevance | path

Searched refs:Promise (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project-15.0.7/clang/test/AST/Inputs/
H A Dstd-coroutine.h11 template <typename Promise = void> struct coroutine_handle;
37 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
46 Promise &promise() const {
47 return *reinterpret_cast<Promise *>(
48 __builtin_coro_promise(ptr, alignof(Promise), false));
50 static coroutine_handle from_promise(Promise &promise) {
52 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
H A Dstd-coroutine-exp-namespace.h11 template <typename Promise = void> struct coroutine_handle;
37 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
46 Promise &promise() const {
47 return *reinterpret_cast<Promise *>(
48 __builtin_coro_promise(ptr, alignof(Promise), false));
50 static coroutine_handle from_promise(Promise &promise) {
52 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
/llvm-project-15.0.7/clang/test/CodeGenCoroutines/Inputs/
H A Dcoroutine-exp-namespace.h11 template <typename Promise = void> struct coroutine_handle;
37 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
46 Promise &promise() const {
47 return *reinterpret_cast<Promise *>(
48 __builtin_coro_promise(ptr, alignof(Promise), false));
50 static coroutine_handle from_promise(Promise &promise) {
52 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
H A Dcoroutine.h10 template <typename Promise = void> struct coroutine_handle;
36 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
45 Promise &promise() const {
46 return *reinterpret_cast<Promise *>(
47 __builtin_coro_promise(ptr, alignof(Promise), false));
49 static coroutine_handle from_promise(Promise &promise) {
51 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DThreadPool.h122 std::shared_ptr<std::promise<ResTy>> Promise = in createTaskAndFuture() local
124 auto F = Promise->get_future(); in createTaskAndFuture()
126 [Promise = std::move(Promise), Task]() { Promise->set_value(Task()); }, in createTaskAndFuture()
131 std::shared_ptr<std::promise<void>> Promise = in createTaskAndFuture() local
133 auto F = Promise->get_future(); in createTaskAndFuture()
134 return {[Promise = std::move(Promise), Task]() { in createTaskAndFuture()
136 Promise->set_value(); in createTaskAndFuture()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dlate-parsing-eager-instantiation.cpp23 template <typename Promise> struct coroutine_handle {
24 Promise &promise() const { return in promise()
25 *static_cast<Promise *>(nullptr); // expected-warning {{binding dereferenced null}} in promise()
29 template <typename Promise> auto GetCurrenPromise() { in GetCurrenPromise()
31 void await_suspend(coroutine_handle<Promise> h) { in GetCurrenPromise()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
H A Dpromise.pass.cpp61 template <class Promise>
62 void do_test(std::coroutine_handle<Promise>&& H) { in do_test()
66 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&); in do_test()
71 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
H A Dpromise.pass.cpp62 template <class Promise>
63 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
67 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&); in do_test()
72 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&); in do_test()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/
H A Ddestroy.pass.cpp38 template <class Promise>
39 void do_test(std::coroutine_handle<Promise>&& H) { in do_test()
40 using HType = std::coroutine_handle<Promise>; in do_test()
H A Dresume.pass.cpp50 template <class Promise>
51 void do_test(std::coroutine_handle<Promise>&& H) { in do_test()
52 using HType = std::coroutine_handle<Promise>; in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/
H A Ddestroy.pass.cpp39 template <class Promise>
40 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
41 using HType = coro::coroutine_handle<Promise>; in do_test()
H A Dresume.pass.cpp52 template <class Promise>
53 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
54 using HType = coro::coroutine_handle<Promise>; in do_test()
/llvm-project-15.0.7/mlir/utils/vscode/src/
H A DmlirContext.ts161 Promise<vscodelc.LanguageClient> {
199 Promise<[ vscodelc.LanguageClient, string ]> {
254 didOpen : (document, next) : Promise<void> => {
258 return Promise.resolve();
310 workspaceFolder: vscode.WorkspaceFolder): Promise<string> {
349 Promise<string> {
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/
H A Ddone.pass.cpp28 template <class Promise>
29 void do_test(std::coroutine_handle<Promise> const& H) { in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/
H A Ddone.pass.cpp29 template <class Promise>
30 void do_test(coro::coroutine_handle<Promise> const& H) { in do_test()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSyncAPI.cpp42 Future = Promise.get_future(); in operator llvm::unique_function<void(T)>()
43 return [Promise = std::move(Promise)](T Value) mutable { in operator llvm::unique_function<void(T)>()
44 Promise.set_value(std::make_shared<T>(std::move(Value))); in operator llvm::unique_function<void(T)>()
61 std::promise<std::shared_ptr<T>> Promise; member
/llvm-project-15.0.7/clang/test/CodeGenCoroutines/
H A Dcoro-eh-cleanup.cpp9 template <class Promise = void> struct coroutine_handle;
17 template <class Promise> struct coroutine_handle: coroutine_handle<void> {
H A Dcoro-eh-cleanup-exp-namespace.cpp9 template <class Promise = void> struct coroutine_handle;
17 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
H A Dcoro-lambda-exp-namespace.cpp9 template <class Promise = void> struct coroutine_handle;
16 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
H A Dcoro-lambda.cpp9 template <class Promise = void> struct coroutine_handle;
16 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
H A Dcoro-await.cpp8 template <typename Promise = void> struct coroutine_handle;
17 template <typename Promise>
H A Dcoro-await-exp-namespace.cpp9 template <typename Promise = void> struct coroutine_handle;
18 template <typename Promise>
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dubsan-coroutines.cpp10 template <class Promise = void> struct coroutine_handle;
17 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcoroutine_handle-address-return-type.cpp4 template <class Promise = void>
14 template <class Promise>
H A Dcoroutine_handle-address-return-type-exp-namespace.cpp4 template <class Promise = void>
14 template <class Promise>

123