diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-07-13 23:57:43 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-07-13 23:57:43 +0000 |
commit | f9e9af7df0cea6e997ac04131c7af6ca4384b0cc (patch) | |
tree | e465c3d01b6954e3ae02b85003f2e1135a0fd47e /lib/Basic/TargetInfo.cpp | |
parent | 558e8872b364b43ab9f201dd6b2df9a5b74b0542 (diff) |
Add a per target max vector alignment field (e.g., 32-byte alignment for x86 due to
AVX). Currently, if no aligned attribute is specified the alignment of a vector is
inferred from its size. Thus, very large vectors will be over-aligned with no
benefit. Target owners should set this target max.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 8c49486b0d..db5941a5d9 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -47,6 +47,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { LargeArrayMinWidth = 0; LargeArrayAlign = 0; MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 0; + MaxVectorAlign = 0; SizeType = UnsignedLong; PtrDiffType = SignedLong; IntMaxType = SignedLongLong; |