From d36455ba2c3febe5da6fc6f53e4acd98f771532a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 25 Jul 2012 08:41:29 -0400 Subject: radeon/llvm: Implement getSetCCResultType for SI --- src/gallium/drivers/radeon/SIISelLowering.cpp | 5 +++++ src/gallium/drivers/radeon/SIISelLowering.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp index 8528f73e409..11f79b9927a 100644 --- a/src/gallium/drivers/radeon/SIISelLowering.cpp +++ b/src/gallium/drivers/radeon/SIISelLowering.cpp @@ -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 //===----------------------------------------------------------------------===// diff --git a/src/gallium/drivers/radeon/SIISelLowering.h b/src/gallium/drivers/radeon/SIISelLowering.h index c14b7574652..952e0253149 100644 --- a/src/gallium/drivers/radeon/SIISelLowering.h +++ b/src/gallium/drivers/radeon/SIISelLowering.h @@ -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; }; -- cgit v1.2.3