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

[FXML-4320] Restrict types that are valid in EmitC #141

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

TinaAMD
Copy link

@TinaAMD TinaAMD commented Mar 18, 2024

Use what is currently supported by the emitter to restrict the valid types of EmitC operations. Define utility function for valid types, such that they can be used to restrict the operations in the table gen as well as being available for reuse in dialect conversions.

@TinaAMD TinaAMD force-pushed the tina.FXML-4320-restrict-emit-c-types branch from 80c0cbf to b3ff7dc Compare March 18, 2024 12:09
@TinaAMD TinaAMD requested a review from mgehre-amd March 18, 2024 12:20
@mgehre-amd
Copy link
Collaborator

Do you want to already update ArithToEmitC here or in another PR?

@TinaAMD
Copy link
Author

TinaAMD commented Mar 18, 2024

Do you want to already update ArithToEmitC here or in another PR?

I am not sure. There are more dialects that convert to EmitC, maybe we should update all of them actually (in one go, in a separate PR probably)?😅

@mgehre-amd
Copy link
Collaborator

Do you want to already update ArithToEmitC here or in another PR?

I am not sure. There are more dialects that convert to EmitC, maybe we should update all of them actually (in one go, in a separate PR probably)?😅

ok, let's try

@TinaAMD TinaAMD force-pushed the tina.FXML-4320-restrict-emit-c-types branch from 0057b0b to 0774e67 Compare March 19, 2024 08:20
@TinaAMD TinaAMD changed the base branch from feature/fused-ops to tina.FXML-4320-restrict-emit-c-float-int-types March 19, 2024 08:21
@TinaAMD TinaAMD force-pushed the tina.FXML-4320-restrict-emit-c-types branch from 0774e67 to b86f52f Compare March 19, 2024 08:23
Base automatically changed from tina.FXML-4320-restrict-emit-c-float-int-types to feature/fused-ops March 19, 2024 12:59
Use what is currently supported by the emitter to restrict the valid types of EmitC operations. Define three utility functions for valid types, such that they can be used to restrict the operations in the table gen as well as being available for reuse in dialect conversions.
@TinaAMD TinaAMD force-pushed the tina.FXML-4320-restrict-emit-c-types branch from 254a4bd to dd3575e Compare April 10, 2024 11:36
@TinaAMD TinaAMD marked this pull request as ready for review April 10, 2024 13:00
Copy link
Collaborator

@mgehre-amd mgehre-amd left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Collaborator

@cferry-AMD cferry-AMD left a comment

Choose a reason for hiding this comment

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

Looks good to me too :)

mlir/lib/Dialect/EmitC/IR/EmitC.cpp Show resolved Hide resolved
@TinaAMD TinaAMD merged commit 81f36b7 into feature/fused-ops Apr 11, 2024
6 checks passed
@TinaAMD TinaAMD deleted the tina.FXML-4320-restrict-emit-c-types branch April 11, 2024 08:23
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