Skip to content
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

[LowerIntmodules] Fix EICG_wrapper intrinsic lowering, swap en/test_en. #7519

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

dtzSiFive
Copy link
Contributor

The extmodule and intrinsic disagree on port ordering, swap in LowerIntmodules.

Thanks to @prithayan for reporting this!

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

🥳 LGTM! I'm wondering whether the port order of EICG_wrapper is fixed, or if there may be different definitions that have totally different port order. Great to have the lowering complain about those cases 👍

Copy link
Contributor

@prithayan prithayan left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix.

@dtzSiFive
Copy link
Contributor Author

🥳 LGTM! I'm wondering whether the port order of EICG_wrapper is fixed, or if there may be different definitions that have totally different port order. Great to have the lowering complain about those cases 👍

I'm leaning towards keeping it this way for now since grabbing and checking each by name appropriately is a pain and this is already something we're close to phasing out.

But you're right that's how it should work.

FWIW:
We never supported that and checked names in a particular order in the past, and blindly wired to it assuming the order 😓 .
Not that that's a great reason to keep that behavior...

We DO emit them in the other order in SeqToSV, so that's fun.

@dtzSiFive dtzSiFive merged commit 4bbc921 into llvm:main Aug 15, 2024
4 checks passed
@dtzSiFive dtzSiFive deleted the fix/eicg-intrinsic branch August 15, 2024 17:08
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