R600: Add support for GROUP_BARRIER instruction
[oota-llvm.git] / lib / Target / R600 / R600InstrInfo.cpp
index f267ee92cd96ca853b04dd779fc79d699a72461b..3b1a24015a821da400b129b4a06d5a1b4c24cc54 100644 (file)
@@ -163,6 +163,16 @@ bool R600InstrInfo::usesTextureCache(const MachineInstr *MI) const {
          usesTextureCache(MI->getOpcode());
 }
 
+bool R600InstrInfo::mustBeLastInClause(unsigned Opcode) const {
+  switch (Opcode) {
+  case AMDGPU::KILLGT:
+  case AMDGPU::GROUP_BARRIER:
+    return true;
+  default:
+    return false;
+  }
+}
+
 SmallVector<std::pair<MachineOperand *, int64_t>, 3>
 R600InstrInfo::getSrcs(MachineInstr *MI) const {
   SmallVector<std::pair<MachineOperand *, int64_t>, 3> Result;