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 | bc0705240e0f57f16919382b3b75263df9a9f2a5 (patch) | |
| tree | 1ff0e7415c4d6295cb4baa6ea63b4b38469ff123 /llvm/docs/ProgrammersManual.rst | |
| parent | c3be225895ec2373753b2a23f5aced6bad872d81 (diff) | |
| download | bcm5719-llvm-bc0705240e0f57f16919382b3b75263df9a9f2a5.tar.gz bcm5719-llvm-bc0705240e0f57f16919382b3b75263df9a9f2a5.zip | |
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
llvm-svn: 288464
Diffstat (limited to 'llvm/docs/ProgrammersManual.rst')
| -rw-r--r-- | llvm/docs/ProgrammersManual.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst index 9375b625518..5ae54ffdff4 100644 --- a/llvm/docs/ProgrammersManual.rst +++ b/llvm/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. |

