OSDN Git Service

IR: Move NumElements field from {Array,Vector}Type to SequentialType.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Dec 2016 03:20:58 +0000 (03:20 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Dec 2016 03:20:58 +0000 (03:20 +0000)
commita705e0edef18f8b292dbf26c88df26c10cad5294
tree6d8767db2ac9e3d4a1d3972bfc7dc2d3c0536759
parent2a9507e648837f83e160e899b7ddba182b893422
IR: Move NumElements field from {Array,Vector}Type to 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.

Differential Revision: https://reviews.llvm.org/D27122

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288464 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ProgrammersManual.rst
include/llvm/IR/DerivedTypes.h
include/llvm/IR/GetElementPtrTypeIterator.h
lib/IR/ConstantFold.cpp
lib/IR/Constants.cpp
lib/IR/Type.cpp
lib/Linker/IRMover.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Utils/FunctionComparator.cpp