aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-01-28 03:14:31 +0000
committerNate Begeman <natebegeman@mac.com>2006-01-28 03:14:31 +0000
commit0aed7840ec8cc85f91b4aa6e69318bba0cbd1f03 (patch)
treeb2b75b49ec7d32b448baf5b5c3aa6ddbf6ef0535 /include/llvm/Target
parenteb20ed6c86837870e749cf9d6272ae596dbef303 (diff)
downloadexternal_llvm-0aed7840ec8cc85f91b4aa6e69318bba0cbd1f03.zip
external_llvm-0aed7840ec8cc85f91b4aa6e69318bba0cbd1f03.tar.gz
external_llvm-0aed7840ec8cc85f91b4aa6e69318bba0cbd1f03.tar.bz2
Implement Promote for VAARG, and allow it to be custom promoted for people
who don't want the default behavior (Alpha). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLowering.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index d3837eb..7201079 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -369,11 +369,16 @@ public:
SelectionDAG &DAG);
/// LowerOperation - For operations that are unsupported by the target, and
- /// which are registered to use 'custom' lowering. This callback is invoked.
+ /// which are registered to use 'custom' lowering, this callback is invoked.
/// If the target has no operations that require custom lowering, it need not
/// implement this. The default implementation of this aborts.
virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
+ /// CustomPromoteOperation - For operations that are unsupported by the
+ /// target, are registered to use 'custom' lowering, and whose type needs to
+ /// be promoted, this callback is invoked.
+ virtual SDOperand CustomPromoteOperation(SDOperand Op, SelectionDAG &DAG);
+
/// getTargetNodeName() - This method returns the name of a target specific
/// DAG node.
virtual const char *getTargetNodeName(unsigned Opcode) const;