From cc40ea7f9a26192b9a377569e2798c635765f53c Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 13 Jul 2012 23:57:43 +0000 Subject: 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. llvm-svn: 160209 --- clang/lib/Basic/TargetInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Basic/TargetInfo.cpp') diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 8c49486b0dc..db5941a5d92 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/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; -- cgit v1.2.3