[llvm-branch-commits] [llvm] [IR2Vec] Initial infrastructure for MIR2Vec (PR #161463)

S. VenkataKeerthy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Oct 1 13:05:20 PDT 2025


================
@@ -329,6 +329,43 @@ bool VocabStorage::const_iterator::operator!=(
   return !(*this == Other);
 }
 
+Error VocabStorage::parseVocabSection(StringRef Key,
+                                      const json::Value &ParsedVocabValue,
+                                      VocabMap &TargetVocab, unsigned &Dim) {
+  json::Path::Root Path("");
----------------
svkeerthy wrote:

That's what I am trying to do.. moving it to VocabStorage can help us use this method in both IR and MIR vocabulary. (Will push it as a separate NFC as you mentioned in earlier comment)

https://github.com/llvm/llvm-project/pull/161463


More information about the llvm-branch-commits mailing list