5555namespace llvm {
5656namespace ir2vec {
5757
58- static cl::OptionCategory IR2VecToolCategory (" IR2Vec Tool Options" );
59-
6058// Subcommands
6159static cl::SubCommand
6260 TripletsSubCmd (" triplets" , " Generate triplets for vocabulary training" );
@@ -72,18 +70,18 @@ static cl::opt<std::string>
7270 InputFilename (cl::Positional,
7371 cl::desc (" <input bitcode file or '-' for stdin>" ),
7472 cl::init(" -" ), cl::sub(TripletsSubCmd),
75- cl::sub(EmbeddingsSubCmd), cl::cat(IR2VecToolCategory ));
73+ cl::sub(EmbeddingsSubCmd), cl::cat(ir2vec::IR2VecCategory ));
7674
7775static cl::opt<std::string> OutputFilename (" o" , cl::desc(" Output filename" ),
7876 cl::value_desc(" filename" ),
7977 cl::init(" -" ),
80- cl::cat(IR2VecToolCategory ));
78+ cl::cat(ir2vec::IR2VecCategory ));
8179
8280// Embedding-specific options
8381static cl::opt<std::string>
8482 FunctionName (" function" , cl::desc(" Process specific function only" ),
8583 cl::value_desc(" name" ), cl::Optional, cl::init(" " ),
86- cl::sub(EmbeddingsSubCmd), cl::cat(IR2VecToolCategory ));
84+ cl::sub(EmbeddingsSubCmd), cl::cat(ir2vec::IR2VecCategory ));
8785
8886enum EmbeddingLevel {
8987 InstructionLevel, // Generate instruction-level embeddings
@@ -100,7 +98,7 @@ static cl::opt<EmbeddingLevel>
10098 clEnumValN(FunctionLevel, " func" ,
10199 " Generate function-level embeddings" )),
102100 cl::init(FunctionLevel), cl::sub(EmbeddingsSubCmd),
103- cl::cat(IR2VecToolCategory ));
101+ cl::cat(ir2vec::IR2VecCategory ));
104102
105103namespace {
106104
@@ -325,7 +323,7 @@ int main(int argc, char **argv) {
325323 using namespace llvm ::ir2vec;
326324
327325 InitLLVM X (argc, argv);
328- cl::HideUnrelatedOptions (IR2VecToolCategory );
326+ cl::HideUnrelatedOptions (ir2vec::IR2VecCategory );
329327 cl::ParseCommandLineOptions (
330328 argc, argv,
331329 " IR2Vec - Embedding Generation Tool\n "
0 commit comments