[llvm] [llvm-ir2vec] vocab read refactor (PR #177837)
Nishant Sachdeva via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 26 21:07:14 PST 2026
nishant-sachdeva wrote:
> maybe a little test for the IR2VecTool::initializeVocabulary?
I'm a bit doubtful of the need for this. The function is essentially a wrapper around `IR2Vec.cpp :: Vocabulary::fromFile(StringRef VocabFilePath.. ` and that function specifically has been tested plenty at `llvm/unittests/Analysis/IR2VecTest.cpp`
As for other irregularities around the vocab initialization, those too have been covered at `llvm/test/tools/llvm-ir2vec/error-handling.ll`
@svkeerthy , any thoughts ?
https://github.com/llvm/llvm-project/pull/177837
More information about the llvm-commits
mailing list