Lines Matching defs:Edge
42 // The profiling information defines an Edge by its source and sink basic
44 typedef std::pair<const BType*, const BType*> Edge;
47 typedef DenseMap<Edge, unsigned> EdgeWeights;
57 /// getFunction() - Returns the Function for an Edge.
58 static const FType *getFunction(Edge e) {
61 && "A ProfileData::Edge can not be between two functions");
62 assert(e.second && "A ProfileData::Edge must have a real sink");
66 /// getEdge() - Creates an Edge between two BasicBlocks.
67 static Edge getEdge(const BType *Src, const BType *Dest) {
68 return Edge(Src, Dest);
73 unsigned getEdgeWeight(Edge e) const {
86 void addEdgeWeight(Edge e, unsigned weight) {