Skip to content

Comments

Improve pre-elaboration cycle detection error messages in XLS IR#3876

Draft
copybara-service[bot] wants to merge 1 commit intomainfrom
test_874071831
Draft

Improve pre-elaboration cycle detection error messages in XLS IR#3876
copybara-service[bot] wants to merge 1 commit intomainfrom
test_874071831

Conversation

@copybara-service
Copy link

Improve pre-elaboration cycle detection error messages in XLS IR

The error message for cycle detection now includes the kind and name of the FunctionBase (function, proc, or block) where the cycle was found. It also provides more context and guidance on how to address the cycle, distinguishing between Blocks (suggesting a toolchain bug or register insertion) and Functions/Procs (suggesting a toolchain bug or error in IR construction).

We also reverse the cycle path to be more intuitive, in (operand -> user) order.

The error message for cycle detection now includes the kind and name of the FunctionBase (function, proc, or block) where the cycle was found. It also provides more context and guidance on how to address the cycle, distinguishing between Blocks (suggesting a toolchain bug or register insertion) and Functions/Procs (suggesting a toolchain bug or error in IR construction).

We also reverse the cycle path to be more intuitive, in (operand -> user) order.

PiperOrigin-RevId: 874071831
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.

1 participant