Skip to content

Conversation

@johnzl-777
Copy link
Collaborator

@johnzl-777 johnzl-777 commented Jan 23, 2026

I got the idea to name the dialect "immediate loop" because of the "immediate" instructions you see in MIPS/RISC-V where you need to provide the data to operate on as part of the instruction itself.

@github-actions
Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
165 155 94% 0% 🟢

New Files

File Coverage Status
src/bloqade/decoders/dialects/immediate_loop/init.py 100% 🟢
src/bloqade/decoders/dialects/immediate_loop/_dialect.py 100% 🟢
src/bloqade/decoders/dialects/immediate_loop/_interface.py 100% 🟢
src/bloqade/decoders/dialects/immediate_loop/stmts.py 85% 🟢
TOTAL 96% 🟢

Modified Files

File Coverage Status
src/bloqade/decoders/dialects/_init_.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 2c330c0 by action🐍

@johnzl-777 johnzl-777 linked an issue Jan 23, 2026 that may be closed by this pull request
Comment on lines +17 to +21
def use_repeat():
x = 1
with immediate_loop.repeat(100):
x = x + 1
return x
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a heads up, you don't have any yield/block arguments to the body so this IR would not capture the dataflow dependency of x. I think it would make sense to ban assignment inside the body in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add REPEAT statement

4 participants