[llvm] [NFC][IR2Vec] Refactoring for Stateless Embedding Computation (PR #141811)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 10:54:07 PDT 2025
================
@@ -490,24 +490,14 @@ embeddings can be computed and accessed via an ``ir2vec::Embedder`` instance.
std::unique_ptr<ir2vec::Embedder> Emb = std::move(*EmbOrErr);
3. **Compute and Access Embeddings**:
----------------
mtrofin wrote:
Prompted by this change - you could clarify that the validity of the Embedder is tied to the function not being changed, i.e. it's meant to be used (and invalidated) as part of a "hosting" function analysis.
https://github.com/llvm/llvm-project/pull/141811
More information about the llvm-commits
mailing list