[PATCH] D104023: [AMDGPU] Make sure that the size of module (or kernel) lds struct is multiple of its alignment.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 06:02:00 PDT 2021


foad added a comment.

> When we create module (or per kernel) lds struct, we fix its alignment as the largest of struct
> members. Add padding at the end of the struct so that the size of struct is multiple of its alignment.

Why?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104023



More information about the llvm-commits mailing list