[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 10:56:42 PDT 2025


================
@@ -345,18 +364,41 @@ Vocabulary::OperandKind Vocabulary::getOperandKind(const Value *Op) {
   return OperandKind::VariableID;
 }
 
+CmpInst::Predicate Vocabulary::getPredicate(unsigned Index) {
+  assert(Index < MaxPredicateKinds && "Invalid predicate index");
----------------
svkeerthy wrote:

Yes, correct.

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


More information about the llvm-commits mailing list