Skip to content

Conversation

terapines-osc-cir
Copy link
Contributor

As we need to preserve the ContinueOp for inner loops when we convert for outer while-loops, we must not mark cir dialect as illegal. Otherwise, MLIR rejects this kind of preservation and considers it as a pass failure.
It seems we need another way to check whether the CIR is fully lowered.

@bcardosolopes bcardosolopes merged commit 4ddd7e2 into llvm:main Jun 23, 2025
10 checks passed
terapines-osc-cir added a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
As we need to preserve the ContinueOp for inner loops when we convert
for outer while-loops, we must not mark cir dialect as illegal.
Otherwise, MLIR rejects this kind of preservation and considers it as a
pass failure.
It seems we need another way to check whether the CIR is fully lowered.

Co-authored-by: Yue Huang <[email protected]>
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.

3 participants