[llvm-commits] [PATCH] Add missing TargetData defaults for 256-bit vector types
Hal Finkel
hfinkel at anl.gov
Thu Dec 29 10:14:08 PST 2011
Any objections?
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp
index 2b39f13..0f85aa6 100644
--- a/lib/Target/TargetData.cpp
+++ b/lib/Target/TargetData.cpp
@@ -152,6 +152,7 @@ void TargetData::init() {
setAlignment(FLOAT_ALIGN, 8, 8, 64); // double
setAlignment(VECTOR_ALIGN, 8, 8, 64); // v2i32, v1i64, ...
setAlignment(VECTOR_ALIGN, 16, 16, 128); // v16i8, v8i16,
v4i32, ...
+ setAlignment(VECTOR_ALIGN, 32, 32, 256); // v4i64, ...
setAlignment(AGGREGATE_ALIGN, 0, 8, 0); // struct
}
Thanks again,
Hal
--
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
More information about the llvm-commits
mailing list