@@ -909,7 +909,7 @@ class InstInfo {
909909 const ComponentInfo CompInfo[COMPONENTS_NUM];
910910
911911public:
912- using RegIndices = std::array<unsigned , Component::MAX_OPR_NUM>;
912+ using RegIndices = std::array<MCRegister , Component::MAX_OPR_NUM>;
913913
914914 InstInfo (const MCInstrDesc &OpX, const MCInstrDesc &OpY)
915915 : CompInfo{OpX, OpY} {}
@@ -932,9 +932,10 @@ class InstInfo {
932932 // even though it violates requirement to be from different banks.
933933 // If \p VOPD3 is set to true both dst registers allowed to be either odd
934934 // or even and instruction may have real src2 as opposed to tied accumulator.
935- bool hasInvalidOperand (std::function<unsigned (unsigned , unsigned )> GetRegIdx,
936- const MCRegisterInfo &MRI, bool SkipSrc = false,
937- bool AllowSameVGPR = false, bool VOPD3 = false) const {
935+ bool
936+ hasInvalidOperand (std::function<MCRegister(unsigned , unsigned )> GetRegIdx,
937+ const MCRegisterInfo &MRI, bool SkipSrc = false ,
938+ bool AllowSameVGPR = false , bool VOPD3 = false ) const {
938939 return getInvalidCompOperandIndex (GetRegIdx, MRI, SkipSrc, AllowSameVGPR,
939940 VOPD3)
940941 .has_value ();
@@ -949,14 +950,14 @@ class InstInfo {
949950 // If \p VOPD3 is set to true both dst registers allowed to be either odd
950951 // or even and instruction may have real src2 as opposed to tied accumulator.
951952 std::optional<unsigned > getInvalidCompOperandIndex (
952- std::function<unsigned (unsigned , unsigned )> GetRegIdx,
953+ std::function<MCRegister (unsigned , unsigned )> GetRegIdx,
953954 const MCRegisterInfo &MRI, bool SkipSrc = false,
954955 bool AllowSameVGPR = false, bool VOPD3 = false) const ;
955956
956957private:
957958 RegIndices
958959 getRegIndices (unsigned ComponentIdx,
959- std::function<unsigned (unsigned , unsigned )> GetRegIdx,
960+ std::function<MCRegister (unsigned , unsigned )> GetRegIdx,
960961 bool VOPD3) const ;
961962};
962963
@@ -1599,7 +1600,7 @@ LLVM_READNONE
15991600MCRegister mc2PseudoReg (MCRegister Reg);
16001601
16011602LLVM_READNONE
1602- bool isInlineValue (unsigned Reg);
1603+ bool isInlineValue (MCRegister Reg);
16031604
16041605// / Is this an AMDGPU specific source operand? These include registers,
16051606// / inline constants, literals and mandatory literals (KImm).
@@ -1798,16 +1799,16 @@ bool isIntrinsicAlwaysUniform(unsigned IntrID);
17981799
17991800// / \returns a register class for the physical register \p Reg if it is a VGPR
18001801// / or nullptr otherwise.
1801- const MCRegisterClass *getVGPRPhysRegClass (MCPhysReg Reg,
1802+ const MCRegisterClass *getVGPRPhysRegClass (MCRegister Reg,
18021803 const MCRegisterInfo &MRI);
18031804
18041805// / \returns the MODE bits which have to be set by the S_SET_VGPR_MSB for the
18051806// / physical register \p Reg.
1806- unsigned getVGPREncodingMSBs (MCPhysReg Reg, const MCRegisterInfo &MRI);
1807+ unsigned getVGPREncodingMSBs (MCRegister Reg, const MCRegisterInfo &MRI);
18071808
18081809// / If \p Reg is a low VGPR return a corresponding high VGPR with \p MSBs set.
1809- MCPhysReg getVGPRWithMSBs (MCPhysReg Reg, unsigned MSBs,
1810- const MCRegisterInfo &MRI);
1810+ MCRegister getVGPRWithMSBs (MCRegister Reg, unsigned MSBs,
1811+ const MCRegisterInfo &MRI);
18111812
18121813// Returns a table for the opcode with a given \p Desc to map the VGPR MSB
18131814// set by the S_SET_VGPR_MSB to one of 4 sources. In case of VOPD returns 2
0 commit comments