- Sema: Add allocation / deallocation substatements.
- Sema: Add labels to final-suspend and deallocation substatements.
- Sema: Allow co_return in a coroutine all by itself
- CG: Emit allocation and deallocation + test
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/CodeGen/CGCoroutine.cpp | ||
|---|---|---|
| 68–69 | I think that's just CGM.getContext().getTargetInfo().getSuitableAlign() / CGM.getContext().getTargetInfo().getCharWidth() | |
| lib/CodeGen/CGCoroutine.cpp | ||
|---|---|---|
| 68–69 | Yay! One less FIXME. I think I will make it to match STDCPP_DEFAULT_NEW_ALIGNMENT: Builder.defineMacro("__STDCPP_DEFAULT_NEW_ALIGNMENT__",
Twine(TI.getNewAlign() / TI.getCharWidth()) +
TI.getTypeConstantSuffix(TI.getSizeType())); | |
| lib/Sema/SemaCoroutine.cpp | ||
| 570 | Remove 'function' from the comment to read: // Build allocation and deallocation expressions. | |
Comment Actions
Addressed review comments. Anything else, @rsmith?
- compute default new align and pass it to coro.id
- fix typo in comment
Comment Actions
I'll simplify and split it into super tiny microscopic patches to have a better chance of being reviewed.
I think that's just CGM.getContext().getTargetInfo().getSuitableAlign() / CGM.getContext().getTargetInfo().getCharWidth()