[LLVMdev] Problem running program with LLVM JIT

Nick Lewycky nicholas at mxc.ca
Mon Sep 29 19:17:26 PDT 2008


Karhu, Abhinav R wrote:
> The output of the IR looks like this. Can some of the information tell me about why the program is not running.
> 
> ; ModuleID = 'Hel.c'
> target datalayout = "e-p:32:32"
> target endian = little
> target pointersize = 32
> target triple = "i686-pc-linux-gnu"
> %str = internal constant [10 x sbyte] c"Hey there\00"           ; <[10 x sbyte]*> [#uses=1]
> 
> implementation   ; Functions:
> 
> int %main() {
> entry:
>         %retval = alloca int, align 4           ; <int*> [#uses=2]
>         %tmp = alloca int, align 4              ; <int*> [#uses=2]
> 
> These are the lines of code I guess which will have all the information that is causing the error.

Whoa, that syntax is ancient. This is pre-2.0 syntax, at least.

Make sure you don't have mixed versions of LLVM or LLVM-GCC installed.

Nick




More information about the llvm-dev mailing list