Skip to content

Commit

Permalink
Add more debug info to DaCe (pass SourceLocation from past/foast to i…
Browse files Browse the repository at this point in the history
…tir, and from itir to the SDFG): Preserve Location through Visitors
  • Loading branch information
kotsaloscv committed Jan 4, 2024
1 parent ea2f672 commit 50f96a8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ def dace_debuginfo(
) -> Optional[dace.dtypes.DebugInfo]:
location = node.location
if location:
di = dace.dtypes.DebugInfo(
return dace.dtypes.DebugInfo(
start_line=location.line,
start_column=location.column if location.column else 0,
end_line=location.end_line if location.end_line else -1,
end_column=location.end_column if location.end_column else 0,
filename=location.filename,
)
else:
di = debuginfo
return di
return debuginfo


def as_dace_type(type_: ts.ScalarType):
Expand Down

0 comments on commit 50f96a8

Please sign in to comment.