diff options
author | Duncan Sands <baldrick@free.fr> | 2008-12-01 11:39:25 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-12-01 11:39:25 +0000 |
commit | 1607f05cb7d77d01ce521a30232faa389dbed4e2 (patch) | |
tree | aa158f63740a3b308cc75229bd80c57c21e269f1 /lib/Target/XCore/XCoreISelLowering.h | |
parent | d54d86038d1486e29969385a2cbd4fce1cd97202 (diff) | |
download | llvm-1607f05cb7d77d01ce521a30232faa389dbed4e2.tar.gz llvm-1607f05cb7d77d01ce521a30232faa389dbed4e2.tar.bz2 llvm-1607f05cb7d77d01ce521a30232faa389dbed4e2.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreISelLowering.h')
-rw-r--r-- | lib/Target/XCore/XCoreISelLowering.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreISelLowering.h b/lib/Target/XCore/XCoreISelLowering.h index 0ce1c76efb..5417d7b561 100644 --- a/lib/Target/XCore/XCoreISelLowering.h +++ b/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); }; } |