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

Debug information in MLIR output from cgeist #425

Open
argentite opened this issue Aug 22, 2024 · 2 comments
Open

Debug information in MLIR output from cgeist #425

argentite opened this issue Aug 22, 2024 · 2 comments

Comments

@argentite
Copy link

We are trying to use cgeist -S to convert C/C++ source code to MLIR for further processing. However the generated MLIR output does not have any source line information. We tried -g, --debugify-level=locations and --debugify-level=location+variables but that does not seem to add anything. Generated binaries with cgeist also does not seem to include any debug information.

Is it possible to get file and/or line number information of the C/C++ source to aid in debugging?

@ivanradanov
Copy link
Collaborator

#426
I think this should fix it and you should be able to use --print-debug-info to get locations in the MLIR output, but I will wait for the tests to complete before merging.

@argentite
Copy link
Author

Yeah, this is exactly what we were looking for. Thank you so much.

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