Displaying 9 results from an estimated 9 matches for "optioncategory".
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"' failed.
[1] 25383 abort (core dumped) ll...
2014 Aug 09
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
...] that triggers the
problem.
Pass body is in [2].
The CMakeLists.txt file for the "root" directory is in [3]
The CMakeLists.txt file for the "pass" directory is in [4]
When I run opt --load=libTest.so
I trigger the following assertion:
opt: CommandLine.cpp:134: void
llvm::cl::OptionCategory::registerCategory(): Assertion
`std::count_if(RegisteredOptionCategories->begin(),
RegisteredOptionCategories->end(), [this](const OptionCategory *Category) {
return getName() == Category->getName(); }) == 0 && "Duplicate option
categories"' failed.
Note that my pass...
2018 Jul 10
2
custom LLVM Pass with options fails to load
...t: 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: No such file or directory
#0 0x0000000001...
2014 Aug 10
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
..."root" directory is in [3]
> > The CMakeLists.txt file for the "pass" directory is in [4]
> >
> > When I run opt --load=libTest.so
> > I trigger the following assertion:
> >
> > opt: CommandLine.cpp:134: void
> > llvm::cl::OptionCategory::registerCategory(): Assertion
> > `std::count_if(RegisteredOptionCategories->begin(),
> > RegisteredOptionCategories->end(), [this](const OptionCategory
> *Category)
> > { return getName() == Category->getName(); }) == 0 && "Duplicate
> option...
2018 Jul 12
2
custom LLVM Pass with options fails to load
...e 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: No...
2013 Feb 06
1
[LLVMdev] Modifying the support CommandLine Library to support option categories and iteration over registered options
...g ideas (1) and (2) but I don't want to
spend time implementing it if the idea won't be accepted and merged
into LLVM so I wanted to discuss the idea first a little first before
diving in.
To implement idea (2) we could have something like this in LLVM
command Line library
class llvm::cl::OptionCategory
{
protected OptionCategory() { //code to register category with a
global store, all heavy lifting work is done here! }
virtual const char* getName()=0; //shown as option category header
name in --help
virtual const char* getHelpDescription()=0; //shown below the option
category header name in...
2013 Jul 23
2
[LLVMdev] Analysis of polly-detect overhead in oggenc
...49 deletions(-)
>
> diff --git a/include/polly/Options.h b/include/polly/Options.h
> index 62e0960..733edd0 100644
> --- a/include/polly/Options.h
> +++ b/include/polly/Options.h
> @@ -17,4 +17,7 @@
> #include "llvm/Support/CommandLine.h"
>
> extern llvm::cl::OptionCategory PollyCategory;
> +namespace polly {
> + extern bool PollyViewMode;
> +}
> #endif
> diff --git a/include/polly/ScopDetection.h b/include/polly/ScopDetection.h
> index 6ee48ee..5a5d7d1 100755
> --- a/include/polly/ScopDetection.h
> +++ b/include/polly/ScopDetection.h
> @@...
2013 Jul 23
0
[LLVMdev] Analysis of polly-detect overhead in oggenc
Hi Tobias,
I have attached a patch file to optimize string operations in Polly-Detect pass.
In this patch file, I put most of long string operations in the condition variable of "PollyViewMode" or in the DEBUG mode.
Bests,
Star Tan
At 2013-07-22 22:27:48,"Tobias Grosser" <tobias at grosser.es> wrote:
>On 07/22/2013 01:46 AM, Star Tan wrote:
>> At
2013 Jul 22
2
[LLVMdev] Analysis of polly-detect overhead in oggenc
On 07/22/2013 01:46 AM, Star Tan wrote:
> At 2013-07-22 12:16:53,"Tobias Grosser" <tobias at grosser.es> wrote:
>> I propose two more patches:
>>
>> 1) Transform the INVALID macro into function calls, that format
>> the text and that set LastFailure.
> Translating the INVALID macro into function calls would complicate the operations for