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

Open
wants to merge 2 commits into
base: course-spring-2025
Choose a base branch
from

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.

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.

2 participants