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

[Playground] Support for disassembler like tools #57

Open
xintin opened this issue May 9, 2023 · 5 comments
Open

[Playground] Support for disassembler like tools #57

xintin opened this issue May 9, 2023 · 5 comments
Labels
Initiative: REPL/Jupyter mojo-repo Tag all issues with this label

Comments

@xintin
Copy link

xintin commented May 9, 2023

Request

Support for python like disassembler module
Support for IR inspector tool

Motivation

While running the benchmarking notebooks, it will be helpful to analyze the bytecode.
Further, support for IR dump and inspection will be much more appreciated to understand the optimizations like SIMD, unrolling, etc.

In the tutorial and doc, I tried to find the above two (bytecode analyzer and IR inspector) but could not. If it already exists, feel free to redirect me. Thanks.

Description and Requirements

  1. dis module to analyze the bytecode; something like in python
  2. tool to inspect IR.
@xintin xintin added the enhancement New feature or request label May 9, 2023
@xintin xintin changed the title [Feature Request] Support for disassembler [Feature Request] Support for disassembler like tools May 9, 2023
@lattner
Copy link
Collaborator

lattner commented May 9, 2023

This would be very handy.

@Mogball
Copy link
Collaborator

Mogball commented May 10, 2023

Our compiler can already produce intermediate MLIR, LLVMIR, and assembly, but we're not ready to release these tools yet.

@Mogball Mogball closed this as completed May 10, 2023
@lattner lattner changed the title [Feature Request] Support for disassembler like tools [Playground] Support for disassembler like tools May 11, 2023
@lattner lattner added playground label to tag playground environment related issues. notebook Tag for issues related to Jupyter Notebooks or enviornment and removed enhancement New feature or request labels May 11, 2023
@lattner
Copy link
Collaborator

lattner commented May 11, 2023

Right, but we should have a feature to expose this in the notebook

@lattner lattner reopened this May 11, 2023
@ematejska ematejska added the mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. label Sep 7, 2023
@Boyazhang1
Copy link

Our compiler can already produce intermediate MLIR, LLVMIR, and assembly, but we're not ready to release these tools yet.

Is there an expected timeline for the release of these features?

@ematejska ematejska removed the playground label to tag playground environment related issues. label Mar 21, 2024
@walter-erquinigo
Copy link
Contributor

Thanks for the report!
We should be able to expose magic commands, e.g. %%mlir that can support this exact feature.
We haven't planned for this work yet, but as soon as we do, we'll let you know.

@linear linear bot removed mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. notebook Tag for issues related to Jupyter Notebooks or enviornment labels Apr 29, 2024
@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Initiative: REPL/Jupyter mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

6 participants