Lines Matching full:alignment
21 // We sort the stack variables by alignment (largest first) to minimize
22 // unnecessary large gaps due to alignment.
30 return a.Alignment > b.Alignment; in CompareVars()
33 // We also force minimal alignment for all vars to kMinAlignment so that vars
34 // with e.g. alignment 1 and alignment 16 do not get reordered by CompareVars.
38 // The resulting frame size is a multiple of Alignment.
39 static size_t VarAndRedzoneSize(size_t Size, size_t Alignment) { in VarAndRedzoneSize() argument
47 return alignTo(Res, Alignment); in VarAndRedzoneSize()
61 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment); in ComputeASanStackFrameLayout()
67 Layout->FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout()
71 Vars[0].Alignment); in ComputeASanStackFrameLayout()
76 size_t Alignment = std::max(Granularity, Vars[i].Alignment); in ComputeASanStackFrameLayout() local
77 (void)Alignment; // Used only in asserts. in ComputeASanStackFrameLayout()
80 assert((Alignment & (Alignment - 1)) == 0); in ComputeASanStackFrameLayout()
81 assert(Layout->FrameAlignment >= Alignment); in ComputeASanStackFrameLayout()
82 assert((Offset % Alignment) == 0); in ComputeASanStackFrameLayout()
87 : std::max(Granularity, Vars[i + 1].Alignment); in ComputeASanStackFrameLayout()