[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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user