Displaying 20 results from an estimated 21 matches for "passregistrar".
2011 Dec 06
1
[LLVMdev] Critical sections cleanup
...r the DLL is unloaded. Something to keep in mind, our codebase is still using LLVM 2.7 but from what I was able to tell I think my findings also apply to the trunk.
The first issue had to do with an active critical section in a heap that's being deleted. The problem was caused by a leak of the PassRegistrar object in Pass.cpp. I added a cleanup function to delete the PassRegistrar object before shutting LLVM down. The cleanup function also sets the PassRegistrar object to NULL so it can be reinitialized again. I see that in the trunk things work a bit different, the PassRegistrar object is wrapped in...
2008 Oct 30
2
[LLVMdev] Error in registration of Pass
Hi ,
I get the following error when I try and load a certain pass I have made.
Can anyone help me out? What could be the problem? And how can I remove it?
opt: Pass.cpp:147:
void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
`Inserted && "Pass registered multiple times!"' failed.
Aborted (core dumped)
Thanks
Nipun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2009 Jun 19
2
[LLVMdev] Problems creating a pass
Hello,
Following the tutorial for writing a pass, I found the next problem.
*****************************
:~/llvm/test$ opt -load ../llvm/Debug/lib/mypass.so -mypass < hello.bc >
/dev/null
opt: Pass.cpp:151: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"'
failed.
Aborted
*****************************
I just <copy> and then <paste> the code that appears in the web page, and
follow the instructions to run the pass. The...
2007 Jul 25
2
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
...The first
error is that the section starting 'As a while, the cpp file looks
like:' omits the declaration for char Hello::ID = 0 that is given
separately above. If you add this, opt still fails with the message:
opt: /usr/local/rse/llvm/src/lib/VMCore/Pass.cpp:158: void <unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed.
which appears to be triggered by the RegisterPass<Hello> X... line in the source (the error disappears if you comment that line out, though for obvious reasons the pass...
2009 Dec 15
2
[LLVMdev] Running a pass
...cument "Writing an LLVM Pass". When I ran "opt -load
../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I got the next
error:
***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
hello.bc > /dev/null
opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"'
failed.
Aborted
To compile MyPass I used "make" command instead of "gmake", could it be the
problem? Or maybe I just type (copy) something wrong? Could some...
2008 Oct 14
1
[LLVMdev] Help needed with Hello World Pass
I have just started using llvn and I am running in the following error when
trying to run Hello World Pass in the llvm documentation.
opt: /usr/local/llvm/src/lib/VMCore/Pass.cpp:158: void
<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted
&& "Pass
registered multiple times!"' failed.
The problem gets resolved if the Hello.so library is not created, but then
the pass doesnt get registered and its losing out the whole point. I came
across a solution posted...
2009 Jun 19
0
[LLVMdev] Problems creating a pass
...at gmail.com> wrote:
> Hello,
>
> Following the tutorial for writing a pass, I found the next problem.
>
> *****************************
> :~/llvm/test$ opt -load ../llvm/Debug/lib/mypass.so -mypass < hello.bc >
> /dev/null
> opt: Pass.cpp:151: void<unnamed>::PassRegistrar::RegisterPass(const
> llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"'
> failed.
> Aborted
> *****************************
>
> I just <copy> and then <paste> the code that appears in the web page, and
> follow the...
2008 Mar 31
2
[LLVMdev] Pass registered multiple times!
...I'm writing my first hello world Pass with the class name First, but
when I tried to load it using opt, I got the following error:
/var/soft/llvm-2.2-build/lib/Transforms/Hello$ opt
-load ../../../Debug/lib/First.so --help
opt: /var/soft/llvm-2.2/lib/VMCore/Pass.cpp:157:
void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
`Inserted && "Pass registered multiple times!"' failed.
Aborted
The code is as follows.
#include "llvm/Pass.h"
#include "llvm/Function.h"
using namespace llvm;
namespace {
struct First : public FunctionPa...
2008 Sep 22
2
[LLVMdev] Problems with written function pass
.../bin/opt --load /work0/llvm-2.2/Debug/lib/
MParSchedule.so --load /work0/llvm-2.2/Debug/lib/LLVMblockNrs.so --
load /work0/llvm-2.2/Debug/lib/Genome.so --load /work0/llvm-2.2/Debug/
lib/GA_VHDL_Pass.so -GA_VHDL_Pass -mem2reg -verify -f -o opt.o a.out.bc
opt: Pass.cpp:157: void<unnamed>::PassRegistrar::RegisterPass
(llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple
times!"' failed.
make: *** [opt.o] Aborted
I do not find the problem causing this, so perhaps some of you know
the problem and a good solution.
Here is the written Code of GA_VHDL_Pass...
2007 Jul 25
0
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
...the section starting 'As a while, the cpp file looks
> like:' omits the declaration for char Hello::ID = 0 that is given
> separately above. If you add this, opt still fails with the message:
>
> opt: /usr/local/rse/llvm/src/lib/VMCore/Pass.cpp:158: void
> <unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
> `Inserted && "Pass registered multiple times!"' failed.
>
> which appears to be triggered by the RegisterPass<Hello> X... line
> in the source (the error disappears if you comment that line out,
> thoug...
2009 Dec 15
0
[LLVMdev] Running a pass
...s". When I ran "opt
> -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I
> got the next error:
>
> ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
> hello.bc > /dev/null
> opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const
> llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple
> times!"' failed.
> Aborted
I don't see any obvious problems with your source code.
Are you compiling this file as part of your own project, or did you add
it to your...
2010 Jun 02
3
[LLVMdev] can't run the Hello Pass: either not registered or registered multiple times, what is the problem?
...ng to run the same code under Debian4-i386, I
got a totally opposite error: "Passes registered multiple times"
opt -load Release/lib/Hello.so -hello < test.bc > /dev/null
opt:
/autofs/steffan/a/a0/czhao/ResearchTools/LLVM/2.7/llvm-2.7/lib/VMCore/Pass.cpp:234:
void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&):
Assertion `Inserted && "Pass registered multiple times!"' failed.
0 opt 0x085e6809
Stack dump:
0. Program arguments: opt -load Release/lib/Hello.so -hello
/bin/sh: line 1: 28292 Aborted opt -load
Release/lib/Hello...
2009 Jul 19
0
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
Hey Chuck,
I'm afraid I can't reproduce your error but...a problem you may run
into later is that opt will complain with
opt: llvm/lib/VMCore/Pass.cpp:149:
void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&):
Assertion `Inserted && "Pass registered multiple times!"' failed.
Aborted
I "fixed" this by replacing the LLVMLIBS line in the Makefile with
LINK_COMPONENTS according to this tutorial http://llvm.org/docs/MakefileGuide.html#...
2009 Jul 17
2
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
While learning to write LLVM passes and following the precise
instructions under http://llvm.org/docs/WritingAnLLVMPass.html,
<http://llvm.org/docs/WritingAnLLVMPass.html>
I got this error when loading the hello pass to run the test program:
opt -load ./Release/lib/Hello.so -hello < test/test.bc > /dev/null
Error opening './Release/lib/Hello.so': ./Release/lib/Hello.so:
2010 Mar 08
2
[LLVMdev] Machine Function pass
...ss16getAnalysisUsageERNS_13AnalysisUsageE
-load request ignored.
-----------------------
I tried replacing USEDLIBS with:
-----------------------
USEDLIBS = LLVMCodeGen.a LLVMTarget.a
-----------------------
And now I am getting:
-----------------------
opt: Pass.cpp:234: void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed.
....
-----------------------
Is it even possible to have a MachineFunctionPass externally, or not?
The documentation implies that is should be possible. I have failed i...
2010 Jun 02
1
[LLVMdev] can't run the Hello Pass: registered multiple times
...th is dead, at least for now.
How about the problem of registering the pass multiple times under Linux
(Debian4-i386)?
opt -load Release/lib/Hello.so -hello < test.bc > /dev/null
opt:
/autofs/steffan/a/a0/czhao/ResearchTools/LLVM/2.7/llvm-2.7/lib/VMCore/Pass.cpp:234:
void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&):
Assertion `Inserted && "Pass registered multiple times!"' failed.
0 opt 0x085e6809
Stack dump:
0. Program arguments: opt -load Release/lib/Hello.so -hello
/bin/sh: line 1: 28292 Aborted opt -load
Release/lib/Hello...
2010 Mar 18
0
[LLVMdev] How to link LLVMCore.a into a custom pass that is fed to opt
...dings to my library. From what I've read, there is a known issue with
linking LLVMCore into a module that is fed to opt. Namely, you get the
following assertion:
[posera ~]$ opt -load "downloads/llvm2.6/Debug/lib/Sample2.so" --sample2
test.bc
opt: Pass.cpp:152: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"'
failed.
Aborted
Typically people ran into this problem by following the Pass authoring
tutorial which prescribed adding LLVMCore to your Makefile. The workaround
that everyone...
2007 Jul 25
1
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
...9;As a while, the cpp file looks
> > like:' omits the declaration for char Hello::ID = 0 that is given
> > separately above. If you add this, opt still fails with the message:
> >
> > opt: /usr/local/rse/llvm/src/lib/VMCore/Pass.cpp:158: void
> > <unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
> > `Inserted && "Pass registered multiple times!"' failed.
> >
> > which appears to be triggered by the RegisterPass<Hello> X... line
> > in the source (the error disappears if you comment that li...
2008 Mar 31
0
[LLVMdev] Pass registered multiple times!
...lo world Pass with the class name First, but
> when I tried to load it using opt, I got the following error:
>
> /var/soft/llvm-2.2-build/lib/Transforms/Hello$ opt
> -load ../../../Debug/lib/First.so --help
> opt: /var/soft/llvm-2.2/lib/VMCore/Pass.cpp:157:
> void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
> `Inserted && "Pass registered multiple times!"' failed.
> Aborted
>
> The code is as follows.
>
> #include "llvm/Pass.h"
> #include "llvm/Function.h"
>
> using namespace llvm;
&g...
2010 Jun 02
0
[LLVMdev] can't run the Hello Pass: either not registered or registered multiple times, what is the problem?
Hello
> opt -load Release/lib/Hello.dll -hello < ./hello.bc > /dev/null
> opt.exe: Unknown command line argument '-hello'. Try:
>
> Could somebody give me a hint?
Loadable modules (e.g. passes) are not supported on windows. And will
probably never be.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University