diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-01-28 21:51:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-01-28 21:51:40 +0000 |
commit | 954cb187e00da9c4b72887d057f46c8bc46c6666 (patch) | |
tree | cd6d3a458cd8dc9b174e508c0406f6e03b519e3a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | |
parent | 4c3e7e99caede01bdd53d80f3fa1abdc40f0fd41 (diff) | |
download | bcm5719-llvm-954cb187e00da9c4b72887d057f46c8bc46c6666.tar.gz bcm5719-llvm-954cb187e00da9c4b72887d057f46c8bc46c6666.zip |
Assign the ordering of SDNodes in a much less intrusive fashion. After the
"visit*" method is called, take the newly created nodes, walk them in a DFS
fashion, and if they don't have an ordering set, then give it one.
llvm-svn: 94757
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index db656e35a4a..bc4b33dff12 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -342,6 +342,11 @@ public: void CopyValueToVirtualRegister(Value *V, unsigned Reg); + /// AssignOrderingToNode - Assign an ordering to the node. The order is gotten + /// from how the code appeared in the source. The ordering is used by the + /// scheduler to effectively turn off scheduling. + void AssignOrderingToNode(const SDNode *Node); + void visit(Instruction &I); void visit(unsigned Opcode, User &I); |