[PATCH] D80716: [AArch64]: BFloat Load/Store Intrinsics&CodeGen
Simon Tatham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 07:02:40 PDT 2020
simon_tatham added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:10366
+ auto Alignment = CGM.getNaturalPointeeTypeAlignment(
+ E->getArg(0)->IgnoreParenCasts()->getType());
Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(VTy));
----------------
What effect is this change of strategy having on the alignment computation, for the already-supported instances of this builtin?
It //looks// to me as if `__builtin_neon_vld1_v` with (say) a `uint8_t *` pointer argument will now compute `Alignment=1` (the natural alignment of the pointee type), whereas it would previously have computed `Alignment=8` (the size of the whole vector being loaded or stored).
Is that intentional? Or accidental? Or have I completely misunderstood what's going on?
(Whichever of the three, some discussion in the commit message would be a good idea, explaining why this change does or does not make a difference, as appropriate.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80716/new/
https://reviews.llvm.org/D80716
More information about the cfe-commits
mailing list