@@ -155,7 +155,7 @@ void Embedding::print(raw_ostream &OS) const {
155
155
Embedder::Embedder (const Function &F, const Vocabulary &Vocab)
156
156
: F(F), Vocab(Vocab), Dimension(Vocab.getDimension()),
157
157
OpcWeight (::OpcWeight), TypeWeight(::TypeWeight), ArgWeight(::ArgWeight),
158
- FuncVector(Embedding(Dimension, 0 )) {}
158
+ FuncVector(Embedding(Dimension)) {}
159
159
160
160
std::unique_ptr<Embedder> Embedder::create (IR2VecKind Mode, const Function &F,
161
161
const Vocabulary &Vocab) {
@@ -472,7 +472,7 @@ void IR2VecVocabAnalysis::generateNumMappedVocab() {
472
472
473
473
// Handle Opcodes
474
474
std::vector<Embedding> NumericOpcodeEmbeddings (Vocabulary::MaxOpcodes,
475
- Embedding (Dim, 0 ));
475
+ Embedding (Dim));
476
476
NumericOpcodeEmbeddings.reserve (Vocabulary::MaxOpcodes);
477
477
for (unsigned Opcode : seq (0u , Vocabulary::MaxOpcodes)) {
478
478
StringRef VocabKey = Vocabulary::getVocabKeyForOpcode (Opcode + 1 );
@@ -487,7 +487,7 @@ void IR2VecVocabAnalysis::generateNumMappedVocab() {
487
487
488
488
// Handle Types - only canonical types are present in vocabulary
489
489
std::vector<Embedding> NumericTypeEmbeddings (Vocabulary::MaxCanonicalTypeIDs,
490
- Embedding (Dim, 0 ));
490
+ Embedding (Dim));
491
491
NumericTypeEmbeddings.reserve (Vocabulary::MaxCanonicalTypeIDs);
492
492
for (unsigned CTypeID : seq (0u , Vocabulary::MaxCanonicalTypeIDs)) {
493
493
StringRef VocabKey = Vocabulary::getVocabKeyForCanonicalTypeID (
@@ -503,7 +503,7 @@ void IR2VecVocabAnalysis::generateNumMappedVocab() {
503
503
504
504
// Handle Arguments/Operands
505
505
std::vector<Embedding> NumericArgEmbeddings (Vocabulary::MaxOperandKinds,
506
- Embedding (Dim, 0 ));
506
+ Embedding (Dim));
507
507
NumericArgEmbeddings.reserve (Vocabulary::MaxOperandKinds);
508
508
for (unsigned OpKind : seq (0u , Vocabulary::MaxOperandKinds)) {
509
509
Vocabulary::OperandKind Kind = static_cast <Vocabulary::OperandKind>(OpKind);
0 commit comments