summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGISel.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-18 18:44:33 +0000
committerChris Lattner <sabre@nondot.org>2005-08-18 18:44:33 +0000
commit66bac3c74088b296a5e693b21c9cf66bb8b7d548 (patch)
treef277a577dab0c05bfef8d3c73e538068ff64efdd /include/llvm/CodeGen/SelectionDAGISel.h
parentf5fac3b4a6c41a2ea344a24c5f9ecc51cfca0723 (diff)
downloadllvm-66bac3c74088b296a5e693b21c9cf66bb8b7d548.tar.gz
llvm-66bac3c74088b296a5e693b21c9cf66bb8b7d548.tar.bz2
llvm-66bac3c74088b296a5e693b21c9cf66bb8b7d548.tar.xz
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGISel.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 4c44eb1c65..301ac0e7b8 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);