mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Pass the graph to the DOTGraphTraits.getEdgeAttributes().
This follows the interface of getNodeAttributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0aa00f9110
commit
a91f86c49a
@ -89,8 +89,9 @@ public:
|
|||||||
|
|
||||||
/// If you want to override the dot attributes printed for a particular edge,
|
/// If you want to override the dot attributes printed for a particular edge,
|
||||||
/// override this method.
|
/// override this method.
|
||||||
template<typename EdgeIter>
|
template<typename EdgeIter, typename GraphType>
|
||||||
static std::string getEdgeAttributes(const void *Node, EdgeIter EI) {
|
static std::string getEdgeAttributes(const void *Node, EdgeIter EI,
|
||||||
|
const GraphType& Graph) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ public:
|
|||||||
|
|
||||||
emitEdge(static_cast<const void*>(Node), edgeidx,
|
emitEdge(static_cast<const void*>(Node), edgeidx,
|
||||||
static_cast<const void*>(TargetNode), DestPort,
|
static_cast<const void*>(TargetNode), DestPort,
|
||||||
DTraits.getEdgeAttributes(Node, EI));
|
DTraits.getEdgeAttributes(Node, EI, G));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,8 @@ namespace llvm {
|
|||||||
/// If you want to override the dot attributes printed for a particular
|
/// If you want to override the dot attributes printed for a particular
|
||||||
/// edge, override this method.
|
/// edge, override this method.
|
||||||
static std::string getEdgeAttributes(const SUnit *Node,
|
static std::string getEdgeAttributes(const SUnit *Node,
|
||||||
SUnitIterator EI) {
|
SUnitIterator EI,
|
||||||
|
const ScheduleDAG *Graph) {
|
||||||
if (EI.isArtificialDep())
|
if (EI.isArtificialDep())
|
||||||
return "color=cyan,style=dashed";
|
return "color=cyan,style=dashed";
|
||||||
if (EI.isCtrlDep())
|
if (EI.isCtrlDep())
|
||||||
|
@ -90,7 +90,8 @@ namespace llvm {
|
|||||||
/// If you want to override the dot attributes printed for a particular
|
/// If you want to override the dot attributes printed for a particular
|
||||||
/// edge, override this method.
|
/// edge, override this method.
|
||||||
template<typename EdgeIter>
|
template<typename EdgeIter>
|
||||||
static std::string getEdgeAttributes(const void *Node, EdgeIter EI) {
|
static std::string getEdgeAttributes(const void *Node, EdgeIter EI,
|
||||||
|
const SelectionDAG *Graph) {
|
||||||
SDValue Op = EI.getNode()->getOperand(EI.getOperand());
|
SDValue Op = EI.getNode()->getOperand(EI.getOperand());
|
||||||
EVT VT = Op.getValueType();
|
EVT VT = Op.getValueType();
|
||||||
if (VT == MVT::Glue)
|
if (VT == MVT::Glue)
|
||||||
|
Loading…
Reference in New Issue
Block a user