================ @@ -199,6 +199,29 @@ void FunctionPropertiesInfo::updateForBB(const BasicBlock &BB, #undef CHECK_OPERAND } } + + if (IR2VecVocab) { + // We instantiate the IR2Vec embedder each time, as having an unique + // pointer to the embedder as member of the class would make it + // non-copyable. Instantiating the embedder in itself is not costly. + auto EmbOrErr = ir2vec::Embedder::create(IR2VecKind::Symbolic, ---------------- mtrofin wrote:
separate patch, but we can do away with `create` returning Error, right? https://github.com/llvm/llvm-project/pull/143479 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits