Skip to content

Conversation

svkeerthy
Copy link
Contributor

No description provided.

@svkeerthy svkeerthy changed the title Added doc [NFC][IR2Vec] Add usage documentation for obtaining embeddings Aug 26, 2025
@svkeerthy svkeerthy marked this pull request as ready for review August 26, 2025 23:27
@llvmbot llvmbot added mlgo llvm:analysis Includes value tracking, cost tables and constant folding labels Aug 26, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 26, 2025

@llvm/pr-subscribers-llvm-analysis

Author: S. VenkataKeerthy (svkeerthy)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/155516.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Analysis/IR2Vec.h (+6)
diff --git a/llvm/include/llvm/Analysis/IR2Vec.h b/llvm/include/llvm/Analysis/IR2Vec.h
index 26a3d303e7ab0..9a427e559d943 100644
--- a/llvm/include/llvm/Analysis/IR2Vec.h
+++ b/llvm/include/llvm/Analysis/IR2Vec.h
@@ -24,6 +24,12 @@
 ///   Code Optimization (TACO), 2020. https://doi.org/10.1145/3418463.
 ///   https://arxiv.org/abs/1909.06228
 ///
+/// To obtain embeddings:
+/// First run the IR2Vec vocabulary analysis pass to populate the vocabulary.
+/// Then, use the Embedder interface to generate embeddings for the desired IR
+/// entities. See the documentation for more details -
+/// https://llvm.org/docs/MLGO.html#ir2vec-embeddings
+///
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_ANALYSIS_IR2VEC_H

@llvmbot
Copy link
Member

llvmbot commented Aug 26, 2025

@llvm/pr-subscribers-mlgo

Author: S. VenkataKeerthy (svkeerthy)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/155516.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Analysis/IR2Vec.h (+6)
diff --git a/llvm/include/llvm/Analysis/IR2Vec.h b/llvm/include/llvm/Analysis/IR2Vec.h
index 26a3d303e7ab0..9a427e559d943 100644
--- a/llvm/include/llvm/Analysis/IR2Vec.h
+++ b/llvm/include/llvm/Analysis/IR2Vec.h
@@ -24,6 +24,12 @@
 ///   Code Optimization (TACO), 2020. https://doi.org/10.1145/3418463.
 ///   https://arxiv.org/abs/1909.06228
 ///
+/// To obtain embeddings:
+/// First run the IR2Vec vocabulary analysis pass to populate the vocabulary.
+/// Then, use the Embedder interface to generate embeddings for the desired IR
+/// entities. See the documentation for more details -
+/// https://llvm.org/docs/MLGO.html#ir2vec-embeddings
+///
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_ANALYSIS_IR2VEC_H

@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 4734c24 to 987d846 Compare August 27, 2025 18:25
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from 267e2da to 7037453 Compare August 27, 2025 19:40
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 987d846 to 0d75afa Compare August 27, 2025 19:40
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from 7037453 to 9b851b9 Compare August 27, 2025 20:06
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 0d75afa to 9a18f1c Compare August 27, 2025 20:06
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from 9b851b9 to fe1463e Compare August 27, 2025 21:04
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 9a18f1c to 7ddfeaa Compare August 27, 2025 21:04
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from fe1463e to d70182f Compare August 28, 2025 19:59
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch 2 times, most recently from c809d9d to 18675c6 Compare August 28, 2025 23:04
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from d70182f to 01b9019 Compare August 28, 2025 23:04
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from 01b9019 to 2fd070b Compare August 28, 2025 23:53
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 18675c6 to 374bfa9 Compare August 28, 2025 23:53
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 374bfa9 to 97560b9 Compare August 29, 2025 00:37
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch 2 times, most recently from 2dd49e7 to a73389b Compare August 29, 2025 18:51
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from 97560b9 to a20fb0e Compare August 29, 2025 18:52
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch from a73389b to 3c6e312 Compare August 29, 2025 20:07
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-26-added_doc branch from a20fb0e to b21b641 Compare August 29, 2025 20:08
@svkeerthy svkeerthy force-pushed the users/svkeerthy/08-25-canonicalized_type branch 4 times, most recently from e727d58 to cb881b6 Compare August 29, 2025 21:30
Base automatically changed from users/svkeerthy/08-25-canonicalized_type to main August 29, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm:analysis Includes value tracking, cost tables and constant folding mlgo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants