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

Print llvm source by default in ROCMModuleNode::GetSource #3662

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

t-vi
Copy link
Contributor

@t-vi t-vi commented Jul 30, 2019

This is similar to the LLVM module, which also prints the LLVM IR by default. Currently it just returns an empty string, which is useful in the rarest cases.

The other id that might be worth supporting for compatibility with the other LLVM might be "ll", but I would check with you first.

I briefly looked for a canonical place to add a test, but must admit I didn't really find one. There are some uses of get_source in tests/python/unittest/test_codegen_*, but those seem to be check very specific things about the generated code rather then whether Module works in general.

@t-vi
Copy link
Contributor Author

t-vi commented Jul 30, 2019

So I'm not sure who would be a canonical reviewer, @vinx13 and @tqchen were the last to review ROCm patches. Your advice for tagging reviewers and the above is greatly appreciated.

@masahi
Copy link
Member

masahi commented Jul 30, 2019

thanks @t-vi you can tag me for something ROCm related. I think it is good to merge as is.

@masahi masahi merged commit 52b63b9 into apache:master Jul 30, 2019
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