Searched refs:Vocab (Results 1 – 2 of 2) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IR2Vec.cpp | 142 Embedder::Embedder(const Function &F, const Vocabulary &Vocab) in Embedder() argument 143 : F(F), Vocab(Vocab), Dimension(Vocab.getDimension()), in Embedder() 148 const Vocabulary &Vocab) { in create() argument 151 return std::make_unique<SymbolicEmbedder>(F, Vocab); in create() 190 ArgEmb += Vocab[Op]; in computeEmbeddings() 192 Vocab[I.getOpcode()] + Vocab[I.getType()->getTypeID()] + ArgEmb; in computeEmbeddings() 214 Vocabulary::Vocabulary(VocabVector &&Vocab) in Vocabulary() argument 215 : Vocab(std::move(Vocab)), Valid(true) {} in Vocabulary() 218 return Vocab.size() == (MaxOpcodes + MaxTypeIDs + MaxOperandKinds) && Valid; in isValid() 223 return Vocab.size(); in size() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IR2Vec.h | 138 VocabVector Vocab; variable 167 Vocabulary(VocabVector &&Vocab); 194 return Vocab.begin(); in begin() 199 return Vocab.cbegin(); in cbegin() 204 return Vocab.end(); in end() 209 return Vocab.cend(); in cend() 233 const Vocabulary &Vocab; variable 248 LLVM_ABI Embedder(const Function &F, const Vocabulary &Vocab); 264 create(IR2VecKind Mode, const Function &F, const Vocabulary &Vocab); 294 SymbolicEmbedder(const Function &F, const Vocabulary &Vocab) in SymbolicEmbedder() argument [all …]
|