From: Chris Lattner Date: Thu, 18 Aug 2005 18:44:33 +0000 (+0000) Subject: add a method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=66bac3c74088b296a5e693b21c9cf66bb8b7d548;p=oota-llvm.git add a method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22867 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h index 4c44eb1c65f..301ac0e7b8b 100644 --- a/include/llvm/CodeGen/SelectionDAGISel.h +++ b/include/llvm/CodeGen/SelectionDAGISel.h @@ -49,6 +49,11 @@ public: virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {} virtual void InstructionSelectBasicBlock(SelectionDAG &SD) = 0; +protected: + /// Pick a safe ordering and emit instructions for each target node in the + /// graph. + void ScheduleAndEmitDAG(SelectionDAG &SD); + private: SDOperand CopyValueToVirtualRegister(SelectionDAGLowering &SDL, Value *V, unsigned Reg);