aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-19 03:31:45 +0000
committerChris Lattner <sabre@nondot.org>2007-10-19 03:31:45 +0000
commitf58dac31690f37c8f93328f8470298e1fe7862cc (patch)
tree5a4f1ccc6c6dc736f82201c8e1e94563c31b7867 /include/llvm/Target
parent3a7c33a853b03d9dcde400b9d58e02c25d9789db (diff)
downloadexternal_llvm-f58dac31690f37c8f93328f8470298e1fe7862cc.zip
external_llvm-f58dac31690f37c8f93328f8470298e1fe7862cc.tar.gz
external_llvm-f58dac31690f37c8f93328f8470298e1fe7862cc.tar.bz2
add a new target hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLowering.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index e7e99a7..48f3d7c 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -885,6 +885,15 @@ public:
/// implement this. The default implementation of this aborts.
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
+ /// ExpandOperation - This callback is invoked for operations that are
+ /// unsupported by the target, which are registered to use 'custom' lowering,
+ /// and whose result type needs to be expanded.
+ ///
+ /// If the target has no operations that require custom lowering, it need not
+ /// implement this. The default implementation of this aborts.
+ virtual std::pair<SDOperand,SDOperand>
+ ExpandOperation(SDOperand Op, SelectionDAG &DAG);
+
/// IsEligibleForTailCallOptimization - Check whether the call is eligible for
/// tail call optimization. Targets which want to do tail call optimization
/// should override this function.