[llvm] [IR2Vec] Add support for Cmp predicates in vocabulary and embeddings (PR #156952)
    S. VenkataKeerthy via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Sep  5 14:02:35 PDT 2025
    
    
  
================
@@ -162,16 +163,25 @@ using BBEmbeddingsMap = DenseMap<const BasicBlock *, Embedding>;
 /// embeddings.
 class Vocabulary {
   friend class llvm::IR2VecVocabAnalysis;
+  // Slot layout:
+  // [0 .. MaxOpcodes-1]                                   => Instruction
+  // opcodes [MaxOpcodes .. MaxOpcodes+MaxCanonicalTypeIDs-1]      =>
+  // Canonicalized types [MaxOpcodes+MaxCanonicalTypeIDs .. end of operands) =>
----------------
svkeerthy wrote:
Is it okay now?
https://github.com/llvm/llvm-project/pull/156952
    
    
More information about the llvm-commits
mailing list