[LLVM][NFC] Adding an Alignment type to LLVM
commitcfb12a47a05f5b7e63b4db138c16a241cd515c73
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 08:27:42 +0000 (31 08:27 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 08:27:42 +0000 (31 08:27 +0000)
tree7fdcb391b692d1eeed9561ef638976eed429a91d
parentcf979a0ee595289c650128c2cbd6dd11fadc5f0d
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367393 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Alignment.h [new file with mode: 0644]
unittests/Support/AlignmentTest.cpp [new file with mode: 0644]
unittests/Support/CMakeLists.txt