[PATCH] D88982: [NFCI] Add LinearPolyBase as base class for ElementCount, TypeSize and StackOffset.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 22 10:15:07 PDT 2020
sdesmalen updated this revision to Diff 300031.
sdesmalen marked 6 inline comments as done.
sdesmalen added a comment.
- Removed need for `LinearPolyBaseOperators`. The code now passes the derived leaf type (i.e. ElementCount/TypeSize) directly to its parent classes and the operators in the base class are now defined to take/return the leaf type.
- The scalar type is no longer passed separately, but derived from the Leaf type using a type traits class.
- Added new tests based directly on LinearPolyBase.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88982/new/
https://reviews.llvm.org/D88982
Files:
llvm/include/llvm/Support/TypeSize.h
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/LinearPolyBaseTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88982.300031.patch
Type: text/x-patch
Size: 28494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201022/11f28932/attachment.bin>
More information about the llvm-commits
mailing list