Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Error in registration of Pass"
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
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:
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
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
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
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
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
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 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:
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
Hi,
We use LLVM libraries to compile C++ code and noticed slow downs when
multiple threads of a process were compiling at once. *perf *indicated that
most of the CPU time was spent in a spin lock, which was being
locked/unlocked from llvm::PassRegistry::getPassInfo().
We read the relevant LLVM code and found out that PassRegistry is a
ManagedStatic and is shared among all threads in case of a
2009 Feb 05
1
[LLVMdev] Installations problems CLANG
Hi,
I was having a little trouble installing clang.... while llvm installs
properly but clang gives this error on invoking make in Clang
make[2]: Leaving directory
`/home/na2271/Desktop/llvm-2.3-x/tools/clang/lib/Headers'
make[2]: Entering directory
`/home/na2271/Desktop/llvm-2.3-x/tools/clang/lib/Basic'
llvm[2]: Compiling SourceManager.cpp for Release build
SourceManager.cpp: In member
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 Jan 12
1
[LLVMdev] About adding a pass into llvm
I have seen
INITIALIZE_PASS(LiveVariables, "livevars", "Live Variable Analysis", false,
false);
in the llvm/lib/codegen/LiveVariables.cpp, where LiveVariables is a subclass
of MachineFunctionPass, and
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis) \
static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis)
in PassSupport.h
Is this code used
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.
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>
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);
2008 Nov 02
2
[LLVMdev] No of Datastructures
Hey Devang,
Thanks for the assist, I'm trying to extract a signature which uniquely
identifies a block of code.... this is required for a project I am doing.
The no of data structures is one of the identifying features of this
signature.
Thanks
Nipun
On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> wrote:
> Hi Nipun,
> On Oct 30, 2008, at 9:31 PM, Nipun