summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-07-25 08:41:29 -0400
committerTom Stellard <thomas.stellard@amd.com>2012-07-27 17:08:07 +0000
commitd36455ba2c3febe5da6fc6f53e4acd98f771532a (patch)
tree426c3d44fa11047f07773c0642b718f02b095e3c /src
parente8825ce6e12a8ec6fbe1ef76fb5e8ef8eb1b1218 (diff)
downloadexternal_mesa3d-d36455ba2c3febe5da6fc6f53e4acd98f771532a.zip
external_mesa3d-d36455ba2c3febe5da6fc6f53e4acd98f771532a.tar.gz
external_mesa3d-d36455ba2c3febe5da6fc6f53e4acd98f771532a.tar.bz2
radeon/llvm: Implement getSetCCResultType for SI
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/SIISelLowering.cpp5
-rw-r--r--src/gallium/drivers/radeon/SIISelLowering.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp
index 8528f73..11f79b9 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 c14b757..952e025 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;
};