22 return MRI.
getRegClass(
MI.getOperand(0).getReg()) == &SPIRV::TYPERegClass;
31 if (MI->getOpcode() != SPIRV::OpTypeInt)
34 return MI->getOperand(1).getImm() ==
N;
39 return MI->getOpcode() == SPIRV::OpTypeFloat;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Representation of each machine instruction.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
const TargetRegisterClass * getRegClass(Register Reg) const
Return the register class of the specified virtual register.
bool isAnyTypeFloat() const
bool isTypeIntN(unsigned N=0) const
This is an optimization pass for GlobalISel generic memory operations.
static bool definesATypeRegister(const MachineInstr &MI)