[llvm] [llvm-ir2vec] Decoupling Vocab loading from initEmbedding (PR #190507)
Nishant Sachdeva via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 22:00:55 PDT 2026
================
@@ -38,6 +38,25 @@ std::unique_ptr<Module> getLLVMIR(const std::string &Filename,
return M;
}
+class PyVocab {
+private:
+ std::shared_ptr<Vocabulary> Vocab;
+
+public:
+ PyVocab(const std::string &VocabPath) {
----------------
nishant-sachdeva wrote:
Accepting this
https://github.com/llvm/llvm-project/pull/190507
More information about the llvm-commits
mailing list