Skip to content

Conversation

maerhart
Copy link
Member

No description provided.

@maerhart maerhart added the RTG Involving the `rtg` dialect label Mar 31, 2025
@maerhart maerhart requested review from youngar and darthscsi March 31, 2025 13:22
@maerhart maerhart force-pushed the maerhart-pyrtg-random-integer branch from 4747ca8 to 0d1e07d Compare April 15, 2025 10:28
Base automatically changed from maerhart-pyrtg-random-integer to main April 15, 2025 10:31
SmallVectorImpl<Type> &inferredReturnTypes) {
if (operands.empty()) {
if (loc)
return mlir::emitError(*loc) << "empty tuples not allowed";
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for disallowing empty tuples?

Copy link
Member Author

Choose a reason for hiding this comment

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

The only reason is that the builtin tuple type does not support an empty list of element types. I could add a new RTG tuple type and allow this. My thought was that I can generalize this when we need it, but I'm also happy to add it right away if you prefer.

@maerhart maerhart force-pushed the maerhart-rtg-tuples branch from 9e8874a to ba581d8 Compare April 28, 2025 13:28
@maerhart maerhart merged commit 420a023 into main Apr 28, 2025
5 checks passed
@maerhart maerhart deleted the maerhart-rtg-tuples branch April 28, 2025 13:30
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.

3 participants