[PATCH] D76526: Add an algorithm for performing "optimal" layout of a struct.

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 08:17:52 PDT 2021


lxfind added a comment.

In D76526#2688002 <https://reviews.llvm.org/D76526#2688002>, @dblaikie wrote:

> Out of curiosity, what's the motivating use case for the fixed offset fields in this tool?

There is a need for this in coroutines. In the coroutine frame layout, the first few fields are fixed according to C++ standard.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76526/new/

https://reviews.llvm.org/D76526



More information about the llvm-commits mailing list