Default off.
The allocation/deallocation function overload resolutions are following
the Issue #4 of http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2014r0.pdf.
Paths
| Differential D102147
[Clang][Coroutines] Implement P2014R0 Option 1 behind -fcoroutines-aligned-alloc AbandonedPublic Authored by ychen on May 9 2021, 8:34 PM.
Details
Summary Default off. The allocation/deallocation function overload resolutions are following
Diff Detail
Unit TestsFailed Event TimelineHerald added subscribers: ChuanqiXu, dexonsmith, lxfind, dang. · View Herald TranscriptMay 9 2021, 8:34 PM ychen added a parent revision: D97915: [Coroutines] Handle overaligned frame allocation.May 9 2021, 8:34 PM Comment Actions Since D97915 would fix the problem that the variables in the frame may not be aligned, I think this option fcoroutines-aligned-alloc won't affect normal programmers other than language lawyers. Do you think so? Comment Actions
I think that's right that if all a user want is alignment, then fcoroutines-aligned-alloc may not be necessary. However if they define customed aligned allocators/dealllocators, this is needed to make it work. Comment Actions
I see. The overall idea looks good. I would try to look into the details.
Revision Contents
Diff 344609 clang/docs/ClangCommandLineReference.rst
clang/include/clang/Basic/Builtins.def
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Sema/SemaCoroutine.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/CodeGenCoroutines/coro-aligned-alloc.cpp
|