Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@maerhart
Copy link
Member

  • Use the index dialect instead of arith because it is a smaller dependency and simpler, but still has everything we need.
  • Add support for index.add and index.cmp
  • Add specialized elaborator values for indices and booleans because creating attributes for intermediates is quite bad performance-wise (ideally we'd have some evaluation interface at some point that we can also use for folding, or better folders that we can call directly)

@maerhart maerhart added the RTG Involving the `rtg` dialect label Dec 12, 2024
namespace {

/// The abstract base class for elaborated values.
struct ElaboratorValue {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like just a std::variant.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll address this in #7997

Copy link
Contributor

@darthscsi darthscsi 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 think the elaboration is reinventing std::variant, but that is separate from this PR.

@maerhart maerhart force-pushed the maerhart-rtg-elaboration-sequences branch from 75e65f4 to 1d5640f Compare January 14, 2025 19:59
Base automatically changed from maerhart-rtg-elaboration-sequences to main January 14, 2025 20:28
@maerhart maerhart force-pushed the maerhart-rtg-elaboration-indexops branch from eda599f to 83c12d2 Compare January 14, 2025 21:00
@maerhart maerhart merged commit fff227c into main Jan 14, 2025
4 checks passed
@maerhart maerhart deleted the maerhart-rtg-elaboration-indexops branch January 14, 2025 21:51
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RTG Involving the `rtg` dialect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants