[llvm] [AArch64] Roundup newly allocated stack size according -mstack-alignment (PR #100859)

David Green via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 27 09:04:45 PDT 2024


================
@@ -81,6 +81,13 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
 
   bool IsStreaming;
   bool IsStreamingCompatible;
+
+  /// The minimum alignment known to hold of the stack frame on
+  /// entry to the function and which must be maintained by every function.
+  Align stackAlignment = Align(16);
----------------
davemgreen wrote:

stackAlignment -> StackAlignment.

Does this need to be stored in the Subtarget, if the value does not depend on the target?

https://github.com/llvm/llvm-project/pull/100859


More information about the llvm-commits mailing list