summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreISelLowering.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-01 11:39:25 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-01 11:39:25 +0000
commit6ed40141f7e3ea38589b67fd15ac48b93c1c8fa1 (patch)
tree7f90bca20dd394c87578655b48dd1ec8040fe7f6 /llvm/lib/Target/XCore/XCoreISelLowering.h
parent47f733e4ea52340b781db2af19e3ed695c5f27b0 (diff)
downloadbcm5719-llvm-6ed40141f7e3ea38589b67fd15ac48b93c1c8fa1.tar.gz
bcm5719-llvm-6ed40141f7e3ea38589b67fd15ac48b93c1c8fa1.zip
Change the interface to the type legalization method
ReplaceNodeResults: rather than returning a node which must have the same number of results as the original node (which means mucking around with MERGE_VALUES, and which is also easy to get wrong since SelectionDAG folding may mean you don't get the node you expect), return the results in a vector. llvm-svn: 60348
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreISelLowering.h')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.h b/llvm/lib/Target/XCore/XCoreISelLowering.h
index 0ce1c76efb5..5417d7b5615 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.h
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.h
@@ -68,7 +68,11 @@ namespace llvm {
/// LowerOperation - Provide custom lowering hooks for some operations.
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG);
- virtual SDNode *ReplaceNodeResults(SDNode *N, SelectionDAG &DAG);
+ /// ReplaceNodeResults - Replace the results of node with an illegal result
+ /// type with new values built out of custom code.
+ ///
+ virtual void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue>&Results,
+ SelectionDAG &DAG);
/// getTargetNodeName - This method returns the name of a target specific
// DAG node.
@@ -112,7 +116,7 @@ namespace llvm {
MVT VT) const;
// Expand specifics
- SDNode *ExpandADDSUB(SDNode *Op, SelectionDAG &DAG);
+ SDValue ExpandADDSUB(SDNode *Op, SelectionDAG &DAG);
};
}
OpenPOWER on IntegriCloud