radeon/llvm: Implement getSetCCResultType for SI
authorTom Stellard <thomas.stellard@amd.com>
Wed, 25 Jul 2012 12:41:29 +0000 (08:41 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 27 Jul 2012 17:08:07 +0000 (17:08 +0000)
src/gallium/drivers/radeon/SIISelLowering.cpp
src/gallium/drivers/radeon/SIISelLowering.h

index 8528f73e4093f427d25284a294cab4cf764b1668..11f79b9927a41308128e51b7651f2fbee94005d2 100644 (file)
@@ -194,6 +194,11 @@ void SITargetLowering::lowerUSE_SGPR(MachineInstr *MI,
   addLiveIn(MI, MF, MRI, TII, newReg); 
 }
 
+EVT SITargetLowering::getSetCCResultType(EVT VT) const
+{
+  return MVT::i1;
+}
+
 //===----------------------------------------------------------------------===//
 // Custom DAG Lowering Operations
 //===----------------------------------------------------------------------===//
index c14b7574652f80951081f3964b04650a53dc9350..952e02531496c989b974f7e8c8bbcf8d8939308f 100644 (file)
@@ -44,6 +44,7 @@ public:
   SITargetLowering(TargetMachine &tm);
   virtual MachineBasicBlock * EmitInstrWithCustomInserter(MachineInstr * MI,
                                               MachineBasicBlock * BB) const;
+  virtual EVT getSetCCResultType(EVT VT) const;
   virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const;
 };