Skip to content

[mlir][emitc] Add type conversions to EmitC types to FuncToEmitC, MemRefToEmitC #134096

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cferry-AMD
Copy link
Contributor

PR #93155 introduced EmitC size_t, ptrdiff_t, ssize_t types. Conversion passes ArithToEmitC and SCFToEmitC already make use of these types, but FuncToEmitC and MemRefToEmitC do not yet. This PR introduces EmitC type conversion into the latter two passes.

While MemRefToEmitC is pretty straightforward, FuncToEmitC required changes to:

  • the call op lowering: the results of the op need to be converted,
  • the function op lowering: the function signature (arguments and results) needs to be converted.

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.

2 participants