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

Don't print semicolon after emitc.verbatim within emitc.for #384

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

mgehre-amd
Copy link
Collaborator

There was code to suppress printing semicolons after emitc.verbatim in the function that emits a function body, but then it would still print #pragma; when the emitc.verbatim "#pragma" was within a loop body.

I moved that code into the general printOperation() function, so it applies to emitc.verbatim independent of what the parent op is.

There was code to suppress printing semicolons after emitc.verbatim
in the function that emits a function body, but then
it would still print `#pragma;` when the `emitc.verbatim "#pragma"`
was within a loop body.

I moved that code into the general printOperation() function, so it applies
to emitc.verbatim independent of what the parent op is.
Copy link

@TinaAMD TinaAMD left a comment

Choose a reason for hiding this comment

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

LGTM

mlir/lib/Target/Cpp/TranslateToCpp.cpp Show resolved Hide resolved
Base automatically changed from matthias.verbatim_args to feature/fused-ops October 9, 2024 08:53
@mgehre-amd mgehre-amd merged commit 81b017a into feature/fused-ops Oct 9, 2024
4 checks passed
@mgehre-amd mgehre-amd deleted the matthias.trailing_semi_verbatim branch October 9, 2024 08:54
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