aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineDomTreeUpdaterTest.cpp
diff options
context:
space:
mode:
authorS. VenkataKeerthy <31350914+svkeerthy@users.noreply.github.com>2025-10-01 16:39:22 -0700
committerGitHub <noreply@github.com>2025-10-01 16:39:22 -0700
commit52b185075919a3d8ec9dc6b7d7da365e28532735 (patch)
treef630a60b6871dc85002f3904634af3b89d5b91b9 /llvm/unittests/CodeGen/MachineDomTreeUpdaterTest.cpp
parentaeffd3645aae854d0dabc8ed45168fb696e6ee39 (diff)
downloadllvm-52b185075919a3d8ec9dc6b7d7da365e28532735.zip
llvm-52b185075919a3d8ec9dc6b7d7da365e28532735.tar.gz
llvm-52b185075919a3d8ec9dc6b7d7da365e28532735.tar.bz2
[IR2Vec] Add support for Cmp predicates in vocabulary and embeddings (#156952)
Comparison predicates (equal, not equal, greater than, etc.) provide important semantic information about program behavior. Previously, IR2Vec only captured that a comparison was happening but not what kind of comparison it was. This PR extends the IR2Vec vocabulary to include comparison predicates (ICmp and FCmp) as part of the embedding space. Following are the changes: 1. Expand the vocabulary slot layout to include predicate entries after opcodes, types, and operands 2. Add methods to handle predicate embedding lookups and conversions 3. Update the embedder implementations to include predicate information when processing CmpInst instructions 4. Update test files to include the new predicate entries in the vocabulary (Tracking issues: #141817, #141833)
Diffstat (limited to 'llvm/unittests/CodeGen/MachineDomTreeUpdaterTest.cpp')
0 files changed, 0 insertions, 0 deletions