Displaying 20 results from an estimated 1100 matches similar to: "[LLVMdev] Adding structures in a loop pass"
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 new structure to the
> module. Since
2009 Apr 23
1
[LLVMdev] Adding structures in a loop pass
Devang,
Let me reframe my question.I require to keep this extra information as
a structure so as to pass it around to other functions which require
it. Specifically I am working on CellBE and wish to DMA this
information to the SPEs The way of adding the information by PHI nodes
will not suffise since the information may be very large in some cases
which will need to be transfered by a DMA rather
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 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 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
>>
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
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
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
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
> simpleDMA_spu.c:42:23: error:
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 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
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
0
[LLVMdev] GSoC 2009 application
On Apr 3, 2009, at 12:52 AM, Kshitiz Garg wrote:
> Here is my formal proposal i have submitted in gsoc. Comments invited.
>
This sounds like a very interesting proposal. Many compilers clone
loops and use dynamic checks to enforce invariants in one copy of the
loop. Is this intended to be similar to that style of approach?
-Chris
>
> About me:
>
> I am a final
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 Mar 27
0
[LLVMdev] GSoC 2009 application
Hello, Kshitiz
> I was interested in taking up the project ideas on adding profile driven
> optimization passes and improving alias analysis as this would give me a
> chance to carry forward and improve my current work and also contribute
> significantly in terms of tangibles.
This sounds like a great idea. LLVM definitely lacks some
profile-driven optimizations.
--
With best
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 May 08
0
[LLVMdev] problem with analysis required
Kshitiz Garg wrote:
> 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:
2009 Mar 27
3
[LLVMdev] Shared objects not being built on OS X
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 Debug/lib/Hello.so shared
object that can be dynamically loaded by the opt or bugpoint tools via their
-load options."
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