55
55
namespace llvm {
56
56
namespace ir2vec {
57
57
58
- static cl::OptionCategory IR2VecToolCategory (" IR2Vec Tool Options" );
59
-
60
58
// Subcommands
61
59
static cl::SubCommand
62
60
TripletsSubCmd (" triplets" , " Generate triplets for vocabulary training" );
@@ -72,18 +70,18 @@ static cl::opt<std::string>
72
70
InputFilename (cl::Positional,
73
71
cl::desc (" <input bitcode file or '-' for stdin>" ),
74
72
cl::init(" -" ), cl::sub(TripletsSubCmd),
75
- cl::sub(EmbeddingsSubCmd), cl::cat(IR2VecToolCategory ));
73
+ cl::sub(EmbeddingsSubCmd), cl::cat(ir2vec::IR2VecCategory ));
76
74
77
75
static cl::opt<std::string> OutputFilename (" o" , cl::desc(" Output filename" ),
78
76
cl::value_desc(" filename" ),
79
77
cl::init(" -" ),
80
- cl::cat(IR2VecToolCategory ));
78
+ cl::cat(ir2vec::IR2VecCategory ));
81
79
82
80
// Embedding-specific options
83
81
static cl::opt<std::string>
84
82
FunctionName (" function" , cl::desc(" Process specific function only" ),
85
83
cl::value_desc(" name" ), cl::Optional, cl::init(" " ),
86
- cl::sub(EmbeddingsSubCmd), cl::cat(IR2VecToolCategory ));
84
+ cl::sub(EmbeddingsSubCmd), cl::cat(ir2vec::IR2VecCategory ));
87
85
88
86
enum EmbeddingLevel {
89
87
InstructionLevel, // Generate instruction-level embeddings
@@ -100,7 +98,7 @@ static cl::opt<EmbeddingLevel>
100
98
clEnumValN(FunctionLevel, " func" ,
101
99
" Generate function-level embeddings" )),
102
100
cl::init(FunctionLevel), cl::sub(EmbeddingsSubCmd),
103
- cl::cat(IR2VecToolCategory ));
101
+ cl::cat(ir2vec::IR2VecCategory ));
104
102
105
103
namespace {
106
104
@@ -325,7 +323,7 @@ int main(int argc, char **argv) {
325
323
using namespace llvm ::ir2vec;
326
324
327
325
InitLLVM X (argc, argv);
328
- cl::HideUnrelatedOptions (IR2VecToolCategory );
326
+ cl::HideUnrelatedOptions (ir2vec::IR2VecCategory );
329
327
cl::ParseCommandLineOptions (
330
328
argc, argv,
331
329
" IR2Vec - Embedding Generation Tool\n "
0 commit comments