similar to: [LLVMdev] For a small help

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] For a small help"

2007 Apr 04
0
[LLVMdev] For a small help
Hi Ferad, On Wed, 2007-04-04 at 19:48 +0200, Ferad Zyulkyarov wrote: > Hi, > > I want to ask for a small help for creating an instruction that calls > e member method of an object. I suppose that this is not a headache > but I am impatient in learning :) I would be very thankful if you can > show me an example snippet code that does this in LLVM. Below is > described my
2007 Apr 04
0
[LLVMdev] For a small help
Ferad Zyulkyarov wrote: > Hi, > > I want to ask for a small help for creating an instruction that calls > e member method of an object. I suppose that this is not a headache > but I am impatient in learning :) I would be very thankful if you can > show me an example snippet code that does this in LLVM. Below is > described my case. > > Let's say I have a class
2007 Apr 05
2
[LLVMdev] For a small help
On 4 Apr 2007, at 20:10, Jeff Cohen wrote: > […] > %obj = alloca %struct.TestClass, align 1 ; <%struct.TestClass*> > [#uses=1] > %tmp1 = call int %_ZN9TestClass10testMethodEi( %struct.TestClass* % > obj, int 1 ) ; <int> [#uses=0] > ret void > } > > declare int %_ZN9TestClass10testMethodEi(%struct.TestClass*, int) The name mangling is not very pretty
2007 Mar 28
5
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
Hi, I tried to compile the GCC front end of LLVM in a 16 CPU SMP machine with 64bit intel xeon CPUs. I tried with (GCC 4.1.0, 4.1.1, 4.1.2 versions). The LLVM compiles perfectly but when compiling the gcc front end the compiler crashes with a segmentation fault by reporting for memory leakages. Probably this is for the GCC's mailing list, but decided to ask if you know anything more about
2007 Apr 05
0
[LLVMdev] For a small help
Luc Bourhis wrote: > On 4 Apr 2007, at 20:10, Jeff Cohen wrote: > > >> […] >> %obj = alloca %struct.TestClass, align 1 ; <%struct.TestClass*> >> [#uses=1] >> %tmp1 = call int %_ZN9TestClass10testMethodEi( %struct.TestClass* % >> obj, int 1 ) ; <int> [#uses=0] >> ret void >> } >> >> declare int
2007 Mar 31
6
[LLVMdev] About implementing new intrinsic
Hi, I want to implement a new intrinsic in llvm that will denote a parallel section within a function. I followed the documentation for extending llvm (http://llvm.org/docs/ExtendingLLVM.html) but there is something about the working mechanism that is not clear for me. 1. Why do we have to add support for the C backend? Is this only necessary to transform the llvm assembly (bytecode) into C code
2007 Mar 31
4
[LLVMdev] About implementing new intrinsic
>> 3. Can I introduce an intrinsic that is actually a call to my function >> that implements the logic? I suppose it is possible but unfortunately >> I couldn't figure it out. For example, in GCC we can write an >> intrinsic that translates to a C code. > > As part of PR1297 (http://llvm.org/PR1297) I am about to make this > happen. There are certain kinds of
2007 Mar 29
1
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
Hello, Ferad. > `.gnu.linkonce.t._ZN4llvm12SCEVExpander6expandEPNS_4SCEVE' referenced > in section `.rodata' of > /home/ferad/llvm/llvm-obj/Release/lib/libLLVMAnalysis.a(ScalarEvolutionExpander.o): > defined in discarded section > `.gnu.linkonce.t._ZN4llvm12SCEVExpander6expandEPNS_4SCEVE' of >
2007 Mar 24
3
[LLVMdev] Compilation problems
Hi, I try to compile LLVM and the GCC frontend for LLVM. The steps that I follow are first to compile LLVM and later to compile GCC front end. I tried to compile LLVM 1.8, 1.9 releases and the CVS versions. I tried to compile with different GCC compilers 3.4.0, 4.1.2 and 4.2.0 GCC compilers 3.4.0 and 4.2.0 fail compiling LLVM sources. GCC 4.1.2 works. I cannot compile GCC front end. When I
2007 Apr 02
2
[LLVMdev] About implementing new intrinsic
Hi, > > I want to implement a new intrinsic in llvm that will denote a > > parallel section within a function. > > Can you explain what you mean by a parallel section within a function? I want to see how OpenMP's parallel fit in the LLVM architecture, is it easy to implement or not. GCC is too heavy platform to work on.. Ferad -- Ferad Zyulkyarov Barcelona Supercomputing
2007 Mar 29
2
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
Ferad Zyulkyarov wrote: > By the way. I will use the opportunity to ask you again :) I tried to > compile with gcc 4.0.4. It successfully compile LLVM but fails > compiling LLVM's gcc front end. The problem is architectural 32 and 64 > bit. The machine has intel xeon CPU that is physically 32 bit but has > 64 extension x86_64 (or something like that, I am not exactly sure). >
2007 Mar 31
2
[LLVMdev] About implementing new intrinsic
Hi, I will try to explain by giving an example. Let's say that I have an intrinsic: int llvm.myintrinsic(int) I have a function: int myintrinsic_handler(int) When %var = call int %llvm.myintrinsic( int %arg ) is met in the code, I want the code generator put in its place: a call to function "myintrinsic_handler" (i.e. %var = call int %myintrinsic_handler( int %arg ) ) or
2007 Mar 29
1
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
Yes, you I read that in the docs. Do you have a preferred gcc version that you would suggest me to work best. Unfortunately, version 3.4.2 that you suggest in your docs fails in compilation too. Thanks, Ferad -- Ferad Zyulkyarov Barcelona Supercomputing Center
2007 Mar 29
0
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
GCC 4.1.x series is known not to compile LLVM. Its is well documented, avoid GCC 4.1. Aaron ----- Original Message ----- From: "Ferad Zyulkyarov" <feradz at gmail.com> To: <LLVMdev at cs.uiuc.edu> Sent: Wednesday, March 28, 2007 10:38 PM Subject: [LLVMdev] gcc 4.1* carashes compiling llvm-gcc > Hi, > > I tried to compile the GCC front end of LLVM in a 16 CPU
2007 Mar 31
1
[LLVMdev] About implementing new intrinsic
On Sat, 31 Mar 2007, Ferad Zyulkyarov wrote: >> IntrinsicLowering already does this. It lets you lower intrinsics to >> arbitrary LLVM calls, including calls to external functions. > > I will try to do that in IntrinscLowering class. May you point me an > intrinsic implementation that lowers to an llvm call. bswap expands into a series of shifts and or's, for example.
2007 Apr 02
0
[LLVMdev] About implementing new intrinsic
On Mar 31, 2007, at 8:34 AM, Ferad Zyulkyarov wrote: > I want to implement a new intrinsic in llvm that will denote a > parallel section within a function. Can you explain what you mean by a parallel section within a function? --Vikram
2007 Apr 02
0
[LLVMdev] About implementing new intrinsic
On Mon, 2 Apr 2007, Ferad Zyulkyarov wrote: >>> I want to implement a new intrinsic in llvm that will denote a >>> parallel section within a function. >> Can you explain what you mean by a parallel section within a function? > I want to see how OpenMP's parallel fit in the LLVM architecture, is > it easy to implement or not. GCC is too heavy platform to work on..
2009 Apr 12
1
Simple class with an automatic printing issue
I don't understand the following behavior for a simple S3 class. The auto-printing at the command line doesn't behave as I expect. I'm probably missing something, but it might be a bug. > print.testClass <- function(x, ...) cat("Class:", class(x), ":", x, "\n") > structure(1, class = "testClass") Class: testClass : 1 > print(1 *
2007 Mar 31
0
[LLVMdev] About implementing new intrinsic
On Sat, 2007-03-31 at 12:38 -0800, Chris Lattner wrote: > >> 3. Can I introduce an intrinsic that is actually a call to my function > >> that implements the logic? I suppose it is possible but unfortunately > >> I couldn't figure it out. For example, in GCC we can write an > >> intrinsic that translates to a C code. > > > > As part of PR1297
2009 Sep 15
2
S3 objects in S4 slots
Hello, I am the maintainer of the stringkernels package and have come across a problem with using S3 objects in my S4 classes. Specifically, I have an S4 class with a slot that takes a text corpus as a list of character vectors. tm (version 0.5) saves corpora as lists with a class attribute of c("VCorpus", "Corpus", "list"). I don't actually need the