diff options
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 47aa6d1683..30aadf6bdf 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -686,6 +686,12 @@ public: return JumpBufAlignment; } + /// getMinStackArgumentAlignment - return the minimum stack alignment of an + /// argument. + unsigned getMinStackArgumentAlignment() const { + return MinStackArgumentAlignment; + } + /// getPrefLoopAlignment - return the preferred loop alignment. /// unsigned getPrefLoopAlignment() const { @@ -1082,6 +1088,12 @@ protected: PrefLoopAlignment = Align; } + /// setMinStackArgumentAlignment - Set the minimum stack alignment of an + /// argument. + void setMinStackArgumentAlignment(unsigned Align) { + MinStackArgumentAlignment = Align; + } + /// setShouldFoldAtomicFences - Set if the target's implementation of the /// atomic operation intrinsics includes locking. Default is false. void setShouldFoldAtomicFences(bool fold) { @@ -1515,6 +1527,11 @@ private: /// buffers unsigned JumpBufAlignment; + /// MinStackArgumentAlignment - The minimum alginment that any argument + /// on the stack needs to have. + /// + unsigned MinStackArgumentAlignment; + /// PrefLoopAlignment - The perferred loop alignment. /// unsigned PrefLoopAlignment; |