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

What does ”std dialect“ do? I didn't find a way to convert "onnx dialect /affine dialect" to ”std dialect“. #3007

Open
pyl3000 opened this issue Nov 13, 2024 · 1 comment

Comments

@pyl3000
Copy link

pyl3000 commented Nov 13, 2024

image

@AlexandreEichenberger
Copy link
Collaborator

I believe this slides say "std" for the standard MLIR dialects like SCF, MemRef, Math, Arith,...

In general, we have a few Krnl operations that are lowered late; most are lowered during the krnl-to-affine but a few are lowered later, up to lowering to LLVM.

That is the standard path that we use here. If you want to hook it up to MLIR to continue optimizations there, you may have a few paths; TOSA or StableHLO which takes ONNX dialects to these, which can then be moved to MLIR. Potentially, you can also pick up some of our lowering patterns for KRNL and applying them in a different order. You are welcome to experiment, and changes could be integrated under a different --EmitXXX option (see onnx-mlir -help for the emit target that we currently support).

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

No branches or pull requests

2 participants