mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
In -view-sunit-dags, display "special" chain dependencies as cyan
instead of blue to distinguish them from regular dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a9371de6d
commit
89bf0a6b05
@ -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…
x
Reference in New Issue
Block a user