llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.93k stars 11.94k forks source link

Question about attrbutes and C++20 coroutines #108730

Open kelbon opened 1 month ago

kelbon commented 1 month ago

As i understand, now all attributes like [[pure]] [[always_inline]] [[flatten]] [[cold]] [[hot]] etc when applied to coroutine function applied to implicit function which return coroutine, not to coroutine itself

So, my question is how to, for example, apply [[flatten]] to coroutine::resume function? Is it possible?

llvmbot commented 1 month ago

@llvm/issue-subscribers-coroutines

Author: None (kelbon)

As i understand, now all attributes like [[pure]] [[always_inline]] [[flatten]] [[cold]] [[hot]] etc when applied to coroutine function applied to implicit function which return coroutine, not to coroutine itself So, my question is how to, for example, apply [[flatten]] to coroutine::resume function? Is it possible?