[patch] color nodes matching a string pattern when displaying graphs

Hello,
the patch attatched adds the option -view-dag-color-node=<list> to llc. The list of strings is matched with the names of the labels of nodes when displaying a graph, so that matching nodes are displayed in a colored bold style. I find this extremely usful on selectionDAGs to spot specific nodes in larger graphs.
You may complain that the implementation should be interacting more with the DOTGraphTraits class, but OTOH this might be an interesting feature for any type of graph, and as such it is certainly the lightest implementation.
Anyway, if this is considered an interesting feature for the mainline but unacceptable this way please let me know, I might eventually change it according to your suggestions.

Regards,
Christian

GraphWriter_color.patch (2.18 KB)

BTW, I noticed that the Support directory is not part of the PARALLEL_DIRS in lib/Makefile, so it is not recompiled when doing 'make' in lib/ although the other 'parallel dirs' are users of Support. Is this intentional?

Anyway, if this is considered an interesting feature for the
mainline but unacceptable this way please let me know, I
might eventually change it according to your suggestions.

Don't blame me on this, I just meant don't count on me to do it within he day :slight_smile:

Regards,
Christian