dace icon indicating copy to clipboard operation
dace copied to clipboard

Add debug informations to LoopRegion

Open luca-patrignani opened this issue 1 year ago • 1 comments

NOTE: this is loop_architecture_pt_3 in disguise. This PR is for the Week 1 milestone for my GSoC project. It adds

  • what source line range the source filename belongs to the loop body (for both for and while constructs)
  • what source line range defines the condition check (for the while construct)

These informations are stored as DebugInfoProperty in the LoopRegion class.

Needs confirmation

  • I created a separate file ( tests/loop_region_code_location_file.py) containing some functions annotated as dace program which are tested by the unit tests. I placed them to avoid messing up the line numbers every time the test file is modified.

luca-patrignani avatar Jun 10 '24 14:06 luca-patrignani

@luca-patrignani It looks like (since the Loop Regions PR was merged into master) this branch will need to be re-based on top of current master to avoid the conflicts. If you have a chance, can you do that? If you don't have time feel free to let me know so I can take care of it - Thanks! :)

phschaad avatar Aug 30 '24 05:08 phschaad