similar to: [LLVMdev] About implementing new intrinsic

Displaying 20 results from an estimated 5000 matches similar to: "[LLVMdev] About implementing new intrinsic"

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 31
0
[LLVMdev] About implementing new intrinsic
On Sat, 2007-03-31 at 15:34 +0200, Ferad Zyulkyarov wrote: > 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
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
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 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 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 Mar 31
0
[LLVMdev] About implementing new intrinsic
Hi, > 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. Thanks for advices ans hints, Ferad -- Ferad Zyulkyarov Barcelona Supercomputing Center
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..
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 04
4
[LLVMdev] For a small help
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 TestClass class TestClass { int testMethod(int a); } and I want to
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 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 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 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 Apr 01
0
[LLVMdev] About implementing new intrinsic
On Sat, 31 Mar 2007, Ferad Zyulkyarov wrote: > 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 >
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 29
0
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
Hi Anton, > What's the version of binutils you're using? I've seen such messages > with 2.16 series, but they were only warnings... The version of binutils is 2.17 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.
2007 Mar 29
0
[LLVMdev] gcc 4.1* carashes compiling llvm-gcc
> i had the same errors. adding "--disable-multilib" to configure solved > the problem. but i guess this is not a general solution. Thanks, that worked. Probably it would be good if this issue is included in the readme file for gcc-front end. Regards, Ferad -- Ferad Zyulkyarov Barcelona Supercomputing Center