Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Compilation error with LLVM 2.9"
2006 Feb 14
1
[LLVMdev] dynamic_cast error
Hello,
Following statement from LLVM Programmer's Manual is not compiling.
CallInst* callInst = dyn_cast<CallInst>(&*basic_block_iterator_1);
The gcc version is :
gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
============
Error message
============
llvm/include/llvm/Support/Casting.h: In function 'bool
llvm::isa_impl(const From&) [with To = llvm::CallInst, From =
2005 Jul 28
2
[LLVMdev] help with pointer-to-array conversion
I now understand that IndVarSimplify.cpp is capable of reproducing array
references when the pointer initialization from the array address is found
inside the immediately enclosing loop, such that in the following code:
int A[20000], B[100], Z;
int main()
{
int i, j, *a, *b;
for ( a = &A[0], i = 0; i != 200; i++ )
for ( b = &B[0], j = 0; j != 100; j++
2009 Jul 04
2
[LLVMdev] Pool Allocation Segfaulting with opt
Hi,
I'm trying to run the pool allocation pass through opt, and I'm running
into problems. It segfaults frequently; for example, it does this when
the input is a simple Hello World program:
[simmon12 at apoc testcases]$ opt -load
/home/vadve/simmon12/llvm/llvm/projects/llvm-poolalloc/Debug/lib/libLLVMDataStructure.so
-load
2009 Sep 01
1
[LLVMdev] Problem building libprofile.
Hi,
when I try to build libprofile with r80670 (both llvm and llvm-gcc) I
get this error:
make[1]: Entering directory `.../llvm-svn-debug-obj/runtime/libprofile'
llvm[1]: Building Debug Bytecode Archive libprofile_rt.bca (internalize)
llvm[1]: Installing Debug Shared Library
/nfs/a5/astifter/astifter/llvm/llvm-svn-debug-obj/../llvm-svn-debug-install/lib/libprofile_rt.so
0 llvm-ld
2009 Jul 06
0
[LLVMdev] Pool Allocation Segfaulting with opt
Patrick Alexander Simmons wrote:
> Hi,
>
> I'm trying to run the pool allocation pass through opt, and I'm running
> into problems. It segfaults frequently; for example, it does this when
> the input is a simple Hello World program:
>
Can you email me the bitcode file that is causing the problem?
> [simmon12 at apoc testcases]$ opt -load
>
2013 Nov 05
0
[LLVMdev] Identifying the instructions that uses a pointer used as a function argument
I think I understood the problem you're trying to solve. I didn't, however,
understand the problems you are having (maybe you're not running mem2reg?).
I do have a little piece of code that I think does (more or less) what you
want.
Take a look at it, try understanding it, and see if it helps you out.
You might have to change it a bit since you're replacing uses after an
2011 Apr 21
0
[LLVMdev] Compilation error with LLVM 2.9
On Apr 21, 2011, at 1:31 PM, Julien Henry wrote:
> Hi all,
>
> I wrote code that compiled with llvm 2.8, but now I'm using llvm
> 2.9 and it doesn't compile anymore:
>
> My code looks like this:
>
> User *U;
> ...
> if (PHINode * phi = dyn_cast<PHINode>(U)) {
> ...
> BasicBlock * Pred = phi->getIncomingBlock(I);
2011 Aug 24
0
[LLVMdev] VMKit Development
Hi Akshat,
> Going ahead, the llvm-ld seems to segfault (build on Linux with llvm-ld v3.0svn
> build):
try updating to latest LLVM from svn - this was fixed a day or two ago.
Ciao, Duncan.
>
> make[2]: Entering directory `/root/code/vmkit/mmtk/mmtk-j3'
> llvm[2]: Building Debug+Asserts Bytecode Module MMTKRuntime.bc
> 0 llvm-ld 0x0884c66e
> 1 llvm-ld 0x0884c3fb
2013 Nov 05
1
[LLVMdev] Identifying the instructions that uses a pointer used as a function argument
Thanks for the reply.
For the source code:
int main()
{
int a = 0;
int *p;
p = &a;
call_arnamoy(p);
int *p1;
p1 = p;
return 1;
}
The bit code:
%retval = alloca i32, align 4
%a = alloca i32, align 4
%p = alloca i32*, align 8
%p1 = alloca i32*, align 8
store i32 0, i32* %retval
store i32 0, i32* %a, align 4
store i32* %a, i32** %p, align 8
%0 = load i32** %p, align 8
%call = call i32
2011 Aug 24
2
[LLVMdev] VMKit Development
Hi,
Going ahead, the llvm-ld seems to segfault (build on Linux with llvm-ld
v3.0svn build):
make[2]: Entering directory `/root/code/vmkit/mmtk/mmtk-j3'
llvm[2]: Building Debug+Asserts Bytecode Module MMTKRuntime.bc
0 llvm-ld 0x0884c66e
1 llvm-ld 0x0884c3fb
2 0xb7891400 __kernel_sigreturn + 0
3 llvm-ld 0x083be9e9 llvm::isa_impl<llvm::Constant,
2013 Mar 02
2
[LLVMdev] Question about method CodeExtractor::severSplitPHINodes
Hi folks,
Hope this is not a silly question. But it bothers me when I am thinking
about it.
My question is:
1. In the implementation of serverSplitPHINodes(), why it only checks the
first PHI node for possible
multiple inputs from outside the region to extract. There could be more
than one PHI nodes in the header
block, and the code only checks the first one. I don't quite get it.
2019 Mar 18
2
How to get the possible predecessors for a PHINode
Hi all,
I have encountered the following instruction:
%.0.i = phi i8* [ %9, %8 ], [ %11, %10 ]
How can I get the %8 and %10?
I'm using http://llvm.org/doxygen/classllvm_1_1PHINode.html as a reference
but I cannot understand how to do that.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Aug 25
0
[LLVMdev] VMKit Development
Hi Akshat,
Could you give us your configuration? CPU/OS? How did you configure and
build llvm and vmkit?
Nicolas
On Thu, Aug 25, 2011 at 4:12 AM, Akshat Gupta <g.akshat at gmail.com> wrote:
> Hi,
> I tried building again with the latest llvm.
> I am getting another seg fault:
>
> make[2]: Entering directory `/root/code/vmkit/mmtk/java'
> Buildfile:
2004 Jun 23
0
[LLVMdev] weird issue with mem2reg
----- Original Message -----
From: "Chris Lattner" <sabre at nondot.org>
To: <llvmdev at cs.uiuc.edu>
Sent: Wednesday, June 23, 2004 4:05 PM
Subject: Re: [LLVMdev] weird issue with mem2reg
> On Wed, 23 Jun 2004, Patrick Meredith wrote:
>
> > MetaSplit is an anlysis I just finished writing. It doesn't alter
anything,
> > all it does is build a set of
2011 Aug 26
0
[LLVMdev] VMKit Development
On Fri, Aug 26, 2011 at 1:08 AM, Akshat Gupta <g.akshat at gmail.com> wrote:
> Hi,
> Here are my build details.
> OS:
> Linux scop 2.6.38-gentoo-r6 #1 SMP Sat Jul 9 13:07:18 EST 2011 i686
> Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz GenuineIntel GNU/Linux
> Machine: VirtualBox (32 bit)
>
> Configure (VMKit):
> ./configure --with-llvmsrc=/root/code/llvm
2011 Aug 25
2
[LLVMdev] VMKit Development
Hi,
I tried building again with the latest llvm.
I am getting another seg fault:
make[2]: Entering directory `/root/code/vmkit/mmtk/java'
Buildfile: /root/code/vmkit/mmtk/java/build.xml
main:
[javac] /root/code/vmkit/mmtk/java/build.xml:4: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
[javac] Compiling 1
2004 Jun 23
0
[LLVMdev] weird issue with mem2reg
MetaSplit is an anlysis I just finished writing. It doesn't alter anything,
all it does is build a set of "program instructions". For some reason even
though if I run it with any other combination of passes I've found, anytime
I run it with mem2reg I get a seg fault in dyn_cast! Here's output:
Starting program:
/mounts/zion/disks/0/localhome/pmeredit/llvm/tools/Debug/opt
2004 Jun 23
2
[LLVMdev] weird issue with mem2reg
On Wed, 23 Jun 2004, Patrick Meredith wrote:
> MetaSplit is an anlysis I just finished writing. It doesn't alter anything,
> all it does is build a set of "program instructions". For some reason even
> though if I run it with any other combination of passes I've found, anytime
> I run it with mem2reg I get a seg fault in dyn_cast! Here's output:
>
>
2011 Aug 25
2
[LLVMdev] VMKit Development
Hi,
Here are my build details.
OS:
Linux scop 2.6.38-gentoo-r6 #1 SMP Sat Jul 9 13:07:18 EST 2011 i686 Intel(R)
Core(TM) i5-2415M CPU @ 2.30GHz GenuineIntel GNU/Linux
Machine: VirtualBox (32 bit)
Configure (VMKit):
./configure --with-llvmsrc=/root/code/llvm --with-llvmobj=~/code/llvm
--with-gnu-classpath-libs=/usr/gnu-classpath-0.98/lib/classpath
LD=/usr/bin/llvm-ld
2011 Aug 26
0
[LLVMdev] VMKit Development
I just noticed there was some .h move around in llvm and fixed the includes
in vmkit. Maybe you were just removing the failing includes?
In any case, I have updated vmkit for llvm trunk. Let me know if updating
helps.
Nicolas
On Fri, Aug 26, 2011 at 12:00 PM, Akshat Gupta <g.akshat at gmail.com> wrote:
> Yep, I am compiling with llvm-gcc. Also I removed the LD flag on the
>