2 #ifndef BDWY_DIAGNOSTIC_CHAIN_H
3 #define BDWY_DIAGNOSTIC_CHAIN_H
16 typedef map<memoryDef*, memoryuse_set>
def2uses;
45 inline void add_defuse(Location *loc, memoryDef *lhs, memoryUse *rhs) {
46 if(loc && lhs && rhs)
_def2uses[loc][lhs].insert(rhs);
55 void trace(ostream & out, Location *loc, pointerValue &pv);
81 Segment *
trace(Location *from, memoryDef *def);
84 Segment *
trace(Location *from, Location *to);