| /llvm-project-15.0.7/lldb/test/API/python_api/value/linked_list/ |
| H A D | main.cpp | 3 class Task { class 6 Task *next; 7 Task(int i, Task *n): in Task() function in Task 17 Task *task1 = new Task(1, NULL); in main() 18 Task *task2 = new Task(2, NULL); in main() 19 Task *task3 = new Task(3, NULL); // Orphaned. in main() 20 Task *task4 = new Task(4, NULL); in main() 21 Task *task5 = new Task(5, NULL); in main() 40 Task *task_evil = new Task(1, NULL); in main() 41 Task *task_2 = new Task(2, NULL); in main() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/python_api/type/ |
| H A D | main.cpp | 3 class Task { class 6 Task *next; 25 Task(int i, Task *n): in Task() function in Task 38 Task *task_head = new Task(-1, NULL); in main() 39 Task *task1 = new Task(1, NULL); in main() 40 Task *task2 = new Task(2, NULL); in main() 41 Task *task3 = new Task(3, NULL); // Orphaned. in main() 42 Task *task4 = new Task(4, NULL); in main() 43 Task *task5 = new Task(5, NULL); in main() 51 Task *t = task_head; in main() [all …]
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | coroutine-locals-cleanup.cpp | 7 struct Task { struct 9 Task get_return_object() noexcept { in get_return_object() argument 10 return Task{coroutine_handle<promise_type>::from_promise(*this)}; in get_return_object() 53 Task(handle_t coro) noexcept : coro_(coro) {} in Task() function 57 Task(const Task &t) = delete; argument 58 Task(Task &&t) noexcept; 59 ~Task(); 60 Task &operator=(Task t) noexcept; 65 static Task foo() { in foo() 69 Task bar() { in bar()
|
| H A D | coroutine-locals-cleanup-exp-namespace.cpp | 7 struct Task { struct 9 Task get_return_object() noexcept { in get_return_object() argument 10 return Task{coroutine_handle<promise_type>::from_promise(*this)}; in get_return_object() 53 Task(handle_t coro) noexcept : coro_(coro) {} in Task() argument 57 Task(const Task &t) = delete; argument 58 Task(Task &&t) noexcept; 59 ~Task(); 60 Task &operator=(Task t) noexcept; 65 static Task foo() { in foo() 69 Task bar() { in bar()
|
| /llvm-project-15.0.7/clang/test/CodeGenCoroutines/ |
| H A D | coro-symmetric-transfer-02.cpp | 5 struct Task { struct 7 Task get_return_object() noexcept { in get_return_object() argument 8 return Task{std::coroutine_handle<promise_type>::from_promise(*this)}; in get_return_object() 51 Task(handle_t coro) noexcept : coro_(coro) {} in Task() function 55 Task(const Task &t) = delete; argument 56 Task(Task &&t) noexcept; 57 ~Task(); 58 Task &operator=(Task t) noexcept; 63 static Task foo() { in foo() 67 Task bar() { in bar()
|
| H A D | coro-symmetric-transfer-02-exp-namespace.cpp | 7 struct Task { struct 9 Task get_return_object() noexcept { in get_return_object() argument 10 return Task{coro::coroutine_handle<promise_type>::from_promise(*this)}; in get_return_object() 53 Task(handle_t coro) noexcept : coro_(coro) {} in Task() argument 57 Task(const Task &t) = delete; argument 58 Task(Task &&t) noexcept; 59 ~Task(); 60 Task &operator=(Task t) noexcept; 65 static Task foo() { in foo() 69 Task bar() { in bar()
|
| H A D | coro-elide.cpp | 6 struct Task { struct 18 Task get_return_object() noexcept { in get_return_object() argument 31 Task(std::coroutine_handle<promise_type> handle) : handle(handle) {} in Task() function 32 ~Task() { in ~Task() argument 53 Task task0() { in task0() argument 57 Task task1() { in task1()
|
| H A D | coro-symmetric-transfer-03.cpp | 6 struct Task { struct 16 Task get_return_object() noexcept { in get_return_object() argument 29 Task(std::coroutine_handle<promise_type> handle) : handle(handle) {} in Task() function 30 ~Task() { in ~Task() argument 60 Task task0() { in task0() argument
|
| H A D | coro-lambda-exp-namespace.cpp | 28 struct Task { struct 30 Task get_return_object(); argument 40 auto AwaitAsync = [&]() -> Task { in SyncAwait() 46 Task t = AwaitAsync(); in SyncAwait()
|
| H A D | coro-lambda.cpp | 28 struct Task { struct 30 Task get_return_object(); argument 40 auto AwaitAsync = [&]() -> Task { in SyncAwait() 43 Task t = AwaitAsync(); in SyncAwait()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | CancellationTests.cpp | 15 auto Task = cancelableTask(); in TEST() local 16 WithContext ContextWithCancellation(std::move(Task.first)); in TEST() 18 Task.second(); in TEST() 25 auto Task = cancelableTask(); in TEST() local 26 ContextWithCancellation.emplace(std::move(Task.first)); in TEST() 28 Task.second(); in TEST() 35 auto Task = cancelableTask(); in TEST() local 39 Task.second(); in TEST() 43 Task.second(); in TEST() 79 auto Task = cancelableTask(); in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/utils/vscode/llvm/src/ |
| H A D | litTaskProvider.ts | 15 private litPromise: Thenable<vscode.Task[]> | undefined = undefined; 28 public provideTasks(): Thenable<vscode.Task[]> | undefined { 35 public resolveTask(_task: vscode.Task): vscode.Task | undefined { 46 return new vscode.Task( 57 private async getLITTasks(): Promise<vscode.Task[]> { 58 let result: vscode.Task[] = []; 66 result.push(new vscode.Task({ type: 'llvm-lit', task: taskName }, 72 result.push(new vscode.Task({ type: 'llvm-lit', task: taskName },
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundQueue.cpp | 23 llvm::Optional<Task> Task; in work() local 34 Task = std::move(Queue.back()); in work() 39 if (Task->ThreadPri != llvm::ThreadPriority::Default && in work() 41 llvm::set_thread_priority(Task->ThreadPri); in work() 42 Task->Run(); in work() 43 if (Task->ThreadPri != llvm::ThreadPriority::Default) in work() 76 bool BackgroundQueue::adjust(Task &T) { in adjust() 88 void BackgroundQueue::push(Task T) { in push() 101 void BackgroundQueue::append(std::vector<Task> Tasks) { in append() 104 for (Task &T : Tasks) { in append() [all …]
|
| H A D | Background.h | 71 struct Task { struct 72 explicit Task(std::function<void()> Run) : Run(std::move(Run)) {} in Task() function 81 bool operator<(const Task &O) const { return QueuePri < O.QueuePri; } argument 96 void push(Task); 97 void append(std::vector<Task>); 118 bool adjust(Task &T); 124 std::vector<Task> Queue; // max-heap 213 BackgroundQueue::Task 215 BackgroundQueue::Task indexFileTask(std::string Path);
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | ThreadPool.h | 67 auto Task = in async() local 69 return async(std::move(Task)); in async() 75 auto Task = in async() local 77 return async(Group, std::move(Task)); in async() 121 createTaskAndFuture(std::function<ResTy()> Task) { in createTaskAndFuture() argument 126 [Promise = std::move(Promise), Task]() { Promise->set_value(Task()); }, in createTaskAndFuture() 130 createTaskAndFuture(std::function<void()> Task) { in createTaskAndFuture() argument 134 return {[Promise = std::move(Promise), Task]() { in createTaskAndFuture() 135 Task(); in createTaskAndFuture() 148 std::shared_future<ResTy> asyncImpl(std::function<ResTy()> Task, in asyncImpl() argument [all …]
|
| H A D | Caching.h | 42 std::function<Expected<std::unique_ptr<CachedFileStream>>(unsigned Task)>; 56 std::function<Expected<AddStreamFn>(unsigned Task, StringRef Key)>; 62 std::function<void(unsigned Task, std::unique_ptr<MemoryBuffer> MB)>; 72 AddBufferFn AddBuffer = [](size_t Task, std::unique_ptr<MemoryBuffer> MB) {
|
| H A D | TaskQueue.h | 40 template <typename Callable> struct Task { struct 42 explicit Task(Callable C, TaskQueue &Parent) in Task() argument 86 Task<Callable> T{std::move(C), *this}; in async() argument
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Caching.cpp | 40 return [=](unsigned Task, StringRef Key) -> Expected<AddStreamFn> { in localCache() argument 57 AddBuffer(Task, std::move(*MBOrErr)); in localCache() 80 unsigned Task; in localCache() member 84 unsigned Task) in localCache() 87 Task(Task) {} in localCache() 136 AddBuffer(Task, std::move(*MBOrErr)); in localCache() 140 return [=](size_t Task) -> Expected<std::unique_ptr<CachedFileStream>> { in localCache() argument 161 AddBuffer, std::move(*Temp), std::string(EntryPath.str()), Task); in localCache()
|
| H A D | ThreadPool.cpp | 61 std::function<void()> Task; in processTasks() local 84 Task = std::move(Tasks.front().first); in processTasks() 99 Task(); in processTasks() 203 auto Task = std::move(Tasks.front().first); in wait() local 205 Task(); in wait()
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | TaskDispatch.h | 34 class Task : public RTTIExtends<Task, RTTIRoot> { 38 virtual ~Task() = default; 51 class GenericNamedTask : public RTTIExtends<GenericNamedTask, Task> { 100 virtual void dispatch(std::unique_ptr<Task> T) = 0; 109 void dispatch(std::unique_ptr<Task> T) override; 117 void dispatch(std::unique_ptr<Task> T) override;
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | TaskDispatch.cpp | 14 char Task::ID = 0; 18 void Task::anchor() {} in anchor() 21 void InPlaceTaskDispatcher::dispatch(std::unique_ptr<Task> T) { T->run(); } in dispatch() 26 void DynamicThreadPoolTaskDispatcher::dispatch(std::unique_ptr<Task> T) { in dispatch()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | DataflowAnalysis.cpp | 49 std::function<void(ProgramPoint)> Task) { in doForAllPreds() argument 53 Task(ProgramPoint::getLastPointAt(*Pred)); in doForAllPreds() 64 Task(ProgramPoint(&Inst)); in doForAllPreds() 71 std::function<void(ProgramPoint)> Task) { in doForAllSuccs() argument 74 Task(ProgramPoint::getFirstPointAt(*Succ)); in doForAllSuccs()
|
| /llvm-project-15.0.7/llvm/lib/LTO/ |
| H A D | LTOBackend.cpp | 103 Hook = [=](unsigned Task, const Module &M) { in addSaveTemps() argument 106 if (LinkerHook && !LinkerHook(Task, M)) in addSaveTemps() 115 if (Task != (unsigned)-1) in addSaveTemps() 116 PathPrefix += utostr(Task) + "."; in addSaveTemps() 381 sys::path::append(DwoFile, std::to_string(Task) + ".dwo"); in codegen() 555 Task); in thinBackend() 567 codegen(Conf, TM.get(), AddStream, Task, Mod, CombinedIndex); in thinBackend() 571 if (Conf.PreOptModuleHook && !Conf.PreOptModuleHook(Task, Mod)) in thinBackend() 577 if (!opt(Conf, TM, Task, Mod, /*IsThinLTO=*/true, in thinBackend() 582 codegen(Conf, TM, AddStream, Task, Mod, CombinedIndex); in thinBackend() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | thread-safety-coro.cpp | 31 class Task { class 38 Task get_return_object() noexcept; 46 Task Foo() noexcept { in Foo()
|
| /llvm-project-15.0.7/llvm/include/llvm/LTO/ |
| H A D | LTOBackend.h | 37 bool opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, 54 Error thinBackend(const Config &C, unsigned Task, AddStreamFn AddStream,
|