| /llvm-project-15.0.7/clang/test/AST/Inputs/ |
| H A D | std-coroutine.h | 11 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 D | std-coroutine-exp-namespace.h | 11 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 D | coroutine-exp-namespace.h | 11 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 D | coroutine.h | 10 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 D | ThreadPool.h | 122 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 D | late-parsing-eager-instantiation.cpp | 23 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 D | promise.pass.cpp | 61 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 D | promise.pass.cpp | 62 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 D | destroy.pass.cpp | 38 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 D | resume.pass.cpp | 50 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 D | destroy.pass.cpp | 39 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 D | resume.pass.cpp | 52 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 D | mlirContext.ts | 161 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 D | done.pass.cpp | 28 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 D | done.pass.cpp | 29 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 D | SyncAPI.cpp | 42 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 D | coro-eh-cleanup.cpp | 9 template <class Promise = void> struct coroutine_handle; 17 template <class Promise> struct coroutine_handle: coroutine_handle<void> {
|
| H A D | coro-eh-cleanup-exp-namespace.cpp | 9 template <class Promise = void> struct coroutine_handle; 17 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
|
| H A D | coro-lambda-exp-namespace.cpp | 9 template <class Promise = void> struct coroutine_handle; 16 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
|
| H A D | coro-lambda.cpp | 9 template <class Promise = void> struct coroutine_handle; 16 template <class Promise> struct coroutine_handle : coroutine_handle<void> {
|
| H A D | coro-await.cpp | 8 template <typename Promise = void> struct coroutine_handle; 17 template <typename Promise>
|
| H A D | coro-await-exp-namespace.cpp | 9 template <typename Promise = void> struct coroutine_handle; 18 template <typename Promise>
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | ubsan-coroutines.cpp | 10 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 D | coroutine_handle-address-return-type.cpp | 4 template <class Promise = void> 14 template <class Promise>
|
| H A D | coroutine_handle-address-return-type-exp-namespace.cpp | 4 template <class Promise = void> 14 template <class Promise>
|