[llvm-commits] [llvm] r49593 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Apr 12 15:12:22 PDT 2008
Author: asl
Date: Sat Apr 12 17:12:22 2008
New Revision: 49593
URL: http://llvm.org/viewvc/llvm-project?rev=49593&view=rev
Log:
Provide option for stack alignment override
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=49593&r1=49592&r2=49593&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Sat Apr 12 17:12:22 2008
@@ -26,6 +26,10 @@
clEnumValN(X86Subtarget::Intel, "intel", " Emit Intel-style assembly"),
clEnumValEnd));
+cl::opt<unsigned>
+StackAlignment("stack-alignment", cl::init(0),
+ cl::desc("Override default stack alignment"));
+
/// True if accessing the GV requires an extra load. For Windows, dllimported
/// symbols are indirect, loading the value at address GV rather then the
@@ -316,4 +320,7 @@
TargetType == isWindows ||
(TargetType == isELF && Is64Bit))
stackAlignment = 16;
+
+ if (StackAlignment)
+ stackAlignment = StackAlignment;
}
More information about the llvm-commits
mailing list