Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Writing a pass for the opt tool: likely documentation bug"
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
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,
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:
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
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
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
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
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
--------------
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
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:
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 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:
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
2007 Sep 14
2
[LLVMdev] RegisterAnalysisGroup
On Friday 14 September 2007 15:51, Chris Lattner wrote:
> When basicaa registers itself as part of the analysis group, it uses:
>
> RegisterPass<BasicAliasAnalysis>
> X("basicaa", "Basic Alias Analysis (default AA impl)");
>
> // Declare that we implement the AliasAnalysis interface
> RegisterAnalysisGroup<AliasAnalysis, true> Y(X);
2007 Sep 14
0
[LLVMdev] RegisterAnalysisGroup
On Friday 14 September 2007 16:04, David Greene wrote:
> On Friday 14 September 2007 15:51, Chris Lattner wrote:
> > When basicaa registers itself as part of the analysis group, it uses:
> >
> > RegisterPass<BasicAliasAnalysis>
> > X("basicaa", "Basic Alias Analysis (default AA impl)");
> >
> > // Declare that we implement
2008 Mar 31
0
[LLVMdev] Pass registered multiple times!
It turned out to be the problem of this line in Makefile
LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
The error is gone when I remove the above line.
However, the pass output only contains one line of the main function.
First: main
It does not have puts and __main as shown in this page:
http://llvm.org/docs/WritingAnLLVMPass.html#running
So I guess the drived FunctionPass only works on
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
2010 Mar 01
1
[LLVMdev] RegisterPass isAnalysis parameter
On Feb 26, 2010, at 7:42 PM, Tom Prince wrote:
> You cannot refer to anything in anonymous namespace by name from
> another file, however, if you have a pointer, say, then you can
> still use the
> pointer.
Yes, that would make sense, except I don't see any pointers being
passed. The relevant line in lib/Transforms/Hello.cpp is:
static RegisterPass<Hello>
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
2011 Jun 15
3
[LLVMdev] Cannot use function pass in a module pass
Hi. I'm trying to implement a module pass which can be dynamically
loaded by `opt` (against up-to-date llvm from svn).
Despite what the tutorial
(http://llvm.org/docs/WritingAnLLVMPass.html) states in my module pass
I cannot perform getAnalysis and fetch the function pass result.
When trying to do so `opt` fails with the following mesage:
[***@*** ***]$ opt -load