Displaying 17 results from an estimated 17 matches for "sudarsanam".
2009 Dec 14
3
[LLVMdev] clang and static functions
...-v128:128:128-a0:0:64-f80:32:32"
> target triple = "i386-pc-linux-gnu"
>
> define i32 @use() nounwind {
> [...]
> }
>
> define internal i32 @add(i32 %a, i32 %b) nounwind {
> [...]
> }
>
> Olivier.
>
>
> On Mon, Dec 14, 2009 at 8:49 PM, Arvind Sudarsanam
> <arvind.sudarsanam at aggiemail.usu.edu> wrote:
>>
>> Hi,
>>
>> I am trying to compile a single module (dgemm.c) using clang and
>> generate dgemm.ll.
>> Command: clang -emit-llvm dgemm.c -S -o dgemm.ll
>> Some of the functions are declared as st...
2009 Dec 14
0
[LLVMdev] clang and static functions
Ah ok. Sorry. :)
I think that argument "-femit-all-decls" will help you.
Olivier.
On Mon, Dec 14, 2009 at 9:18 PM, Arvind Sudarsanam <
arvind.sudarsanam at aggiemail.usu.edu> wrote:
> Hi,
>
> Sorry for not being specific. I just wanted to know if there is any
> way at all to force clang to generate intermediate code for static
> functions when they are not being called anywhere inside the current
> modul...
2009 Dec 14
2
[LLVMdev] clang and static functions
...re declared as static and clang ignores these functions:
One of the functions is:
static void innerloop(double a, const double* b, double* c, double beta)
{
*b = a*beta;
return;
}
Is there any way to make clang generate llvm code for the static functions?
Thanks
Sincerely
Arvind
--
Arvind Sudarsanam
Utah State University
Phone: (435) 512-7769
E-mail: theonemorpheus at gmail.com
Web-site: http://cc.usu.edu/~asudarsanam
2009 Dec 14
0
[LLVMdev] clang and static functions
...8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
define i32 @use() nounwind {
[...]
}
define internal i32 @add(i32 %a, i32 %b) nounwind {
[...]
}
Olivier.
On Mon, Dec 14, 2009 at 8:49 PM, Arvind Sudarsanam <
arvind.sudarsanam at aggiemail.usu.edu> wrote:
> Hi,
>
> I am trying to compile a single module (dgemm.c) using clang and
> generate dgemm.ll.
> Command: clang -emit-llvm dgemm.c -S -o dgemm.ll
> Some of the functions are declared as static and clang ignores these
> fu...
2010 Jul 15
2
[LLVMdev] Trying to access the user defined variable name
...to access the variable name.
Is there something wrong in my approach? I feel that I have not
understood the method to access metadata in llvm.
Thanks
Regards
Arvind
On Thu, Jul 15, 2010 at 2:07 PM, Devang Patel <devang.patel at gmail.com> wrote:
> On Wed, Jul 14, 2010 at 3:03 PM, Arvind Sudarsanam
> <arvind.sudarsanam at aggiemail.usu.edu> wrote:
>> Dear all,
>>
>> I have the following source code:
>>
>> long f(long x, long y)
>> {
>> long u;
>>
>> u = x+y;
>> return u;
>> };
>>
>> After clang (...
2010 Jul 15
0
[LLVMdev] Trying to access the user defined variable name
On Thu, Jul 15, 2010 at 1:19 PM, Arvind Sudarsanam
<arvind.sudarsanam at aggiemail.usu.edu> wrote:
> Hi Devang,
>
> Thanks for your reply. You mentioned
> " First parameter is the compiler generated temp. and 3rd parameter
> provides info about the variable, including its name 'u'."
>
> I did manage to g...
2010 Jul 02
0
[LLVMdev] Qualitative comparisons between Open64 and llvm
Hi, Arvind Sudarsanam:
I know some of Open64. Above all, Open64 is designed for a high
performance compiler. It is now supported by AMD, HP, ICT Chinese
Academy of Science, etc. and has been ported to X86, Itanium, Loongson
CPU etc.
And to your questions
1, Open64 already have some main optimization phases, Inline...
2010 Jul 01
2
[LLVMdev] Qualitative comparisons between Open64 and llvm
Hi,
I have been working towards developing compiler optimization tools
targeting multi core processors while using LLVM IR as the starting
point and building on top of the analysis and optimization passes
available in the llvm source.
Recently, I looked into Open64 and its intermediate representation
WHIRL. Documentation for developers to use Open64 seems to be inadequate
(when compared to LLVM
2010 Jul 15
0
[LLVMdev] Trying to access the user defined variable name
On Wed, Jul 14, 2010 at 3:03 PM, Arvind Sudarsanam
<arvind.sudarsanam at aggiemail.usu.edu> wrote:
> Dear all,
>
> I have the following source code:
>
> long f(long x, long y)
> {
> long u;
>
> u = x+y;
> return u;
> };
>
> After clang (with debug option set) and llvm opt using mem2reg, I get...
2010 Jul 14
2
[LLVMdev] Trying to access the user defined variable name
...334, i32 0, metadata !2, metadata !"f",
metadata !"f", metadata !"f", metadata !2, i32 2, metadata !4, i1
false, i1 true, i32 0, i32 0, null, i1 false, i1 false} ; [
DW_TAG_subprogram ]
!2 = metadata !{i32 524329, metadata !"testadd.c", metadata
!"/home/asudarsanam/perforce/llvmtop/setup", metadata !3} ; [
DW_TAG_file_type ]
!3 = metadata !{i32 524305, i32 0, i32 12, metadata !"testadd.c",
metadata !".", metadata !"clang 2.0", i1 true, i1 false, metadata !"",
i32 0} ; [ DW_TAG_compile_unit ]
!4 = metadata !{i32 524...
2009 Dec 04
2
[LLVMdev] regarding getelementptr
...x = getelementptr inbounds i32* getelementptr
inbounds ([10 x i32]* @k, i32 0, i32 0), i32 %tmp2 ; <i32*> [#uses=1]
I am unable to get a handle on the second "getelementptr" in this instruction.
Can anyone plee let me know if I am missing something here?
Thanks
Arvind
--
Arvind Sudarsanam
Utah State University
Phone: (435) 512-7769
E-mail: theonemorpheus at gmail.com
Web-site: http://cc.usu.edu/~asudarsanam
2010 Mar 25
1
[LLVMdev] source code information in LLVM IR
...generating llvm IR code for C source code using clang as the
front end. I am wondering if there is any way of mapping an llvm IR
line number back to its C source code line number.
Thanks
Sincerely
Arvind
------------------------------------------------------------------------
------------
Arvind Sudarsanam Phone: (435) 512-7769
CPU Technology, Inc Fax: (866) 848-5599
1500 Kansas Ave, Suite 3E
Longmont, CO 80501
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100325/4d...
2010 Jun 18
1
[LLVMdev] argpromotion not working
Hi all,
I have the following C code.
static int addp(int *c, int a,int b)
{
int x = *c + a + b;
return(x);
}
I want to replace *c with a scalar. So I tried the -argpromotion pass.
However, it fails to do anything to the resulting llvm file.
List of commands:
clang add.c -c -o add.bc
clang add.c -S -o add.ll
opt -argpromotion -stats add.bc -o add_a.bc
llvm-dis < add_a.bc > add_a.ll
Also,
2010 Mar 25
4
[LLVMdev] source code information in LLVM IR
Hi,
I am generating llvm IR code for C source code using clang as the
front end. I am wondering if there is any way of mapping an llvm IR
line number back to its C source code line number.
Thanks
Sincerely
Arvind
--
Arvind Sudarsanam
Utah State University
Phone: (435) 512-7769
E-mail: theonemorpheus at gmail.com
Web-site: http://cc.usu.edu/~asudarsanam
2009 Dec 04
0
[LLVMdev] regarding getelementptr
Hi Arvind,
> I have been working towards generating my own IR code from llvm IR. I
> have hit a stumbling block with respect to "getelementptr" used inside
> another llvm instruction.
>
> Example: %arrayidx = getelementptr inbounds i32* getelementptr
> inbounds ([10 x i32]* @k, i32 0, i32 0), i32 %tmp2 ; <i32*> [#uses=1]
>
> I am unable to get a handle on
2009 Dec 04
2
[LLVMdev] regarding getelementptr
...m unable to get a handle on the second "getelementptr" in this
>> instruction.
>
> I'm not sure what you are asking, but the inner getelementptr is a constant
> (ConstantExpr), only constants turn up nested like this.
>
> Ciao,
>
> Duncan.
>
--
Arvind Sudarsanam
Utah State University
Phone: (435) 512-7769
E-mail: theonemorpheus at gmail.com
Web-site: http://cc.usu.edu/~asudarsanam
2010 Mar 30
1
[LLVMdev] Operand, instruction
Can you tell how to use vector globally? I mean, i am able to add entries to
a vector in a basicblock, but whenever a basicblock function call is
returned, the vector becomes empty. So how to use data structures globally?
And one thing, where is main ( or same kind of) function in llvm?
Thanks for you reply.
Duncan Sands wrote:
>
> Hi,
>
>> Actually i have to implement strength