diff options
author | David Sherwood <david.sherwood@arm.com> | 2020-08-14 12:15:59 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2020-08-28 14:43:53 +0100 |
commit | f4257c5832aa51e960e7351929ca3d37031985b7 (patch) | |
tree | a4631cb9d0e5ff0b70b28cd82c3810d0d7cc56a6 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | f20e6c7253859454c2f39adae19d80a31a0456a9 (diff) | |
download | llvm-f4257c5832aa51e960e7351929ca3d37031985b7.zip llvm-f4257c5832aa51e960e7351929ca3d37031985b7.tar.gz llvm-f4257c5832aa51e960e7351929ca3d37031985b7.tar.bz2 |
[SVE] Make ElementCount members private
This patch changes ElementCount so that the Min and Scalable
members are now private and can only be accessed via the get
functions getKnownMinValue() and isScalable(). In addition I've
added some other member functions for more commonly used operations.
Hopefully this makes the class more useful and will reduce the
need for calling getKnownMinValue().
Differential Revision: https://reviews.llvm.org/D86065
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 329cbe4..f263090 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -970,7 +970,7 @@ void ModuleBitcodeWriter::writeTypeTable() { // VECTOR [numelts, eltty] or // [numelts, eltty, scalable] Code = bitc::TYPE_CODE_VECTOR; - TypeVals.push_back(VT->getElementCount().Min); + TypeVals.push_back(VT->getElementCount().getKnownMinValue()); TypeVals.push_back(VE.getTypeID(VT->getElementType())); if (isa<ScalableVectorType>(VT)) TypeVals.push_back(true); |