xref: /llvm-project/lldb/test/API/lang/cpp/gmodules/alignment/pch.h (revision 07ffb7e294767b74e43f90e9ab3d713da929b907)
1*07ffb7e2SMichael Buch #ifndef PCH_H_IN
2*07ffb7e2SMichael Buch #define PCH_H_IN
3*07ffb7e2SMichael Buch 
4*07ffb7e2SMichael Buch static const int kAlignment = 64;
5*07ffb7e2SMichael Buch 
6*07ffb7e2SMichael Buch struct [[gnu::aligned(kAlignment)]] RowCol {
7*07ffb7e2SMichael Buch   unsigned row;
8*07ffb7e2SMichael Buch   unsigned col;
9*07ffb7e2SMichael Buch };
10*07ffb7e2SMichael Buch 
11*07ffb7e2SMichael Buch struct [[gnu::aligned(kAlignment)]] Submatrix {
12*07ffb7e2SMichael Buch   struct RowCol origin;
13*07ffb7e2SMichael Buch   struct RowCol size;
14*07ffb7e2SMichael Buch };
15*07ffb7e2SMichael Buch 
16*07ffb7e2SMichael Buch struct [[gnu::aligned(kAlignment)]] MatrixData {
17*07ffb7e2SMichael Buch   struct Submatrix section;
18*07ffb7e2SMichael Buch   unsigned stride;
19*07ffb7e2SMichael Buch };
20*07ffb7e2SMichael Buch 
21*07ffb7e2SMichael Buch #endif // _H_IN
22