This revision was automatically updated to reflect the committed changes.
Closed by commit rL297276: Honor __unaligned in codegen for declarations and
expressions (authored by rogfer01).
Changed prior to commit:
https://reviews.llvm.org/D30166?vs=89989&id=91005#toc
Repository:
rL LLVM
https
rnk accepted this revision.
rnk added a comment.
Looks good! Sorry for the delay, I was out last week.
https://reviews.llvm.org/D30166
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
rogfer01 added a comment.
Ping? :-)
Kind regards
https://reviews.llvm.org/D30166
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
I think this LGTM, but you should wait for confirmation from one of the other
reviewers before committing.
https://reviews.llvm.org/D30166
___
rogfer01 updated this revision to Diff 89989.
rogfer01 added a comment.
Avoid altering results of TypeInfo due to the __unaligned qualifier. Instead
override the natural alignment to 1 if the type is __unaligned-qualified.
https://reviews.llvm.org/D30166
Files:
lib/AST/ASTContext.cpp
lib/A
aaron.ballman added a reviewer: majnemer.
aaron.ballman added inline comments.
Comment at: include/clang/AST/ASTContext.h:1909
+// the unqualified type.
+if (T.getQualifiers().hasUnaligned())
+ TI.Align = getCharWidth();
This makes me a bit uncomfort
rogfer01 added a comment.
Ping? :-)
Kind regards
https://reviews.llvm.org/D30166
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
rogfer01 updated this revision to Diff 89172.
rogfer01 marked 2 inline comments as done.
rogfer01 added a comment.
Updated patch. Use TargetInfo::getCharWidth and remove unnecessary else.
https://reviews.llvm.org/D30166
Files:
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/AST/
ahatanak added inline comments.
Comment at: include/clang/AST/ASTContext.h:1910
+if (T.getQualifiers().hasUnaligned())
+ TI.Align = 8;
+return TI;
Is it better to call TargetInfo::getCharWidth() instead of assigning a
hardcoded number here?
==
rogfer01 created this revision.
See related proposal in
http://lists.llvm.org/pipermail/cfe-dev/2017-February/052739.html
This patch honors the unaligned type qualifier (currently available through he
keyword __unaligned and -fms-extensions) in CodeGen. In the current form the
patch affects de
10 matches
Mail list logo