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 | 4533cac557cdcc13e7c990942758ec8338d9172a (patch) | |
tree | 0ed2a694d0e4a38fb0115393602dceb2b950cb26 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | |
parent | 1124cc02b475e42a46b31c076d1248a6daf723df (diff) | |
download | external_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.zip external_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.gz external_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index db656e3..bc4b33d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/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); |