[PATCH] D27122: IR: Move NumElements field from {Array, Vector}Type to SequentialType.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 21:12:12 PST 2016


pcc created this revision.
pcc added a reviewer: dblaikie.
pcc added a subscriber: llvm-commits.
pcc added a dependency: D26595: IR: Change PointerType to derive from Type rather than SequentialType..

Now that PointerType is no longer a SequentialType, all SequentialTypes
have an associated number of elements, so we can move that information to
the base class, allowing for a number of simplifications.

Depends on https://reviews.llvm.org/D26595


https://reviews.llvm.org/D27122

Files:
  llvm/include/llvm/IR/DerivedTypes.h
  llvm/include/llvm/IR/GetElementPtrTypeIterator.h
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/IR/Constants.cpp
  llvm/lib/IR/Type.cpp
  llvm/lib/Linker/IRMover.cpp
  llvm/lib/Transforms/IPO/GlobalOpt.cpp
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/lib/Transforms/Utils/FunctionComparator.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27122.79273.patch
Type: text/x-patch
Size: 10612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161125/8b253d69/attachment.bin>


More information about the llvm-commits mailing list