Displaying 7 results from an estimated 7 matches for "count_if".
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) lld
λ lldb-server
: CommandLi...
2014 Aug 09
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
...he 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 does not even define any command line option....
2014 Aug 10
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
...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.
> >
>...
2018 Jul 10
2
custom LLVM Pass with options fails to load
...9;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 0x0000000001d8eea4 (opt+0x1d8eea4)
#1...
2018 Jul 12
2
custom LLVM Pass with options fails to load
...n 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 0x0000...
2017 May 02
2
When to use auto instead of iterator/const_iterator?
Hi All,
While reading LLVM source code, sometimes I am wondering when should we
use auto instead of iterator/const_iterator.
I want to use the patch [1] I sent before as an example. Could someone give
me advice/guideline here? Also, I have another
question. Sometimes the for-loop uses const_iterator, say
for (SUnit::const_succ_iterator I = SU->Succs.begin(), E =
SU->Succs.end();
2018 Apr 10
1
64 bit mask in x86vshuffle instruction
...ble,
const X86Subtarget &Subtarget,
SelectionDAG &DAG) {
// If we have a single input to the zero element, insert that into V1 if
we
// can do so cheaply.
int NumElts = Mask.size();
int NumV2Elements = count_if(Mask, [NumElts](int M) { return M >=
NumElts; });
if (NumV2Elements == 1 && Mask[0] >= NumElts)
if (SDValue Insertion = lowerVectorShuffleAsElementInsertion(
DL, VT, V1, V2, Mask, Zeroable, Subtarget, DAG))
return Insertion;
// Check for being able to broad...