Skip to content

Conversation

xlauko
Copy link
Collaborator

@xlauko xlauko commented Aug 22, 2025

No description provided.

@xlauko xlauko marked this pull request as ready for review August 22, 2025 12:51
@xlauko
Copy link
Collaborator Author

xlauko commented Aug 22, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@@ -252,7 +248,7 @@ CIRGenFunction::emitCoroutineBody(const CoroutineBodyStmt &S) {

auto Fn = dyn_cast<cir::FuncOp>(CurFn);
assert(Fn && "other callables NYI");
Fn.setCoroutineAttr(mlir::UnitAttr::get(&getMLIRContext()));
Fn.setCoroutine(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Separate concern: should we rename these optional attributes to follow some pattern? Right now we have both thing and is_thing, for example load has is_deref while function has coroutine. After these changes (which are great) it gets a bit more confusing as to what's happening in these setters/getters.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would be for is_thing when it makes sense. But things like no_signed_wrap sound weird as is_no_signed_wrap.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's true. We can do a case by case thing and this isn't high priority.

@xlauko xlauko merged commit 3edeb5d into main Aug 23, 2025
10 of 12 checks passed
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