[LLVM][NFC] Adding an Alignment type to LLVM
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 08:27:42 +0000 (08:27 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 31 Jul 2019 08:27:42 +0000 (08:27 +0000)
commitac4869197f89af3b2ae635fb33f1a3059516007d
treee63ca4545c3a57cf147ef61fa17966e3d2b5bb33
parentd2deeb4490ed6fad5832c8958afa6ead283cf85a
[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
llvm/include/llvm/Support/Alignment.h [new file with mode: 0644]
llvm/unittests/Support/AlignmentTest.cpp [new file with mode: 0644]
llvm/unittests/Support/CMakeLists.txt