diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-02 03:20:58 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-02 03:20:58 +0000 |
commit | a705e0edef18f8b292dbf26c88df26c10cad5294 (patch) | |
tree | 6d8767db2ac9e3d4a1d3972bfc7dc2d3c0536759 /docs | |
parent | 2a9507e648837f83e160e899b7ddba182b893422 (diff) |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ProgrammersManual.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 9375b625518..5ae54ffdff4 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -3283,13 +3283,13 @@ Important Derived Types * ``const Type * getElementType() const``: Returns the type of each of the elements in the sequential type. + * ``uint64_t getNumElements() const``: Returns the number of elements + in the sequential type. + ``ArrayType`` This is a subclass of SequentialType and defines the interface for array types. - * ``unsigned getNumElements() const``: Returns the number of elements - in the array. - ``PointerType`` Subclass of Type for pointer types. |