Skip to content

Commit

Permalink
Make memlet label more descriptive
Browse files Browse the repository at this point in the history
If the directionality of the memlet is different, print the label inverted.
  • Loading branch information
tbennun authored Oct 11, 2024
1 parent 657081c commit 131a873
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/renderer/renderer_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1702,9 +1702,16 @@ export class Memlet extends Edge {
contents += sdfg_property_to_string(attr.subset, dsettings);

if (attr.other_subset) {
contents += ' -> ' + sdfg_property_to_string(
attr.other_subset, dsettings
);
// TODO: Obtain other data name, if possible
if (attr.is_data_src) {
contents += ' -> ' + sdfg_property_to_string(
attr.other_subset, dsettings
);
} else {
contents = sdfg_property_to_string(
attr.other_subset, dsettings
) + ' -> ' + contents;
}
}

if (attr.wcr) {
Expand Down

0 comments on commit 131a873

Please sign in to comment.