to satisfy the ClassifyOperand method of the Asm matcher without having to add a
RegList type to every back-end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118360
91177308-0d34-0410-b5e6-
96231b3b80d8
bool Writeback;
} Reg;
- struct {
+ struct {
unsigned RegStart;
unsigned Number;
} RegList;
}
unsigned getReg() const {
- assert(Kind == Register && "Invalid access!");
- return Reg.RegNum;
+ assert((Kind == Register || Kind == RegisterList) && "Invalid access!");
+ unsigned RegNum = 0;
+ if (Kind == Register)
+ RegNum = Reg.RegNum;
+ else
+ RegNum = RegList.RegStart;
+ return RegNum;
}
std::pair<unsigned, unsigned> getRegList() const {