forked from OSchip/llvm-project
R600: Remove unused InstrInfo::getMovImmInstr() function
llvm-svn: 193178
This commit is contained in:
parent
a1ce9891ac
commit
c460b0dcf1
|
@ -139,8 +139,6 @@ public:
|
|||
// Pure virtual funtions to be implemented by sub-classes.
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
virtual MachineInstr* getMovImmInstr(MachineFunction *MF, unsigned DstReg,
|
||||
int64_t Imm) const = 0;
|
||||
virtual unsigned getIEQOpcode() const = 0;
|
||||
virtual bool isMov(unsigned opcode) const = 0;
|
||||
|
||||
|
|
|
@ -77,18 +77,6 @@ R600InstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
|||
}
|
||||
}
|
||||
|
||||
MachineInstr * R600InstrInfo::getMovImmInstr(MachineFunction *MF,
|
||||
unsigned DstReg, int64_t Imm) const {
|
||||
MachineInstr * MI = MF->CreateMachineInstr(get(AMDGPU::MOV), DebugLoc());
|
||||
MachineInstrBuilder MIB(*MF, MI);
|
||||
MIB.addReg(DstReg, RegState::Define);
|
||||
MIB.addReg(AMDGPU::ALU_LITERAL_X);
|
||||
MIB.addImm(Imm);
|
||||
MIB.addReg(0); // PREDICATE_BIT
|
||||
|
||||
return MI;
|
||||
}
|
||||
|
||||
unsigned R600InstrInfo::getIEQOpcode() const {
|
||||
return AMDGPU::SETE_INT;
|
||||
}
|
||||
|
|
|
@ -136,9 +136,6 @@ namespace llvm {
|
|||
/// instruction slots within an instruction group.
|
||||
bool isVector(const MachineInstr &MI) const;
|
||||
|
||||
virtual MachineInstr * getMovImmInstr(MachineFunction *MF, unsigned DstReg,
|
||||
int64_t Imm) const;
|
||||
|
||||
virtual unsigned getIEQOpcode() const;
|
||||
virtual bool isMov(unsigned Opcode) const;
|
||||
|
||||
|
|
|
@ -197,17 +197,6 @@ MachineInstr *SIInstrInfo::commuteInstruction(MachineInstr *MI,
|
|||
return MI;
|
||||
}
|
||||
|
||||
MachineInstr * SIInstrInfo::getMovImmInstr(MachineFunction *MF, unsigned DstReg,
|
||||
int64_t Imm) const {
|
||||
MachineInstr * MI = MF->CreateMachineInstr(get(AMDGPU::V_MOV_B32_e32), DebugLoc());
|
||||
MachineInstrBuilder MIB(*MF, MI);
|
||||
MIB.addReg(DstReg, RegState::Define);
|
||||
MIB.addImm(Imm);
|
||||
|
||||
return MI;
|
||||
|
||||
}
|
||||
|
||||
bool SIInstrInfo::isMov(unsigned Opcode) const {
|
||||
switch(Opcode) {
|
||||
default: return false;
|
||||
|
|
|
@ -40,9 +40,6 @@ public:
|
|||
virtual MachineInstr *commuteInstruction(MachineInstr *MI,
|
||||
bool NewMI=false) const;
|
||||
|
||||
virtual MachineInstr * getMovImmInstr(MachineFunction *MF, unsigned DstReg,
|
||||
int64_t Imm) const;
|
||||
|
||||
virtual unsigned getIEQOpcode() const { assert(!"Implement"); return 0;}
|
||||
virtual bool isMov(unsigned Opcode) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue