search for: commandlineparser

Displaying 7 results from an estimated 7 matches for "commandlineparser".

2016 Feb 15
2
CommandLineParser problems with llvm trunk?
Hi, Recently I started getting some weird errors from multiple tools (on Linux x86-64): λ lld lld: ../lib/Support/CommandLine.cpp:202: void (anonymous namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory *): Assertion `std::count_if(RegisteredOptionCategories.begin(), RegisteredOptionCategories.end(), [cat](const OptionCategory *Category) { return cat->getName() == Category->getName(); }) == 0 && "Duplicate option categories"' f...
2019 Nov 18
2
Unable to parse command line more than once using llvm libraries?
...} > > ...to... > > extern "C" int llcmain(int argc, char **argv) { > ... > } > > > Now I am calling this function directly from my server code. This works fine for the first build, however any other builds fail in > > CommandLine.cpp:1101 > > CommandLineParser::ParseCommandLineOptions > > assert(hasOptions() && "No options specified!"); <--fails here > > > I'm trying to work out why this is breaking, I am assuming there is some global state left after processing that llc.cpp doesn't normally need to worry ab...
2019 Nov 17
2
Unable to parse command line more than once using llvm libraries?
...ed llc.cpp to change... int llcmain(int argc, char **argv) { ... } ...to... extern "C" int llcmain(int argc, char **argv) { ... } Now I am calling this function directly from my server code. This works fine for the first build, however any other builds fail in CommandLine.cpp:1101 CommandLineParser::ParseCommandLineOptions assert(hasOptions() && "No options specified!"); <--fails here I'm trying to work out why this is breaking, I am assuming there is some global state left after processing that llc.cpp doesn't normally need to worry about? Is there a way to r...
2018 Jul 10
2
custom LLVM Pass with options fails to load
...following error when loading it with opt: opt: CommandLine Error: Option 'debug-pass' registered more than once! I narrowed it down to the Core lib but without it I get this opt: /home/qwert/projects/ext/repos/llvm/6.0.0/lib/Support/CommandLine.cpp:281: void (anonymous namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory *): Assertion `count_if(RegisteredOptionCategories, [cat](const OptionCategory *Category) { return cat->getName() == Category->getName(); }) == 0 && "Duplicate option categories"' failed. LLVMSymbolizer: error reading file...
2018 Jul 12
2
custom LLVM Pass with options fails to load
...or: Option 'debug-pass' registered more than once! >> >> I narrowed it down to the Core lib but without it I get this >> >> opt: >> /home/qwert/projects/ext/repos/llvm/6.0.0/lib/Support/CommandLine.cpp:281: >> >> void (anonymous >> namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory >> *): >> Assertion `count_if(RegisteredOptionCategories, [cat](const >> OptionCategory *Category) { return cat->getName() == >> Category->getName(); }) == 0 && "Duplicate option categories"' failed. >...
2014 Jan 28
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
Hi Stepan, Sorry for the delay. It's great that you are working on MergeFunctions as well and I agree, we should definitely try to combine our efforts to improve MergeFunctions. Just to give you some context, the pass (with the similar function merging patch) is already being used in a production setting. From my point of view, it would be better if we focus on improving its capability
2014 Jan 30
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
...0 0.02 107823 0 0.01 107823 code.ll 1 10232 0 0.01 10202 0 0.01 10202 CoderMixer2.ll 14 83683 4 0.01 81571 4 0.02 81571 CoderMixer2MT.ll 50 274089 5 0.02 266795 * * * cofactor.ll 9 103705 0 0.02 103675 0 0.02 103675 color.ll 1 2069 0 0.01 2040 0 0.01 2040 cols.ll 13 64095 0 0.02 64065 0 0.02 64065 CommandLineParser.ll 11 112348 0 0.02 112321 0 0.02 112321 command.ll 5 18344 0 0.01 18327 0 0.01 18327 comment.ll 14 39393 1 0.01 37610 0 0.01 38745 common.ll 10 113372 0 0.02 113343 0 0.02 113343 communication_info.ll 3 187732 0 0.02 187703 0 0.02 187703 communication.ll 15 164724 0 0.02 164695 0 0.02 164695 compa...