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

Add support for exegesis annotator in BHive conversion script #41

Conversation

boomanaiden154
Copy link
Collaborator

This patch adds support for using the exegesis annotator in the BHive conversion script.

This patch adds support for using the exegesis annotator in the BHive
conversion script.
Copy link
Collaborator

@mtrofin mtrofin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this file is OK with abseil deps @ondrasej ?

gematria/datasets/convert_bhive_to_llvm_exegesis_input.cc Outdated Show resolved Hide resolved

auto llvm_state_or_error = llvm::exegesis::LLVMState::Create("", "native");
if (!llvm_state_or_error) {
std::cerr << "Failed to create LLVMState\n";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't have absl::log?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, but the rest of the file uses standard library output, so I'm staying consistent with that for now. Not sure what would be preferred though. I think within Google, everything would use absl::log, and LLVM has its own output facilities, so this is sort of in no man's land.

@ondrasej
Copy link
Collaborator

ondrasej commented Feb 4, 2024

I assume this file is OK with abseil deps @ondrasej ?

I think this one is fine. We're using LLVM from this one, but we don't need tflite, so Bazel build should not be a problem.

It would be nice to get rid of Abseil eventually, but it's not necessary in this PR.

Copy link
Collaborator

@ondrasej ondrasej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any more comments.

@boomanaiden154 boomanaiden154 merged commit 78ff88e into google:main Feb 19, 2024
6 checks passed
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.

3 participants