Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/VE/VERegisterInfo.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | BitVector VERegisterInfo::getReservedRegs(const MachineFunction &MF) const { | ||||
// Reserve constant registers. | // Reserve constant registers. | ||||
Reserved.set(VE::VM0); | Reserved.set(VE::VM0); | ||||
Reserved.set(VE::VMP0); | Reserved.set(VE::VMP0); | ||||
return Reserved; | return Reserved; | ||||
} | } | ||||
bool VERegisterInfo::isConstantPhysReg(MCRegister PhysReg) const { | |||||
switch (PhysReg) { | |||||
case VE::VM0: | |||||
case VE::VMP0: | |||||
return true; | |||||
default: | |||||
return false; | |||||
} | |||||
} | |||||
const TargetRegisterClass * | const TargetRegisterClass * | ||||
VERegisterInfo::getPointerRegClass(const MachineFunction &MF, | VERegisterInfo::getPointerRegClass(const MachineFunction &MF, | ||||
unsigned Kind) const { | unsigned Kind) const { | ||||
return &VE::I64RegClass; | return &VE::I64RegClass; | ||||
} | } | ||||
static unsigned offsetToDisp(MachineInstr &MI) { | static unsigned offsetToDisp(MachineInstr &MI) { | ||||
// Default offset in instruction's operands (reg+reg+imm). | // Default offset in instruction's operands (reg+reg+imm). | ||||
▲ Show 20 Lines • Show All 400 Lines • Show Last 20 Lines |