Guillaume Chatelet
da68fd8f81
Fix https://bugs.llvm.org/show_bug.cgi?id=43791
2019-10-28 10:40:35 +01:00
Guillaume Chatelet
ce56e1a1cc
[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
415df89e22
[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
d1f23bd225
Revert "[Alignment][NFC] Allow constexpr Align"
...
This reverts commit b3af236fb5
.
llvm-svn: 373619
2019-10-03 15:53:50 +00:00
Guillaume Chatelet
b3af236fb5
[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
02c19658ff
[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
ef8ef1278a
[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
1c013ca1f2
[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
396521378f
[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
383650c7f1
Add brackets to remove warnings about ambiguous 'else's.
...
llvm-svn: 367740
2019-08-03 00:26:10 +00:00
Guillaume Chatelet
41dfc69dc7
[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
10dd2965b7
[LLVM] Fix Alignment death tests in Release Mode
...
llvm-svn: 367427
2019-07-31 12:47:20 +00:00
Guillaume Chatelet
c87581c4d4
Fix mismatching vector type in AlignmentTest.cpp
...
llvm-svn: 367404
2019-07-31 10:00:48 +00:00
Guillaume Chatelet
ac4869197f
[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