[PATCH] D79719: [AIX] Implement AIX special alignment rule about double/long double
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 15 17:42:12 PDT 2020
hubert.reinterpretcast added inline comments.
================
Comment at: clang/include/clang/Basic/TargetInfo.h:1389
+ /// Whether target supports the special power alignment rules of AIX.
+ virtual bool supportsAIXPowerAlignment() const { return false; }
----------------
Minor nit: Use backquotes around the XL option value "power".
================
Comment at: clang/lib/AST/ASTContext.cpp:2415
// Double and long long should be naturally aligned if possible.
if (const auto *CT = T->getAs<ComplexType>())
----------------
Comment should be updated.
================
Comment at: clang/lib/AST/ASTContext.cpp:2424
+ (T->isSpecificBuiltinType(BuiltinType::LongDouble) &&
+ Target->supportsAIXPowerAlignment()))
// Don't increase the alignment if an alignment attribute was specified on a
----------------
Does `supportsAIXPowerAlignment` express the condition we want to check here? That might be true for an implementation operating with `mac68k` alignment rules.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79719/new/
https://reviews.llvm.org/D79719
More information about the cfe-commits
mailing list