File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,14 @@ class Vocabulary {
162
162
static constexpr unsigned MaxOperandKinds =
163
163
static_cast <unsigned >(OperandKind::MaxOperandKind);
164
164
165
+ public:
166
+ Vocabulary () = default ;
167
+ Vocabulary (VocabVector &&Vocab);
168
+
169
+ bool isValid () const ;
170
+ unsigned getDimension () const ;
171
+ size_t size () const ;
172
+
165
173
// / Helper function to get vocabulary key for a given Opcode
166
174
static StringRef getVocabKeyForOpcode (unsigned Opcode);
167
175
@@ -174,14 +182,6 @@ class Vocabulary {
174
182
// / Helper function to classify an operand into OperandKind
175
183
static OperandKind getOperandKind (const Value *Op);
176
184
177
- public:
178
- Vocabulary () = default ;
179
- Vocabulary (VocabVector &&Vocab);
180
-
181
- bool isValid () const ;
182
- unsigned getDimension () const ;
183
- size_t size () const ;
184
-
185
185
// / Accessors to get the embedding for a given entity.
186
186
const ir2vec::Embedding &operator [](unsigned Opcode) const ;
187
187
const ir2vec::Embedding &operator [](Type::TypeID TypeId) const ;
Original file line number Diff line number Diff line change @@ -502,7 +502,8 @@ IR2VecVocabAnalysis::run(Module &M, ModuleAnalysisManager &AM) {
502
502
// Otherwise, try to read from the vocabulary file.
503
503
if (VocabFile.empty ()) {
504
504
// FIXME: Use default vocabulary
505
- Ctx->emitError (" IR2Vec vocabulary file path not specified" );
505
+ Ctx->emitError (" IR2Vec vocabulary file path not specified; You may need to "
506
+ " set it using --ir2vec-vocab-path" );
506
507
return Vocabulary (); // Return invalid result
507
508
}
508
509
if (auto Err = readVocabulary ()) {
You can’t perform that action at this time.
0 commit comments