Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] FunctionPassManager Issue"
2004 Apr 14
0
[LLVMdev] FunctionPassManager Issue
On Wed, 14 Apr 2004, Alex Li wrote:
> Hi Chris,
>
> Thanks for responding so quickly, here's the stack trace.
Okay, try applying this patch to your llvm/lib/VMCore/Pass.cpp file. It
seems to have been in CVS since February 9, I assume that your tarball
predates that.
If this doesn't fix it, I'm not sure that there is anything that I can do,
as I don't have the files you
2004 Apr 14
5
[LLVMdev] Linking strncpy
Chris,
I'm fine with using JIT, but I'm trying to understand this problem:
1. My LLVM program does not produce correct results
2. Using llvm-dis, I disassemble the bytecode to C
3. I recompile using GCC and the program _works correctly_.
The only odd thing is when I recompile with GCC, I see these messages:
pal3.c:195: warning: conflicting types for built-in function `strcmp'
2004 Apr 14
1
[LLVMdev] Linking strncpy
Hi,
I'm working on a CS326 compiler project, and I'm having some problems
using string functions. Some LLVM programs produced are either
aborting or giving incorrect results; however, if I disassemble the
LLVM bytecode and recompile with GCC, everything works fine.
I encountered the following error when running lli with
'-force-interpreter' option:
"Tried to execute an
2004 Apr 14
0
[LLVMdev] Linking strncpy
The only thing I can think of is that string.h is being #included and
has different signatures for memcpy and strncpy. Possibly "char" is not
signed on your machine (very unusual) or some of the parameters are
declared as "const".
Reid.
On Wed, 2004-04-14 at 18:19, Eric Zimmerman wrote:
> Chris,
>
> I'm fine with using JIT, but I'm trying to understand this
2004 Apr 14
1
[LLVMdev] Unknown LLVM intrinsic
I'm using the intrinsic llvm.memcpy which I declare at the top of my file:
declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
and then later use as such:
call void %llvm.memcpy(sbyte* %t12, sbyte* %t13, uint %t9, uint 0)
However when trying to compile the llvm program I get this:
cpp -I/home/class/cs326/mp/mp2/lib cgen_test.ll | sed -e"s/#.*//" >
cgen_test.bc.exp
llvm-as
2004 Apr 14
2
[LLVMdev] Linking strncpy
On Wed, 14 Apr 2004, Reid Spencer wrote:
> The only thing I can think of is that string.h is being #included and
> has different signatures for memcpy and strncpy. Possibly "char" is not
> signed on your machine (very unusual) or some of the parameters are
> declared as "const".
The problem is that the code generated by the C backend cannot include any
system
2004 May 11
2
[LLVMdev] Problems accessing structs
Hello!
I get some odd behaviour using my structs:
"myKernelMap" = type {int (sbyte*)*, int ()*}
"Kernel" = type {"myKernelMap"*}
The second member ( int()* ) is a pointer to the %getchar() function.
I want to call getchar using this function:
int "callmyKernelgetchar_kernel"("Kernel"* "myKernel")
{
"PTRMAP" =
2006 Dec 21
1
[LLVMdev] lli, llvm-ld and runtime libraries
Hello again,
I'm exploring llvm's intermediary representation with this code:
////////////////////////////////////
%.LC0 = internal constant [13 x sbyte] c"hello world\0A\00"
declare int %puts(sbyte*)
implementation
int %main() {
%cast210 = getelementptr [13 x sbyte]* %.LC0, long 0, long 0;
call int %puts(sbyte* %cast210)
ret int 0
}
2010 Feb 03
0
[LLVMdev] Changes in FunctionPassManager constructor
Hi Christophe,
So this is a pain, but we are dealing with a pre-release. Until the 2.7 freeze the source should continue to churn.
Regards
Garrison
On Feb 3, 2010, at 11:34, Christophe de Dinechin wrote:
> What guarantees does LLVM try to provide regarding source code compatibility?
>
> Case in point: rev 94686 (http://llvm.org/viewvc/llvm-project?view=rev&revision=94686) breaks
2010 Feb 03
7
[LLVMdev] Changes in FunctionPassManager constructor
What guarantees does LLVM try to provide regarding source code compatibility?
Case in point: rev 94686 (http://llvm.org/viewvc/llvm-project?view=rev&revision=94686) breaks any code that creates a JIT. For example, we used to construct a FunctionPassManager with a ModuleProvider, it's now to be done with a Module. I cannot ship source code for my own project that is compatible with both
2010 Feb 03
1
[LLVMdev] Changes in FunctionPassManager constructor
So, it looks like I mis-read this. You were referring to backward compatibility.
Garrison
On Feb 3, 2010, at 12:11, Garrison Venn wrote:
> Hi Christophe,
>
> So this is a pain, but we are dealing with a pre-release. Until the 2.7 freeze the source should continue to churn.
>
> Regards
>
> Garrison
>
> On Feb 3, 2010, at 11:34, Christophe de Dinechin wrote:
>
2008 Sep 29
2
[LLVMdev] Problem running program with LLVM JIT
Hey all,
I compiled the code using both the -c and -S options. I can get the human readable IR but I still cannot run it using lli.
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 =
2004 Apr 15
0
[LLVMdev] Linking strncpy
Eric Zimmerman wrote:
> Chris,
>
> I'm fine with using JIT, but I'm trying to understand this problem:
> 1. My LLVM program does not produce correct results
> 2. Using llvm-dis, I disassemble the bytecode to C
> 3. I recompile using GCC and the program _works correctly_.
>
> The only odd thing is when I recompile with GCC, I see these messages:
>
>
2004 May 11
0
[LLVMdev] Problems accessing structs
Anders Alexandersson wrote:
> Hello!
>
> I get some odd behaviour using my structs:
>
> "myKernelMap" = type {int (sbyte*)*, int ()*}
> "Kernel" = type {"myKernelMap"*}
>
> The second member ( int()* ) is a pointer to the %getchar() function.
>
> I want to call getchar using this function:
>
> int
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
Hi,
Is it possible to run Objective-C code in lli? lli does not seem to
want to load Foundation.framework.
Please see below.
Thanks,
Eric Brunstad
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"test!");
[pool drain];
return EXIT_SUCCESS;
}
cmu-351714:llvm-2.5 ericbrunstad$
2004 Jul 21
2
[LLVMdev] GC questions.
On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:
>
> Hi, I'm thinking out loud, please give me some feedback.
>
> Regarding llvm.gcread and llvm.gcwrite, wouldn't it be nicer if they are
> implemented as:
>
> llvm.gcread(sbyte** object, uint offset)
> llvm.gcwrite(sbyte* data, sbyte** object, uint offset)
>
> Where you also have the offset into the object. In
2004 Jun 12
2
[LLVMdev] getelementptr results in seg-fault.
Hi,
I'm trying to compile and run the following code-snippet:
implementation
uint %fie(uint* %x) {
%e = getelementptr uint* %x, int 1
; %f = load uint* %e
ret uint 3
}
int %main(int %argc, sbyte** %argv) {
%z = malloc uint, uint 10
%g = call uint %fie(uint* %z)
ret int 0
}
But the getelementptr instruction gives a segmentation fault. Have I
misunderstood its use? I
2004 Jul 21
0
[LLVMdev] GC questions.
Ok, that makes sense :).
, Tobias
On Wed, 21 Jul 2004, Chris Lattner wrote:
> On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:
> > > void *llvm_gc_read(void *ObjPtr, void **FieldPtr) {
> > > return *FieldPtr;
> > > }
> >
> > Hm, but doesn't FieldPtr need to be calculated target-specific in those
> > cases?
>
> For the field pointer, one
2002 Nov 28
1
[LLVMdev] lli unreliable?
lli executed the bytecode corresponding to test_3.0_ml.ll without a
failure, even though Function() is accessing an invalid memory
address. The original code is in test_3.0.c, and the malloc() in
Create() has been replaced by alloca() in test_3.0_ml.ll.
I expected lli to segfault or similar when testing my code. Are my
assumptions erroneous?
-------------- next part --------------
2007 Jul 15
2
[LLVMdev] JIT Leaks?
First, I'm not sure if deleting the ExecutionEngine is all I need to
clean-up... so I started with a minimal test just to check
int main( int argc, char **argv ){
while( true ){
Module *M = new Module("M");
Function *F = cast<Function>(M->getOrInsertFunction("F",
Type::Int32Ty, (Type*)0));
BasicBlock *BB = new