File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ struct LMULType {
156
156
std::string str () const ;
157
157
llvm::Optional<unsigned > getScale (unsigned ElementBitwidth) const ;
158
158
void MulLog2LMUL (int Log2LMUL);
159
- LMULType &operator *=(uint32_t RHS);
160
159
};
161
160
162
161
class RVVType ;
Original file line number Diff line number Diff line change @@ -77,12 +77,6 @@ VScaleVal LMULType::getScale(unsigned ElementBitwidth) const {
77
77
78
78
void LMULType::MulLog2LMUL (int log2LMUL) { Log2LMUL += log2LMUL; }
79
79
80
- LMULType &LMULType::operator *=(uint32_t RHS) {
81
- assert (isPowerOf2_32 (RHS));
82
- this ->Log2LMUL = this ->Log2LMUL + Log2_32 (RHS);
83
- return *this ;
84
- }
85
-
86
80
RVVType::RVVType (BasicType BT, int Log2LMUL,
87
81
const PrototypeDescriptor &prototype)
88
82
: BT(BT), LMUL(LMULType(Log2LMUL)) {
@@ -628,17 +622,17 @@ void RVVType::applyModifier(const PrototypeDescriptor &Transformer) {
628
622
switch (static_cast <VectorTypeModifier>(Transformer.VTM )) {
629
623
case VectorTypeModifier::Widening2XVector:
630
624
ElementBitwidth *= 2 ;
631
- LMUL *= 2 ;
625
+ LMUL. MulLog2LMUL ( 1 ) ;
632
626
Scale = LMUL.getScale (ElementBitwidth);
633
627
break ;
634
628
case VectorTypeModifier::Widening4XVector:
635
629
ElementBitwidth *= 4 ;
636
- LMUL *= 4 ;
630
+ LMUL. MulLog2LMUL ( 2 ) ;
637
631
Scale = LMUL.getScale (ElementBitwidth);
638
632
break ;
639
633
case VectorTypeModifier::Widening8XVector:
640
634
ElementBitwidth *= 8 ;
641
- LMUL *= 8 ;
635
+ LMUL. MulLog2LMUL ( 3 ) ;
642
636
Scale = LMUL.getScale (ElementBitwidth);
643
637
break ;
644
638
case VectorTypeModifier::MaskVector:
You can’t perform that action at this time.
0 commit comments