@@ -39,41 +39,41 @@ class HexagonMCChecker {
3939 bool ReportErrors;
4040
4141 // / Set of definitions: register #, if predicated, if predicated true.
42- using PredSense = std::pair<unsigned , bool >;
42+ using PredSense = std::pair<MCRegister , bool >;
4343 static const PredSense Unconditional;
4444 using PredSet = std::multiset<PredSense>;
4545 using PredSetIterator = std::multiset<PredSense>::iterator;
4646
47- using DefsIterator = DenseMap<unsigned , PredSet>::iterator;
48- DenseMap<unsigned , PredSet> Defs;
47+ using DefsIterator = DenseMap<MCRegister , PredSet>::iterator;
48+ DenseMap<MCRegister , PredSet> Defs;
4949
5050 // / Set of weak definitions whose clashes should be enforced selectively.
51- using SoftDefsIterator = std::set<unsigned >::iterator;
52- std::set<unsigned > SoftDefs;
51+ using SoftDefsIterator = std::set<MCRegister >::iterator;
52+ std::set<MCRegister > SoftDefs;
5353
5454 // / Set of temporary definitions not committed to the register file.
55- using TmpDefsIterator = std::set<unsigned >::iterator;
56- std::set<unsigned > TmpDefs;
55+ using TmpDefsIterator = std::set<MCRegister >::iterator;
56+ std::set<MCRegister > TmpDefs;
5757
5858 // / Set of new predicates used.
59- using NewPredsIterator = std::set<unsigned >::iterator;
60- std::set<unsigned > NewPreds;
59+ using NewPredsIterator = std::set<MCRegister >::iterator;
60+ std::set<MCRegister > NewPreds;
6161
6262 // / Set of predicates defined late.
63- using LatePredsIterator = std::multiset<unsigned >::iterator;
64- std::multiset<unsigned > LatePreds;
63+ using LatePredsIterator = std::multiset<MCRegister >::iterator;
64+ std::multiset<MCRegister > LatePreds;
6565
6666 // / Set of uses.
67- using UsesIterator = std::set<unsigned >::iterator;
68- std::set<unsigned > Uses;
67+ using UsesIterator = std::set<MCRegister >::iterator;
68+ std::set<MCRegister > Uses;
6969
7070 // / Pre-defined set of read-only registers.
71- using ReadOnlyIterator = std::set<unsigned >::iterator;
72- std::set<unsigned > ReadOnly;
71+ using ReadOnlyIterator = std::set<MCRegister >::iterator;
72+ std::set<MCRegister > ReadOnly;
7373
7474 // Contains the vector-pair-registers with the even number
7575 // first ("v0:1", e.g.) used/def'd in this packet.
76- std::set<unsigned > ReversePairs;
76+ std::set<MCRegister > ReversePairs;
7777
7878 void init ();
7979 void init (MCInst const &);
@@ -107,7 +107,7 @@ class HexagonMCChecker {
107107
108108 static void compoundRegisterMap (unsigned &);
109109
110- bool isLoopRegister (unsigned R) const {
110+ bool isLoopRegister (MCRegister R) const {
111111 return (Hexagon::SA0 == R || Hexagon::LC0 == R || Hexagon::SA1 == R ||
112112 Hexagon::LC1 == R);
113113 }
@@ -120,8 +120,8 @@ class HexagonMCChecker {
120120 MCSubtargetInfo const &STI, bool CopyReportErrors);
121121
122122 bool check (bool FullCheck = true );
123- void reportErrorRegisters (unsigned Register);
124- void reportErrorNewValue (unsigned Register);
123+ void reportErrorRegisters (MCRegister Register);
124+ void reportErrorNewValue (MCRegister Register);
125125 void reportError (SMLoc Loc, Twine const &Msg);
126126 void reportNote (SMLoc Loc, Twine const &Msg);
127127 void reportError (Twine const &Msg);
0 commit comments