aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-05-16 17:42:15 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-05-16 17:42:15 +0000
commitdae9cbe8d4fcd8f182a99403d67cae906bdb3175 (patch)
tree406c6900dce85189e412c0e895d55d69b4423967 /include
parent258926aa220b5d0a1f5d0ca381256bdf66ab5b32 (diff)
Move this code to a common place
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 9f773e32cf..7f4a10d315 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -25,6 +25,7 @@
#include "llvm/Type.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include <map>
+#include <list>
namespace llvm {
class Value;
@@ -649,6 +650,15 @@ public:
return LegalAddressScales.end();
}
+ //===--------------------------------------------------------------------===//
+ // Div utility functions
+ //
+ SDOperand BuildSDIV(SDNode *N, SelectionDAG &DAG,
+ std::list<SDNode*>* Created) const;
+ SDOperand BuildUDIV(SDNode *N, SelectionDAG &DAG,
+ std::list<SDNode*>* Created) const;
+
+
protected:
/// addLegalAddressScale - Add a integer (> 1) value which can be used as
/// scale in the target addressing mode. Note: the ordering matters so the