[PATCH] D71499: Add builtins for aligning and checking alignment of pointers and integers
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 5 05:46:08 PST 2020
arichardson updated this revision to Diff 236243.
arichardson added a comment.
- Add a test that the new alignment is propagated to e.g. llvm.memcpy
To do this emit a llvm.assume for pointer types and mark the builtin
as having an alloc_align attribute (although that does not seem to do anything)
- Update docs to mention C17 6.5.6p8, C++ [expr.add]
- Use getLangOpts().isSignedOverflowDefined() in codegen.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71499/new/
https://reviews.llvm.org/D71499
Files:
clang/docs/LanguageExtensions.rst
clang/include/clang/Basic/Builtins.def
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaDecl.cpp
clang/test/CodeGen/builtin-align-array.c
clang/test/CodeGen/builtin-align-assumption.c
clang/test/CodeGen/builtin-align.c
clang/test/Sema/builtin-align.c
clang/test/SemaCXX/builtin-align-cxx.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71499.236243.patch
Type: text/x-patch
Size: 60691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200105/59d8085d/attachment-0001.bin>
More information about the cfe-commits
mailing list