Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Help needed with Hello World Pass"
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
--------------
2010 Jun 02
3
[LLVMdev] can't run the Hello Pass: either not registered or registered multiple times, what is the problem?
I am trying to run the HELLO LLVM Pass under WinXP/MinGW, by following
the precise steps available at
http://www.llvm.org/docs/WritingAnLLVMPass.html.
The pass failed to run, giving me the following error:
opt -load Release/lib/Hello.dll -hello < ./hello.bc > /dev/null
opt.exe: Unknown command line argument '-hello'. Try:
'C:\MSYS\opt\llvm-2.7\bin\opt.exe -help'
make:
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
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
2007 Jul 25
2
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
Hi,
I'm currently attempting to implement a pass that will hopefully run
under the opt tool. Currently, I'm having some difficulties -- the
sample code for the Hello pass (see
http://llvm.org/docs/WritingAnLLVMPass.html) doesn't work. 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
2009 Dec 15
2
[LLVMdev] Running a pass
Hello LLVM,
I am following the document "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
2009 Jun 19
0
[LLVMdev] Problems creating a pass
Did you try changing the name from Hello to MyHello or something like
that? I seem to remember having a similar problem. My tutorial code
names the struct MyHello and then registers it as follows:
RegisterPass<MyHello> X("myhello", "My Hello World Pass");
You will likely need to change the Makefile as well.
Scott
On Fri, Jun 19, 2009 at 11:15 AM, Juan Carlos Martinez
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:
2008 Sep 22
2
[LLVMdev] Problems with written function pass
Hello,
my name is Marc. I wrote a llvm function pass by using the "hello
world" tutorial. But this selfwritten pass (GA_VHDL_Pass) dependes
on another function pass (GenomePass). GenomePass also dependes on
two other function passes. The Pass GenomePass generates an object,
which is used in my GA-VHDL_Pass.
When I compile my Make file I always get this error message:
2008 Mar 31
2
[LLVMdev] Pass registered multiple times!
Hi,
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
2007 Jul 25
0
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
Sarah,
We have Hello pass in svn at
lib/Transforms/Hello
This is a working example. I will update documentation to include
"char Hello::ID = 0".
On Jul 25, 2007, at 1:51 PM, Sarah Thompson wrote:
> Hi,
>
> I'm currently attempting to implement a pass that will hopefully run
> under the opt tool. Currently, I'm having some difficulties -- the
> sample code
2009 Dec 15
0
[LLVMdev] Running a pass
Juan Carlos Martinez Santos wrote:
> Hello LLVM,
>
> I am following the document "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:
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
2010 Jun 02
1
[LLVMdev] can't run the Hello Pass: registered multiple times
Anton and John,
Thank you for the valuable info.
I guess the MinGW/Cygwin path 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:
2009 Jul 19
2
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
Thanks, Shu,
I guess I haven't updated since my post went out.
There are actually 2 problems:
1. mis-compilation:
My LLVM-2.5 turned out to be mis-compiled using gcc-4.4.0 (surprise to
me) on Debian4-32b.
I tried a few different compilers, and gcc-4.0.4 (a relatively old one,
again surprised me) seems to work out fine.
Question: is there a good/quick/reliable way to figure out whether a
2011 Dec 06
1
[LLVMdev] Critical sections cleanup
Hello,
I have an application that uses Clang and LLVM wrapped in a DLL. Last week I was debugging reported issues with Microsoft Application Verifier<http://www.microsoft.com/download/en/details.aspx?id=20028> that were related to how critical sections are handled. The issues are caused by critical sections that are either still active when heap blocks are deleted or the DLL is unloaded.
2006 Jun 26
9
table name
hello freinds...
I m very new to ruby on rails and i m facing a problem...
whenever i add Scaffold table and try running in that broser it shos
error that the particular tbale doesnot exist....
also it changes the name of the table , for eg.table names Recipe gets
changed to Recipes and in order to get ountput i need to change the name
of the table TO Recipies........is there any reason to
2006 Jun 27
3
problem
Dear friends,
i while working on ruby on rails ... i have created form and it shows
, SHOW, DELETES EDIt but when i click on that it is howing error
"Couldn''t find TblAdgroup without an ID"..
pls help me out
shweta
--
Posted via http://www.ruby-forum.com/.
2007 Jul 25
1
[LLVMdev] Writing a pass for the opt tool: likely documentation bug
It can also happen if you link *anything* from LLVM into the Hello.so.
Don't do that :)
Reid.
On Wed, 2007-07-25 at 14:02 -0700, Devang Patel wrote:
> Sarah,
>
> We have Hello pass in svn at
>
> lib/Transforms/Hello
>
> This is a working example. I will update documentation to include
> "char Hello::ID = 0".
>
> On Jul 25, 2007, at 1:51 PM,
2010 Mar 08
2
[LLVMdev] Machine Function pass
I am trying to write a MachineFunction pass and build it as a loadable module.
I want the pass to run after prolog/epilog emmiter. So far, I have been using
MachineFunctionPass, but by inserting it to lib/Codegen and hacking the
LLVMTargetMachine file, and Pass.h files.
I have created a directory "lib/Transforms/MyPass", and inside I have
the code of the pass (which is just a