bool isZero() const { return !Value; }
bool isNonZero() const { return !isZero(); }
explicit operator bool() const { return isNonZero(); }
- ScalarTy getValue() const { return Value; }
ScalarTy getValue(unsigned Dim) const {
return Dim == UnivariateDim ? Value : 0;
}
static LeafTy getNull() { return get(0, false); }
/// Returns the minimum value this size can represent.
- ScalarTy getKnownMinValue() const { return this->getValue(); }
+ ScalarTy getKnownMinValue() const { return this->Value; }
/// Returns whether the size is scaled by a runtime quantity (vscale).
bool isScalable() const { return this->UnivariateDim == ScalableDim; }
/// A return value of true indicates we know at compile time that the number
DAG.getAnyExtOrTrunc(Extend.getOperand(0), DL, PreExtendType),
DAG.getConstant(0, DL, MVT::i64));
- std::vector<int> ShuffleMask(TargetType.getVectorElementCount().getValue());
+ std::vector<int> ShuffleMask(TargetType.getVectorNumElements());
SDValue VectorShuffleNode =
DAG.getVectorShuffle(PreExtendVT, DL, InsertVectorNode,
EXPECT_EQ(Univariate3D(42, 1).getValue(0), 0);
EXPECT_EQ(Univariate3D(42, 1).getValue(1), 42);
EXPECT_EQ(Univariate3D(42, 1).getValue(2), 0);
-
- EXPECT_EQ(Univariate3D(42, 0).getValue(), 42);
- EXPECT_EQ(Univariate3D(42, 1).getValue(), 42);
}
TEST(UnivariateLinearPolyBase, Univariate3D_Add) {