mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-10 18:11:26 +00:00
AssignTopologicalOrder now returns the vector of SDNode* by reference to
avoid the expensive operation of copying a vector. It also returns a maximum id by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
abe0e3e641
commit
09fd736058
@ -427,9 +427,9 @@ public:
|
|||||||
unsigned AssignNodeIds();
|
unsigned AssignNodeIds();
|
||||||
|
|
||||||
/// AssignTopologicalOrder - Assign a unique node id for each node in the DAG
|
/// AssignTopologicalOrder - Assign a unique node id for each node in the DAG
|
||||||
/// based on their topological order. It returns a vector of the SDNodes* in
|
/// based on their topological order. It returns the maximum id and a vector
|
||||||
/// assigned order.
|
/// of the SDNodes* in assigned order by reference.
|
||||||
std::vector<SDNode*> AssignTopologicalOrder();
|
unsigned AssignTopologicalOrder(std::vector<SDNode*> &TopOrder);
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user