summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-01-28 21:51:40 +0000
committerBill Wendling <isanbard@gmail.com>2010-01-28 21:51:40 +0000
commit4533cac557cdcc13e7c990942758ec8338d9172a (patch)
tree0ed2a694d0e4a38fb0115393602dceb2b950cb26 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parent1124cc02b475e42a46b31c076d1248a6daf723df (diff)
downloadllvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.gz
llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.bz2
llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.xz
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index db656e35a4..bc4b33dff1 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);