From dae9cbe8d4fcd8f182a99403d67cae906bdb3175 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Tue, 16 May 2006 17:42:15 +0000 Subject: Move this code to a common place git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28329 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 +#include namespace llvm { class Value; @@ -649,6 +650,15 @@ public: return LegalAddressScales.end(); } + //===--------------------------------------------------------------------===// + // Div utility functions + // + SDOperand BuildSDIV(SDNode *N, SelectionDAG &DAG, + std::list* Created) const; + SDOperand BuildUDIV(SDNode *N, SelectionDAG &DAG, + std::list* 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 -- cgit v1.2.3-70-g09d2