================ @@ -447,21 +453,18 @@ void IR2VecVocabAnalysis::generateNumMappedVocab() { // Handle Opcodes std::vector<Embedding> NumericOpcodeEmbeddings(Vocabulary::MaxOpcodes, Embedding(Dim, 0)); -#define HANDLE_INST(NUM, OPCODE, CLASS) \ - { \ - auto It = OpcVocab.find(#OPCODE); \ - if (It != OpcVocab.end()) \ - NumericOpcodeEmbeddings[NUM - 1] = It->second; \ - else \ - handleMissingEntity(#OPCODE); \ + for (unsigned Opcode : seq(0u, Vocabulary::MaxOpcodes)) { ---------------- boomanaiden154 wrote:
Interesting. https://github.com/llvm/llvm-project/pull/147585 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits