search for: cseiitk

Displaying 17 results from an estimated 17 matches for "cseiitk".

2009 Apr 08
3
[LLVMdev] help using indvars pass
I am trying to use the indvars pass on a simple loop but it does not seem to have any effect The sample code i am using is #include <stdio.h> int test (int p); int main(){ int a,b=3; for(a=7;a*a<100;++a){ if(b >3) test(3); b++; } return 1; } int test(int p){ return p; } According to documentation
2009 Apr 08
0
[LLVMdev] help using indvars pass
On Wed, Apr 8, 2009 at 10:26 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: > Neither is there a Phinode for a Maybe you need to run mem2reg first? -Eli
2009 May 07
2
[LLVMdev] obtaining IR for CellBE code
On Thu, May 7, 2009 at 9:39 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Thu, May 7, 2009 at 9:03 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: >>    I was trying to extract out the IR for some CELLBE code. However i >> was not able to compile with llvm-gcc. > > Can you give a couple examples of error messages you're getting? llvm-gcc -emit-llvm -S -W -Wall -Winline -Wno-main -I. -I /...
2009 May 07
3
[LLVMdev] obtaining IR for CellBE code
Hello, I was trying to extract out the IR for some CELLBE code. However i was not able to compile with llvm-gcc. Has someone who has tried this shed some light on the changes required to use llvm-gcc instead of gcc or xlc. A simple replacement of gcc with llvm-gcc -emit-llvm -S or marking $CC as llvm-gcc in the makefile did not work for me. I am using the standard makefile format supplied
2009 May 07
2
[LLVMdev] obtaining IR for CellBE code
On Thu, May 7, 2009 at 10:12 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Thu, May 7, 2009 at 9:25 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: >>> Can you give a couple examples of error messages you're getting? >>  llvm-gcc -emit-llvm -S        -W -Wall -Winline -Wno-main  -I.  -I >> /opt/cell/sysroot/usr/spu/include -I >> /opt/cell/sysroot/opt/cell/sdk/usr/spu/include  -O3 -c simple...
2009 May 07
0
[LLVMdev] obtaining IR for CellBE code
On Thu, May 7, 2009 at 9:03 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: >    I was trying to extract out the IR for some CELLBE code. However i > was not able to compile with llvm-gcc. Can you give a couple examples of error messages you're getting? -Eli
2009 May 07
0
[LLVMdev] obtaining IR for CellBE code
On Thu, May 7, 2009 at 9:25 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: >> Can you give a couple examples of error messages you're getting? >  llvm-gcc -emit-llvm -S        -W -Wall -Winline -Wno-main  -I.  -I > /opt/cell/sysroot/usr/spu/include -I > /opt/cell/sysroot/opt/cell/sdk/usr/spu/include  -O3 -c simpleDMA_spu.c > s...
2009 Apr 22
0
[LLVMdev] Adding structures in a loop pass
On Wed, Apr 22, 2009 at 12:10 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: > Hello, >     I wanted to do some speculative execution on a loop for which I > require some data storage structure for book keeping. The exact > structure of this storage buffer can only be determined after loop > analysis. Is there a clean way to add this n...
2009 Apr 23
1
[LLVMdev] Adding structures in a loop pass
...ably able to add this new struct type to the module. Can you provide me pointers towards obtaining loops inside runOnFunction method? Thanks, Kshitiz On Wed, Apr 22, 2009 at 11:26 PM, Devang Patel <devang.patel at gmail.com> wrote: > On Wed, Apr 22, 2009 at 12:10 AM, Kshitiz Garg <ksh.cseiitk at gmail.com> wrote: >> Hello, >>     I wanted to do some speculative execution on a loop for which I >> require some data storage structure for book keeping. The exact >> structure of this storage buffer can only be determined after loop >> analysis. Is there a cle...
2009 Apr 22
2
[LLVMdev] Adding structures in a loop pass
Hello, I wanted to do some speculative execution on a loop for which I require some data storage structure for book keeping. The exact structure of this storage buffer can only be determined after loop analysis. Is there a clean way to add this new structure to the module. Since this structure is to be used for each loop iteration I do not want to allocate it inside the loop. A second
2009 Mar 27
0
[LLVMdev] Shared objects not being built on OS X
On Fri, Mar 27, 2009 at 11:18 PM, jstanier <j.stanier at sussex.ac.uk> wrote: > > Hi again everyone... > > After following the "Writing an LLVM Pass" tutorial using LLVM 2.5, there > is > a part that states that: > > "This makefile specifies that all of the .cpp files in the current > directory > are to be compiled and linked together into a
2009 May 09
1
[LLVMdev] inserting #pragmas and comments?
Hello, Is there a way such that one can insert #pragmas and /or comments in the IR such that the C code produced by llc has those pragmas which can be used later by another tool?. Say for example I have a pass that shall do some analysis and modifications to provided source code. Then I wish to parallelize the modified loop using open-MP by inserting openmp pragmas in the generated c
2009 May 09
1
[LLVMdev] Codegen error with instrinsic
I am getting the following error when i am trying to generate the code. In the optimization pass I have inserted some calls llvm.annotation.i32 class to provide indentification tags to loops to be used in subsequent passes. Codegen is complaining about these annotations. llc -march=c ham1_seq.bc3 Error: Code generator does not support intrinsic function 'llvm.annotation.i32'! llc
2009 May 08
3
[LLVMdev] problem with analysis required
Hello, I was trying to get the loop info in a module pass to be able to iterate over the loops int the module itself. Since my pass requires to make module level changes including adding new types to module hence a looppass cannot be used here. I am getting the following error on running opt. opt: /root/llvm-2.4/include/llvm/PassAnalysisSupport.h:199: AnalysisType&
2009 Apr 01
2
[LLVMdev] adding header files to code
Hi, I was wondering how to add header files to code in LLVM. I am trying to create a small profiler to track the actual time spent in functions. For this i am adding call to clock() in the C code of the given program. However this will require adding the file time.h to C code. Can some tell me a way to do so. I have tried using Module.addLibrary("time.h"); but this doesn't seem
2009 Mar 26
2
[LLVMdev] GSoC 2009 application
Hello, I am a final semester Dual Degree( B.Tech. M.Tech.) student from Indian Institute of Technology, Kanpur. I was looking forward to participate in this year's GSoC 2009.Starting Fall 2009 i shall be pursuing a Phd in compilers. I am having a good background in compilers. My current masters thesis is aimed at automatic parallel code from c programs target for the Cell Processor using
2009 Apr 03
2
[LLVMdev] GSoC 2009 application
Here is my formal proposal i have submitted in gsoc. Comments invited. About me: I am a final semester Dual Degree( B.Tech. M.Tech.) student from Indian Institute of Technology, Kanpur. I was looking forward to participate in this year's GSoC 2009.Starting Fall 2009 i shall be pursuing a Phd in compilers. I am having a good background in compilers. My current masters thesis is aimed at