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

Compile OCaml to MLIR #38

Open
kayceesrk opened this issue Oct 18, 2024 · 1 comment
Open

Compile OCaml to MLIR #38

kayceesrk opened this issue Oct 18, 2024 · 1 comment

Comments

@kayceesrk
Copy link
Contributor

kayceesrk commented Oct 18, 2024

Some references. Triton would be a good starting point (https://github.com/triton-lang/triton) which lowers Python AST to different MLIR Dialects (https://www.youtube.com/watch?v=AtbnRIzpwho). There are also other examples, such as Flang (MLIR/LLVM-based compiler) https://mlir.llvm.org/users/. Also, this talk would be useful, especially for functional programming languages (https://www.youtube.com/watch?v=cyMQbZ0B84Q&pp=ygUTbGFtYmRhIHNzYSBsbHZtIGRldg%3D%3D).

@kayceesrk kayceesrk converted this from a draft issue Oct 18, 2024
@kayceesrk kayceesrk moved this to Todo in hackocaml Oct 18, 2024
@kayceesrk
Copy link
Contributor Author

Potential starting points might be either bytecode (as in the case of js_of_ocaml and wasm_of_ocaml compilers) or flambda2 (after the optimisations passes https://github.com/ocaml-flambda/flambda-backend/)

@kayceesrk kayceesrk moved this from Todo to In Progress in hackocaml Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant