summaryrefslogtreecommitdiff
path: root/lib/Target/R600/AMDGPUISelLowering.h
diff options
context:
space:
mode:
authorChristian Konig <christian.koenig@amd.com>2013-02-26 17:52:16 +0000
committerChristian Konig <christian.koenig@amd.com>2013-02-26 17:52:16 +0000
commitc018ecac2f2f475b6e1023e90d0e48fcf9bd6e1d (patch)
tree1ce9097ebae4bf9b197ae514a24bd5ddcb83f98b /lib/Target/R600/AMDGPUISelLowering.h
parent749428f852b63a98e872ba69b0c576b26b7b7518 (diff)
downloadllvm-c018ecac2f2f475b6e1023e90d0e48fcf9bd6e1d.tar.gz
llvm-c018ecac2f2f475b6e1023e90d0e48fcf9bd6e1d.tar.bz2
llvm-c018ecac2f2f475b6e1023e90d0e48fcf9bd6e1d.tar.xz
R600/SI: add folding helper
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@176100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/AMDGPUISelLowering.h')
-rw-r--r--lib/Target/R600/AMDGPUISelLowering.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.h b/lib/Target/R600/AMDGPUISelLowering.h
index 404f6201a5..9e7d997d4a 100644
--- a/lib/Target/R600/AMDGPUISelLowering.h
+++ b/lib/Target/R600/AMDGPUISelLowering.h
@@ -65,6 +65,10 @@ public:
SDValue LowerMinMax(SDValue Op, SelectionDAG &DAG) const;
virtual const char* getTargetNodeName(unsigned Opcode) const;
+ virtual SDNode *PostISelFolding(MachineSDNode *N, SelectionDAG &DAG) const {
+ return N;
+ }
+
// Functions defined in AMDILISelLowering.cpp
public: