Skip to content

Kurakin Matvey. FIIT1. Lab 4. Trace loop #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

MatveyKurakin
Copy link

@MatveyKurakin MatveyKurakin commented May 18, 2025

The task was to write a pass that adds a call to the @trace_loop_iter_begin() and @trace_loop_iter_end() functions at the beginning and end of the loop.
Inside the module for affine.for, scf.for, scf.while @trace_loop_iter_begin() is inserted at the beginning of the loop body, @trace_loop_iter_end() is inserted before the yield operation. Nested loops of all supported types are processed. The @trace_loop_iter_begin and @trace_loop_iter_end. Functions are declared as private if they are not present in the module.

@m-ly4 m-ly4 removed the delayed label May 21, 2025
@m-ly4 m-ly4 added this pull request to the merge queue May 21, 2025
Merged via the queue into NN-complr-tech:course-spring-2025 with commit 00dd6df May 21, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants