Make graphds_scc pass the node order back to callers
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Aug 2022 14:43:46 +0000 (15:43 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Aug 2022 14:43:46 +0000 (15:43 +0100)
commit2bac880a19633b96608548b412739379df1c10dc
treef3a194c64159c35b2cd9abdcf24cfd304cf2867c
parent5551501e84dd51b569801c0e52b24f9e30124166
Make graphds_scc pass the node order back to callers

As a side-effect, graphds_scc constructs a vector in which all
nodes in an SCC are listed consecutively.  This can be useful
information, so that the patch adds an optional pass-back parameter
for it.  The interface is similar to the one for graphds_dfs.

gcc/
* graphds.cc (graphds_scc): Add a pass-back parameter for the
final node order.
* graphds.h (graphds_scc): Update prototype accordingly.
gcc/graphds.cc
gcc/graphds.h