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