@@ -191,8 +191,7 @@ struct TypeSetByHwMode : public InfoByHwMode<MachineValueTypeSet> {
191191 TypeSetByHwMode () = default;
192192 TypeSetByHwMode (const TypeSetByHwMode &VTS) = default;
193193 TypeSetByHwMode &operator =(const TypeSetByHwMode &) = default ;
194- TypeSetByHwMode (MVT::SimpleValueType VT)
195- : TypeSetByHwMode(ValueTypeByHwMode(VT)) {}
194+ TypeSetByHwMode (MVT VT) : TypeSetByHwMode(ValueTypeByHwMode(VT)) {}
196195 TypeSetByHwMode (ArrayRef<ValueTypeByHwMode> VTList);
197196
198197 SetType &getOrCreate (unsigned Mode) { return Map[Mode]; }
@@ -259,7 +258,7 @@ struct TypeInfer {
259258 // / otherwise.
260259
261260 bool MergeInTypeInfo (TypeSetByHwMode &Out, const TypeSetByHwMode &In) const ;
262- bool MergeInTypeInfo (TypeSetByHwMode &Out, MVT::SimpleValueType InVT) const {
261+ bool MergeInTypeInfo (TypeSetByHwMode &Out, MVT InVT) const {
263262 return MergeInTypeInfo (Out, TypeSetByHwMode (InVT));
264263 }
265264 bool MergeInTypeInfo (TypeSetByHwMode &Out,
@@ -451,8 +450,8 @@ class SDNodeInfo {
451450
452451 // / getKnownType - If the type constraints on this node imply a fixed type
453452 // / (e.g. all stores return void, etc), then return it as an
454- // / MVT::SimpleValueType . Otherwise, return MVT::Other.
455- MVT::SimpleValueType getKnownType (unsigned ResNo) const ;
453+ // / MVT. Otherwise, return MVT::Other.
454+ MVT getKnownType (unsigned ResNo) const ;
456455
457456 unsigned getProperties () const { return Properties; }
458457
@@ -698,8 +697,8 @@ class TreePatternNode : public RefCountedBase<TreePatternNode> {
698697 }
699698 TypeSetByHwMode &getExtType (unsigned ResNo) { return Types[ResNo]; }
700699 void setType (unsigned ResNo, const TypeSetByHwMode &T) { Types[ResNo] = T; }
701- MVT::SimpleValueType getSimpleType (unsigned ResNo) const {
702- return Types[ResNo].getMachineValueType (). SimpleTy ;
700+ MVT getSimpleType (unsigned ResNo) const {
701+ return Types[ResNo].getMachineValueType ();
703702 }
704703
705704 bool hasConcreteType (unsigned ResNo) const {
@@ -850,8 +849,7 @@ class TreePatternNode : public RefCountedBase<TreePatternNode> {
850849 // /
851850 bool UpdateNodeType (unsigned ResNo, const TypeSetByHwMode &InTy,
852851 TreePattern &TP);
853- bool UpdateNodeType (unsigned ResNo, MVT::SimpleValueType InTy,
854- TreePattern &TP);
852+ bool UpdateNodeType (unsigned ResNo, MVT InTy, TreePattern &TP);
855853 bool UpdateNodeType (unsigned ResNo, const ValueTypeByHwMode &InTy,
856854 TreePattern &TP);
857855
@@ -1001,8 +999,7 @@ inline bool TreePatternNode::UpdateNodeType(unsigned ResNo,
1001999 return TP.getInfer ().MergeInTypeInfo (Types[ResNo], VTS);
10021000}
10031001
1004- inline bool TreePatternNode::UpdateNodeType (unsigned ResNo,
1005- MVT::SimpleValueType InTy,
1002+ inline bool TreePatternNode::UpdateNodeType (unsigned ResNo, MVT InTy,
10061003 TreePattern &TP) {
10071004 TypeSetByHwMode VTS (InTy);
10081005 TP.getInfer ().expandOverloads (VTS);
0 commit comments