This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add -malign-double support
AbandonedPublic

Authored by phosek on Sep 14 2015, 12:17 PM.

Details

Reviewers
None
Summary

The -malign-double flag causes i64 and f64 types to have alignment 8
instead of 4. On x86-64, -malign-double is enabled by default.

Diff Detail

Event Timeline

phosek updated this revision to Diff 34723.Sep 14 2015, 12:17 PM
phosek retitled this revision from to [X86] Add -malign-double support.
phosek updated this object.
jfb added inline comments.Sep 14 2015, 12:36 PM
include/clang/Basic/TargetInfo.h
816

I don't understand what this is for.

lib/Basic/Targets.cpp
3572

This refactoring is orthogonal to aligned double? Could you do it in its own patch?