[llvm] [AMDGPU][True16][CodeGen] update waitcnt for true16 (PR #128927)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 10 11:01:05 PDT 2025
================
@@ -295,8 +295,21 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
getRegClassForOperandReg(const MachineRegisterInfo &MRI,
const MachineOperand &MO) const;
+ bool isVGPR(MCRegister Reg) const {
+ const TargetRegisterClass *RC = getPhysRegBaseClass(Reg);
+ // Registers without classes are unaddressable, SGPR-like registers.
+ return RC && isVGPRClass(RC);
+ }
bool isVGPR(const MachineRegisterInfo &MRI, Register Reg) const;
+ bool isAGPR(MCRegister Reg) const {
+ const TargetRegisterClass *RC = getPhysRegBaseClass(Reg);
+ // Registers without classes are unaddressable, SGPR-like registers.
+ return RC && isAGPRClass(RC);
+ }
bool isAGPR(const MachineRegisterInfo &MRI, Register Reg) const;
+ bool isVectorRegister(MCRegister Reg) const {
----------------
broxigarchen wrote:
Removed. These are not needed anymore
https://github.com/llvm/llvm-project/pull/128927
More information about the llvm-commits
mailing list