Skip to content

[RTG] Randomizer operations are not pure#10560

Open
maerhart wants to merge 1 commit into
mainfrom
maerhart-rtg-fix-random-cse
Open

[RTG] Randomizer operations are not pure#10560
maerhart wants to merge 1 commit into
mainfrom
maerhart-rtg-fix-random-cse

Conversation

@maerhart
Copy link
Copy Markdown
Member

No description provided.

@maerhart maerhart added the RTG Involving the `rtg` dialect label May 29, 2026
@circt-bot
Copy link
Copy Markdown

circt-bot Bot commented May 29, 2026

Results of circt-tests run for 964c246 compared to results for e217d99: no change to test results.

Copy link
Copy Markdown
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

This makes sense to me.

The custom resource is an interesting idea. That is perhaps something we can/should lean on more heavily in other dialects as opposed to reusing generic memory effects.

Comment on lines +23 to +25
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Consider:

Suggested change
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-NEXT: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-COUNT-3: rtg.set_select_random [[SET]] : !rtg.set<i32>
// CHECK-NOT: rtg.set_select_random [[SET]]

Same comment throughout.

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