forked from OSchip/llvm-project
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:
parent
c5e5b38a8f
commit
e5f21cea3e
|
@ -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*> {
|
||||
|
|
|
@ -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 "";
|
||||
|
|
Loading…
Reference in New Issue