Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Segmentation fault when traverse call graph"
2013 Dec 03
0
[LLVMdev] Segmentation fault when traverse call graph
I recall having a similar problem while coding my own special-purpose
"opt". My guess: try adding the following lines before your pass is
inserted into the PassManager:
PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeIPA(Registry);
You might require other library initializations. Have a look at the
"opt" source code.
On 02/12/13 10:36,
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Dear lazydev,
I'm writing an instrumentation pass that depends on AliasAnalysis. My
getAnalysisUsage() looks as follows:
2453 void ThreadSanitizer::getAnalysisUsage(AnalysisUsage &AU) const {
2454 AU.addRequired<TargetData>();
2455 AU.addRequired<AliasAnalysis>();
2456 }
and the pass initialization:
2668 char ThreadSanitizer::ID = 0;
2669
2011 Apr 04
3
[LLVMdev] Problem building the LLVM sample project
Hi all,
I'm starting a new project and I'm having some trouble with the LLVM
configure+Makefile system.
When I type "./configure" in the sample project, it seems to work.
However, after going down to the autoconf dir and typing
"./AutoRegen.sh", when I go back to the project main dir and type
"./configure" again, I get the following error:
configure:
2012 Jan 23
2
[LLVMdev] Possible bug in the dragonegg
Hi all,
I came across something that seems to be a bug in the dragonegg option
that emits LLVM IR. ¿Can anybody reproduce the error, or see what's
wrong? ¿Should I post it somewhere else in case it's really a bug?
Thanks ahead!
With this simple program:
*
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv){
char a[8] = "aaaaaaa";
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Hi Alexander,
I had the same error:
sincos: /home/marcusmae/rpmbuild/BUILD/llvm/lib/VMCore/PassManager.cpp:635:
void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI
&& "Expected required passes to be initialized"' failed.
The solution was to add:
PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeCore(Registry);
2011 May 30
1
[LLVMdev] about writing a functionpass requiring a modulepass
---------- Forwarded message ----------
From: Qingan Li <ww345ww at gmail.com>
Date: 2011/5/30
Subject:
To: llvmdev at cs.uiuc.edu
Hi,
I wrote an analysis pass, myPass, inherited from both ModulePass and
ProfileInfo, and this pass requires the CallGraph, i.e.,
* class myPass : public ModulePass, public ProfileInfo { ...};*
* void myPass::getAnalysisUsage(AnalysisUsage &AU) const
2012 Mar 02
2
[LLVMdev] Interactions between module and loop passes
Hi all,
I have a code with three passes (one loop pass and two module passes)
and my own pass manager. If I schedule the loop pass between the others,
my code segfaults. Is there any explanation why loop passes cannot be
scheduled between two module passes? Perhaps I misunderstood the
behaviour of pass managers.
I paste here my "usage" information:
int main(...){
Module m = ...
2012 Jan 23
0
[LLVMdev] Possible bug in the dragonegg
Hi Pablo,
> I came across something that seems to be a bug in the dragonegg option that
> emits LLVM IR. ¿Can anybody reproduce the error, or see what's wrong?
I can't reproduce this on x86-64 linux with latest LLVM+dragonegg+gcc-4.6.
¿Should I
> post it somewhere else in case it's really a bug? Thanks ahead!
>
> With this simple program:
> *
> #include
2013 Nov 18
2
[LLVMdev] CodeExtractor status?
I am working on a pass to extract small regions of code to run somewhere else (different node in a cluster). Basically what I need is the ability to isolate a region of code, get its inputs and outputs, create a new function with the extracted code and code aggregating the in and out parameters as structs that can be cast for a “void*”-based interface.
It looks like the CodeExtractor
2011 May 04
2
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
Thanks for the response. I do have assertions enabled, and none of
them are getting hit. I did do a search of the mailing list for the
past year (approximately) before writing my email, and what I found
was that you should be allowed to use LoopInfo and other analysis
function passes from a module pass, with the only difference being
that getAnalysis is passed the function. The example code I
2012 Jan 23
2
[LLVMdev] Possible bug in the dragonegg
Hi Duncan,
>> #include<stdio.h>
>> #include<string.h>
>>
>> int main(int argc, char** argv){
>>
>> char a[8] = "aaaaaaa";
>> char b[8] = "bbbbbbb";
>>
>> char *c = (char*) malloc(sizeof(char)*(strlen(a)+strlen(b)+1));
>> memcpy(c, a, strlen(a));
>> memcpy(c + strlen(a), b, strlen(b) + 1);
>>
2011 May 16
2
[LLVMdev] Exception handling with the LLVM makefile system
Hi all,
I'm having trouble when trying to reuse some functions that use
Boost::Exception into my LLVM-based application. As far as I know, LLVM
turns off Exception handling (apparently for performance reasons), so I
get the following link-time error in a few places:
"undefined reference to `boost::throw_exception(std::exception const&)"
When I compile the external code from
2011 May 30
1
[LLVMdev] opt refuses to load a pass
Hi,
I'm having problems while using a custom pass with opt. The pass
compiles and links just fine but, when I try to use it with opt:
opt -load LLVMmyPass.so -my-flag -f aes.bc -o aes_bb.bc
opt refuses to load it with the following error:
Error opening 'LLVMmyPass.so': LLVMmyPass.so: undefined symbol:
_ZN4llvm9DebugFlagE
-load request ignored.
and then complains that the flag
2012 Mar 02
0
[LLVMdev] Interactions between module and loop passes
Hi Pablo,
> I have a code with three passes (one loop pass and two module passes)
> and my own pass manager. If I schedule the loop pass between the others,
> my code segfaults.
when developing with LLVM you should configure with --enable-assertions.
That way you should get an assert failure with a helpful message rather
than a crash.
Is there any explanation why loop passes cannot
2013 Nov 21
0
[LLVMdev] CodeExtractor status?
On 18/11/13 21:43, Brandon Holt wrote:
> I am working on a pass to extract small regions of code to run
> somewhere else (different node in a cluster). Basically what I need is
> the ability to isolate a region of code, get its inputs and outputs,
> create a new function with the extracted code and code aggregating the
> in and out parameters as structs that can be cast for a
2011 May 04
0
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
Hi Michael, hi Duncan,
yesterday I stumbled over something that might be related.
At least I could also just be doing some initialization wrong or
something in this direction...
In my case, I hit a segfault in PassInfo::isAnalysisGroup() after
PassManager.add(myModulePass) is called.
My setup seems fairly simple, the attached code should reproduce the error.
Compile with
g++ test.cpp
2011 May 16
0
[LLVMdev] Exception handling with the LLVM makefile system
On 16.05.2011, at 08:44, Pablo Barrio wrote:
> Hi all,
>
> I'm having trouble when trying to reuse some functions that use
> Boost::Exception into my LLVM-based application. As far as I know, LLVM
> turns off Exception handling (apparently for performance reasons), so I
> get the following link-time error in a few places:
>
> "undefined reference to
2011 May 04
1
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
Your constructor is not calling initializeTestMPPass(), and you're
using RegisterPass which I think was deprecated in favor of
INITIALIZE_PASS. You can look at, for example,
lib/Transforms/Scalar/IndVarSimplify.cpp for examples of how to
initialize, e.g. having "INITIALIZE_PASS_DEPENDENCY(LoopInfo)"
sandwiched between BEGIN and END. Note that you'll want a forward
declaration of
2011 Dec 12
2
[LLVMdev] Turning on/off instruction extensions
Hi Hal,
On 02/12/11 21:06, Hal Finkel wrote:
> On Fri, 2011-12-02 at 19:08 +0100, Pablo Barrio wrote:
>> I applied the patch to the trunk version successfully, although I get an error in between:
>>
>> 1 out of 1 hunk FAILED -- saving rejects to file lib/Transforms/IPO/CMakeLists.txt.rej
>>
>> Can I ignore the error? The patch exits normally except for that error.
2012 Jan 24
0
[LLVMdev] Possible bug in the dragonegg
Hi Pablo, I can reproduce this with the supplied IR. It is related to the use
of __memcpy_chk. As far as I can see it is a bug in lli or the LLVM code
generators. Can you please open a bugreport, attaching the LLVM IR.
Ciao, Duncan.
On 23/01/12 17:00, Pablo Barrio wrote:
> Hi Duncan,
>>> #include<stdio.h>
>>> #include<string.h>
>>>
>>> int