summaryrefslogtreecommitdiff
path: root/lib/Target/R600/SIInstrInfo.cpp
diff options
context:
space:
mode:
authorChristian Konig <christian.koenig@amd.com>2013-02-26 17:52:29 +0000
committerChristian Konig <christian.koenig@amd.com>2013-02-26 17:52:29 +0000
commitb3d1eaded7d7a874bbda2b0d322df7389c724bfc (patch)
tree92798040d2e46a1b4889cb083b3ef73d01e51df0 /lib/Target/R600/SIInstrInfo.cpp
parentd3b5509b8099b72104bd8a0d9a998a69eb56ab2a (diff)
downloadllvm-b3d1eaded7d7a874bbda2b0d322df7389c724bfc.tar.gz
llvm-b3d1eaded7d7a874bbda2b0d322df7389c724bfc.tar.bz2
llvm-b3d1eaded7d7a874bbda2b0d322df7389c724bfc.tar.xz
R600/SI: add some more instruction flags
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SIInstrInfo.cpp')
-rw-r--r--lib/Target/R600/SIInstrInfo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp
index 4dfd26e97d..d9dbd6a4ca 100644
--- a/lib/Target/R600/SIInstrInfo.cpp
+++ b/lib/Target/R600/SIInstrInfo.cpp
@@ -66,6 +66,16 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
}
}
+MachineInstr *SIInstrInfo::commuteInstruction(MachineInstr *MI,
+ bool NewMI) const {
+
+ if (MI->getNumOperands() < 3 || !MI->getOperand(1).isReg() ||
+ !MI->getOperand(2).isReg())
+ return 0;
+
+ return TargetInstrInfo::commuteInstruction(MI, NewMI);
+}
+
MachineInstr * SIInstrInfo::getMovImmInstr(MachineFunction *MF, unsigned DstReg,
int64_t Imm) const {
MachineInstr * MI = MF->CreateMachineInstr(get(AMDGPU::V_MOV_B32_e32), DebugLoc());