Add some helper functions to ddg edge class to check the edge type.
@@ -122,6 +122,14 @@ public:
return loopEdge_;
}
+ bool isWAW() const {
+ return dependenceType_ == DEP_WAW;
+ }
+
+ bool isRAW() const {
+ return dependenceType_ == DEP_RAW;
+ }
+
const TCEString data() const {
if (data_ == NULL) {
return TCEString("");
