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 Python bindings to annotating_importer. #139

Merged
merged 7 commits into from
Oct 14, 2024

Conversation

virajbshah
Copy link
Collaborator

  • Add bindings to the driver function.
  • Add a small python script that exposes the binding for use.

@virajbshah virajbshah marked this pull request as draft July 17, 2024 16:29
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.

Looks good overall, I have just a few minor comments.

 * Add bindings to the driver function.
 * Add a small python script that exposes the binding for use.
@virajbshah virajbshah marked this pull request as ready for review September 9, 2024 13:50
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.

Just a few minor comments, otherwise it looks good.

gematria/datasets/python/annotating_importer_test.py Outdated Show resolved Hide resolved
gematria/datasets/python/annotating_importer_test.py Outdated Show resolved Hide resolved
gematria/datasets/python/import_annotated_basic_blocks.py Outdated Show resolved Hide resolved
gematria/datasets/python/import_annotated_basic_blocks.py Outdated Show resolved Hide resolved
gematria/datasets/python/import_annotated_basic_blocks.py Outdated Show resolved Hide resolved
Comment on lines +75 to +79
except status.StatusNotOk:
logging.exception(
'LLVM triple "%s" is not known or supported.', _LLVM_TRIPLE.value
)
exit(1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional: Just letting the exception bubble up uncaught would have pretty much the same effect.

@virajbshah virajbshah merged commit 29d3add into google:main Oct 14, 2024
7 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.

2 participants