In -view-sunit-dags, display "special" chain dependencies as cyan

instead of blue to distinguish them from regular dependencies.

llvm-svn: 49696
This commit is contained in:
Dan Gohman 2008-04-14 23:15:07 +00:00
parent c5e5b38a8f
commit e5f21cea3e
2 changed files with 3 additions and 0 deletions

View File

@ -456,6 +456,7 @@ namespace llvm {
unsigned getOperand() const { return Operand; }
const SUnit *getNode() const { return Node; }
bool isCtrlDep() const { return Node->Preds[Operand].isCtrl; }
bool isSpecialDep() const { return Node->Preds[Operand].isSpecial; }
};
template <> struct GraphTraits<SUnit*> {

View File

@ -283,6 +283,8 @@ namespace llvm {
/// edge, override this method.
template<typename EdgeIter>
static std::string getEdgeAttributes(const void *Node, EdgeIter EI) {
if (EI.isSpecialDep())
return "color=cyan,style=dashed";
if (EI.isCtrlDep())
return "color=blue,style=dashed";
return "";