Displaying 8 results from an estimated 8 matches for "createfoopass".
2011 May 03
4
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...std::ostream&, const Module*) const { }
char Foo::ID = 0;
INITIALIZE_PASS_BEGIN(Foo, "foo", "foo bar", true, true)
INITIALIZE_PASS_DEPENDENCY(LoopInfo)
INITIALIZE_PASS_DEPENDENCY(DominatorTree)
INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
Foo *createFooPass() {
return new Foo();
}
void runFooPass(Module &M)
{
PassManager PM;
PM.add(createFooPass());
PM.run(M);
}
Program received signal SIGSEGV, Segmentation fault.
#0 0x0832312f in llvm::PMTopLevelManager::findAnalysisUsage
(this=0x86f798c, P=0x892bfc0) at
<...>/llvm-2.9/...
2013 Oct 01
2
[LLVMdev] How to supply a non-default constructor to RegisterPass ?
Folks,
I did read the documentation but I am at a loss still.
I do have the following:
Pass *createFooPass (char *foo1) {
return new FooPass (foo1);
}
static RegisterPass<FooPass> X("foo-pass", "foo", false, true);
Where exactly do I supply the non-default crore in this example ?
Thanks
/Dirk
2011 May 04
0
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...t { }
>
> char Foo::ID = 0;
> INITIALIZE_PASS_BEGIN(Foo, "foo", "foo bar", true, true)
> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
> INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
>
> Foo *createFooPass() {
> return new Foo();
> }
>
> void runFooPass(Module&M)
> {
> PassManager PM;
> PM.add(createFooPass());
> PM.run(M);
> }
>
>
> Program received signal SIGSEGV, Segmentation fault.
>
> #0 0x0832312f in llvm::PMTopLevelManager::fin...
2011 May 04
2
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...::ID = 0;
>> INITIALIZE_PASS_BEGIN(Foo, "foo", "foo bar", true, true)
>> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
>> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
>> INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
>>
>> Foo *createFooPass() {
>> return new Foo();
>> }
>>
>> void runFooPass(Module&M)
>> {
>> PassManager PM;
>> PM.add(createFooPass());
>> PM.run(M);
>> }
>>
>>
>> Program received signal SIGSEGV, Segmentation fault.
>>...
2013 Oct 05
0
[LLVMdev] How to supply a non-default constructor to RegisterPass ?
On Sep 30, 2013, at 10:11 PM, Dirk Schroetter <dschroetter at googlemail.com> wrote:
> Folks,
>
> I did read the documentation but I am at a loss still.
>
> I do have the following:
>
> Pass *createFooPass (char *foo1) {
> return new FooPass (foo1);
> }
>
> static RegisterPass<FooPass> X("foo-pass", "foo", false, true);
>
> Where exactly do I supply the non-default crore in this example ?
Sorry for the non-answer, but AFAIK the pass registry can’t under...
2011 May 04
0
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...NITIALIZE_PASS_BEGIN(Foo, "foo", "foo bar", true, true)
>>> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
>>> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
>>> INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
>>>
>>> Foo *createFooPass() {
>>> return new Foo();
>>> }
>>>
>>> void runFooPass(Module&M)
>>> {
>>> PassManager PM;
>>> PM.add(createFooPass());
>>> PM.run(M);
>>> }
>>>
>>>
>>> Program r...
2011 May 04
1
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...(Foo, "foo", "foo bar", true, true)
>>>> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
>>>> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
>>>> INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
>>>>
>>>> Foo *createFooPass() {
>>>> return new Foo();
>>>> }
>>>>
>>>> void runFooPass(Module&M)
>>>> {
>>>> PassManager PM;
>>>> PM.add(createFooPass());
>>>> PM.run(M);
>>>> }
>>>>...
2011 May 17
0
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
...t { }
>
> char Foo::ID = 0;
> INITIALIZE_PASS_BEGIN(Foo, "foo", "foo bar", true, true)
> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
> INITIALIZE_PASS_END(Foo, "foo", "foo bar", true, true)
>
> Foo *createFooPass() {
> return new Foo();
> }
>
> void runFooPass(Module &M)
> {
> PassManager PM;
> PM.add(createFooPass());
> PM.run(M);
> }
>
>
> Program received signal SIGSEGV, Segmentation fault.
>
> #0 0x0832312f in llvm::PMTopLevelManager::findAnalys...