Skip to content

Commit e7ab8bd

Browse files
committed
fixup! RegNum->Reg
1 parent cf05d46 commit e7ab8bd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class VEOperand : public MCParsedAsmOperand {
169169
};
170170

171171
struct RegOp {
172-
MCRegister RegNum;
172+
MCRegister Reg;
173173
};
174174

175175
struct ImmOp {
@@ -342,7 +342,7 @@ class VEOperand : public MCParsedAsmOperand {
342342

343343
MCRegister getReg() const override {
344344
assert((Kind == k_Register) && "Invalid access!");
345-
return Reg.RegNum;
345+
return Reg.Reg;
346346
}
347347

348348
const MCExpr *getImm() const {
@@ -607,10 +607,10 @@ class VEOperand : public MCParsedAsmOperand {
607607
return Op;
608608
}
609609

610-
static std::unique_ptr<VEOperand> CreateReg(MCRegister RegNum, SMLoc S,
610+
static std::unique_ptr<VEOperand> CreateReg(MCRegister Reg, SMLoc S,
611611
SMLoc E) {
612612
auto Op = std::make_unique<VEOperand>(k_Register);
613-
Op->Reg.RegNum = RegNum;
613+
Op->Reg.Reg = Reg;
614614
Op->StartLoc = S;
615615
Op->EndLoc = E;
616616
return Op;
@@ -658,7 +658,7 @@ class VEOperand : public MCParsedAsmOperand {
658658
unsigned regIdx = Reg - VE::SX0;
659659
if (regIdx > 63)
660660
return false;
661-
Op.Reg.RegNum = I32Regs[regIdx];
661+
Op.Reg.Reg = I32Regs[regIdx];
662662
return true;
663663
}
664664

@@ -667,7 +667,7 @@ class VEOperand : public MCParsedAsmOperand {
667667
unsigned regIdx = Reg - VE::SX0;
668668
if (regIdx > 63)
669669
return false;
670-
Op.Reg.RegNum = F32Regs[regIdx];
670+
Op.Reg.Reg = F32Regs[regIdx];
671671
return true;
672672
}
673673

@@ -676,7 +676,7 @@ class VEOperand : public MCParsedAsmOperand {
676676
unsigned regIdx = Reg - VE::SX0;
677677
if (regIdx % 2 || regIdx > 63)
678678
return false;
679-
Op.Reg.RegNum = F128Regs[regIdx / 2];
679+
Op.Reg.Reg = F128Regs[regIdx / 2];
680680
return true;
681681
}
682682

@@ -685,7 +685,7 @@ class VEOperand : public MCParsedAsmOperand {
685685
unsigned regIdx = Reg - VE::VM0;
686686
if (regIdx % 2 || regIdx > 15)
687687
return false;
688-
Op.Reg.RegNum = VM512Regs[regIdx / 2];
688+
Op.Reg.Reg = VM512Regs[regIdx / 2];
689689
return true;
690690
}
691691

@@ -697,7 +697,7 @@ class VEOperand : public MCParsedAsmOperand {
697697
if (regIdx > 31 || MISCRegs[regIdx] == VE::NoRegister)
698698
return false;
699699
Op.Kind = k_Register;
700-
Op.Reg.RegNum = MISCRegs[regIdx];
700+
Op.Reg.Reg = MISCRegs[regIdx];
701701
return true;
702702
}
703703

0 commit comments

Comments
 (0)