[llvm] [IR2Vec] Restructuring Vocabulary (PR #145119)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 20:14:57 PDT 2025


================
@@ -34,13 +34,13 @@ class FunctionPropertiesInfo {
   void reIncludeBB(const BasicBlock &BB);
 
   ir2vec::Embedding FunctionEmbedding = ir2vec::Embedding(0.0);
-  std::optional<ir2vec::Vocab> IR2VecVocab;
+  const ir2vec::Vocabulary *IR2VecVocab = nullptr;
----------------
boomanaiden154 wrote:

If this isn't set in the constructor, how are you changing it from `nullptr`?

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


More information about the llvm-commits mailing list