[PATCH] D73005: [Codegen] If reasonable, materialize clang's `AssumeAlignedAttr` as llvm's Alignment Attribute on call-site function return value

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 10:01:14 PST 2020


lebedev.ri updated this revision to Diff 239928.
lebedev.ri marked 4 inline comments as done.
lebedev.ri added a comment.

Init `Alignment` to `nullptr` by default.
While there, tune `maybeRaiseRetAlignmentAttribute()` to do nothing
if new alignment is not greater than the existing alignment.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73005/new/

https://reviews.llvm.org/D73005

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/test/CodeGen/assume-aligned-and-alloc-align-attributes.c
  clang/test/CodeGen/builtin-assume-aligned.c
  clang/test/CodeGen/catch-alignment-assumption-attribute-assume_aligned-on-function.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73005.239928.patch
Type: text/x-patch
Size: 13916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200123/8b3b8315/attachment-0001.bin>


More information about the cfe-commits mailing list