[llvm] [IR2Vec] Add support for Cmp predicates in vocabulary and embeddings (PR #156952)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 08:39:35 PDT 2025


================
@@ -162,16 +163,25 @@ using BBEmbeddingsMap = DenseMap<const BasicBlock *, Embedding>;
 /// embeddings.
 class Vocabulary {
   friend class llvm::IR2VecVocabAnalysis;
+  // Slot layout:
----------------
mtrofin wrote:

IIUC each subrange is fixed length. Within a subrange, you have the embedding of whatever comes after `=>` - correct?

Can you clarify this upfront in the comment? One could imagine MaxOpcodes refers to a LLVM IR constant, for example.

Also split the Operands the same way, for consistency.

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


More information about the llvm-commits mailing list