Guillaume Chatelet
af9e09671c
[Alignment][NFC] Deprecate Align::None()
...
Summary:
This is a follow up on https://reviews.llvm.org/D71473#inline-647262 .
There's a caveat here that `Align(1)` relies on the compiler understanding of `Log2_64` implementation to produce good code. One could use `Align()` as a replacement but I believe it is less clear that the alignment is one in that case.
Reviewers: xbolva00, courbet, bollu
Subscribers: arsenm, dylanmckay, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, jrtc27, atanasyan, jsji, Jim, kerbowa, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D73099
2020-01-24 12:53:58 +01:00
Guillaume Chatelet
8cadee3a88
Fix https://bugs.llvm.org/show_bug.cgi?id=43791
2019-10-28 10:40:35 +01:00
Guillaume Chatelet
4f6c7c9728
[Alignment][NFC] Move and type functions from MathExtras to Alignment
...
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68942
llvm-svn: 374773
2019-10-14 13:14:34 +00:00
Guillaume Chatelet
1f108d3854
[Alignment][NFC] Support compile time constants
...
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68936
llvm-svn: 374758
2019-10-14 09:04:15 +00:00
Guillaume Chatelet
9cce6a4e8f
Revert "[Alignment][NFC] Allow constexpr Align"
...
This reverts commit b3af236fb5fc6e50fcc1b54d868f0bff557f3fb1.
llvm-svn: 373619
2019-10-03 15:53:50 +00:00
Guillaume Chatelet
b9b9f59990
[Alignment][NFC] Allow constexpr Align
...
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68329
llvm-svn: 373580
2019-10-03 10:53:10 +00:00
Guillaume Chatelet
1367c6179c
[Alignment][NFC] Adding a max function.
...
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68201
llvm-svn: 373196
2019-09-30 09:59:31 +00:00
Guillaume Chatelet
08358b1ba1
[Alignment] Add a None() member function
...
Summary:
This will allow writing `if(A != llvm::Align::None())` which is clearer than `if(A > llvm::Align(1))`
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67697
llvm-svn: 372207
2019-09-18 09:24:40 +00:00
Simon Pilgrim
6274984500
[LLVM][Alignment] Fix MSVC potential division by 0 warning (PR42911)
...
Original Patch by @gchatelet (Guillaume Chatelet)
Differential Revision: https://reviews.llvm.org/D65859
llvm-svn: 369016
2019-08-15 16:34:23 +00:00
Guillaume Chatelet
17e23310d6
[LLVM][Alignment] Introduce Alignment In GlobalObject
...
Summary:
This is patch is part of a serie to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: jfb
Subscribers: hiraditya, dexonsmith, llvm-commits, courbet
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65748
Address comments
llvm-svn: 368000
2019-08-06 09:03:21 +00:00
Bill Wendling
66ceb05b0b
Add brackets to remove warnings about ambiguous 'else's.
...
llvm-svn: 367740
2019-08-03 00:26:10 +00:00
Guillaume Chatelet
e55aa5786f
[LLVM][Alignment] Fix AlignmentTest on platform where size_t != uint64_t
...
Reviewers: yroux
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65563
llvm-svn: 367532
2019-08-01 09:20:00 +00:00
Guillaume Chatelet
8f9ff56b40
[LLVM] Fix Alignment death tests in Release Mode
...
llvm-svn: 367427
2019-07-31 12:47:20 +00:00
Guillaume Chatelet
bcc59ccbb3
Fix mismatching vector type in AlignmentTest.cpp
...
llvm-svn: 367404
2019-07-31 10:00:48 +00:00
Guillaume Chatelet
1e50b9400b
[LLVM][NFC] Adding an Alignment type to LLVM
...
Summary:
This patch introduces a type to straighten LLVM's alignment management.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
The next step is to use this type throughout LLVM
Reviewers: jfb, jakehehrlich
Subscribers: mgorny, mgrang, dexonsmith, llvm-commits, courbet
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64790
llvm-svn: 367393
2019-07-31 08:27:42 +00:00