search for: tp33486161p33486962

Displaying 7 results from an estimated 7 matches for "tp33486161p33486962".

2012 Mar 12
2
[LLVMdev] LLI Segfaulting
...st re-allocate it as a { i32, [5 x i32] } when I learn about the length? That doesn't sound like the nicest option. I'm not aware of a way of only allocating a part of a literal struct, is that possible? Cheers, Fraser -- View this message in context: http://old.nabble.com/LLI-Segfaulting-tp33486161p33486962.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Mar 12
2
[LLVMdev] LLI Segfaulting
...sn't sound like the nicest option. I'm >> not >> aware of a way of only allocating a part of a literal struct, is that >> possible? >> >> Cheers, >> Fraser >> -- >> View this message in context: >> http://old.nabble.com/LLI-Segfaulting-tp33486161p33486962.html >> Sent from the LLVM - Dev mailing list archive at Nabble.com. >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvm...
2012 Mar 12
0
[LLVMdev] LLI Segfaulting
...} when > I learn about the length? That doesn't sound like the nicest option. I'm not > aware of a way of only allocating a part of a literal struct, is that > possible? > > Cheers, > Fraser > -- > View this message in context: http://old.nabble.com/LLI-Segfaulting-tp33486161p33486962.html > Sent from the LLVM - Dev mailing list archive at Nabble.com. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
2012 Mar 12
0
[LLVMdev] LLI Segfaulting
...9;m > >> not > >> aware of a way of only allocating a part of a literal struct, is that > >> possible? > >> > >> Cheers, > >> Fraser > >> -- > >> View this message in context: > >> http://old.nabble.com/LLI-Segfaulting-tp33486161p33486962.html > >> Sent from the LLVM - Dev mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> LLVM Developers mailing list > >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> http://lists.cs.u...
2012 Mar 12
1
[LLVMdev] LLI Segfaulting
...gt;> aware of a way of only allocating a part of a literal struct, is that >> >> possible? >> >> >> >> Cheers, >> >> Fraser >> >> -- >> >> View this message in context: >> >> http://old.nabble.com/LLI-Segfaulting-tp33486161p33486962.html >> >> Sent from the LLVM - Dev mailing list archive at Nabble.com. >> >> >> >> _______________________________________________ >> >> LLVM Developers mailing list >> >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> &g...
2012 Mar 12
0
[LLVMdev] LLI Segfaulting
Hi Fraser, it looks to me like you are smashing the stack. > define void @main() nounwind { > allocas: > %0 = alloca { i32, [0 x i32] }, align 8 ^ this allocates 4 bytes on the stack. > %2 = getelementptr inbounds { i32, [0 x i32] }* %0, i64 0, i32 1 ^ this gets a pointer to the byte after the 4 allocated bytes. > %3 = bitcast [0 x i32]* %2 to i8* > call void
2012 Mar 12
2
[LLVMdev] LLI Segfaulting
Hi, I've been stuck with this problem for a while now, and my supervisor's starting to think it's a bug in lli, but I thought I'd ask here before going down that route. I have this code, which stores an array in my 'MainClass', and prints out an element of it. Note that the print statement is irrelevant here, it segfaults regardless, and this code has been run with -O2