[llvm] [IR2Vec] Introducing python bindings for IR2Vec (PR #173194)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 11 07:14:12 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD llvm/test/tools/llvm-ir2vec/python/init.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- init.py 2026-01-11 15:11:54.000000 +0000
+++ init.py 2026-01-11 15:13:43.143567 +0000
@@ -4,15 +4,11 @@
import py_ir2vec
ll_file = sys.argv[1]
vocab_path = sys.argv[2]
-tool = py_ir2vec.initEmbedding(
- filename=ll_file,
- mode="sym",
- vocab_override=vocab_path
-)
+tool = py_ir2vec.initEmbedding(filename=ll_file, mode="sym", vocab_override=vocab_path)
if tool is not None:
print("SUCCESS: Tool initialized")
print(f"Tool type: {type(tool).__name__}")
``````````
</details>
https://github.com/llvm/llvm-project/pull/173194
More information about the llvm-commits
mailing list