Displaying 19 results from an estimated 19 matches for "clcheng".
2011 Sep 17
1
[LLVMdev] help with an error message using clang ?
...M there so I am doing what I
am doing. Is there a way for me to get headers from the target Sparc machine
without installing LLVM there?
Best,
Christine
On Fri, Sep 16, 2011 at 4:56 PM, Eli Friedman <eli.friedman at gmail.com>wrote:
> On Fri, Sep 16, 2011 at 4:40 PM, Christine Cheng <clcheng at stanford.edu>
> wrote:
> > Hi,
> >
> > I am new to LLVM and clang and I would like to seek some professional
> help.
> > :)
> >
> > I have been trying to compile some C code on a linux x86 computer for a
> > Sparc machine.
> >
> > I...
2011 Sep 15
2
[LLVMdev] problem with sgt's on Sparc machine
...-----------------
The output is still:
1
1
0
0
1
1
1
which should be all ones. Is there a sign error somewhere?
Thanks a lot!
Christine
On Thu, Sep 15, 2011 at 11:28 AM, Bruno Cardoso Lopes <
bruno.cardoso at gmail.com> wrote:
> On Thu, Sep 15, 2011 at 11:06 AM, Christine Cheng <clcheng at stanford.edu>
> wrote:
> > Hi Duncan,
> >
> > Thanks for the reply! There is no LLVM on the Sparc machine so I cannot
> > compile my code there into .s file. How shall I modify the target data
> > layout and triple so it works on Sparc? Basically I got these f...
2011 Sep 15
0
[LLVMdev] problem with sgt's on Sparc machine
On Thu, Sep 15, 2011 at 11:06 AM, Christine Cheng <clcheng at stanford.edu> wrote:
> Hi Duncan,
>
> Thanks for the reply! There is no LLVM on the Sparc machine so I cannot
> compile my code there into .s file. How shall I modify the target data
> layout and triple so it works on Sparc? Basically I got these from compiling
> C code usin...
2011 Sep 16
0
[LLVMdev] help with an error message using clang ?
On Fri, Sep 16, 2011 at 4:40 PM, Christine Cheng <clcheng at stanford.edu> wrote:
> Hi,
>
> I am new to LLVM and clang and I would like to seek some professional help.
> :)
>
> I have been trying to compile some C code on a linux x86 computer for a
> Sparc machine.
>
> I used:
>
> clang -ccc-host-triple sparc-unknown-l...
2011 Sep 15
0
[LLVMdev] problem with sgt's on Sparc machine
Hi,
On Thu, Sep 15, 2011 at 3:15 PM, Christine Cheng <clcheng at stanford.edu> wrote:
> Hi guys,
>
> Thanks for the input. However, it seems that the code still produces the
> wrong output on a Sparc machine.
>
> My current llvm_print.bc code is:
> ----------------------------------------------------------------------------------------...
2011 Sep 15
2
[LLVMdev] problem with sgt's on Sparc machine
Hi Duncan,
Thanks for the reply! There is no LLVM on the Sparc machine so I cannot
compile my code there into .s file. How shall I modify the target data
layout and triple so it works on Sparc? Basically I got these from compiling
C code using llvm-gcc.
Best,
Christine
On Thu, Sep 15, 2011 at 10:20 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi,
>
> > target datalayout =
2011 Sep 16
2
[LLVMdev] problem with sgt's on Sparc machine
Hello,
What is your LLVM version? Also, can you attach the assembly generated?
Thanks,
Venkatraman
On Thu, Sep 15, 2011 at 5:20 PM, Bruno Cardoso Lopes
<bruno.cardoso at gmail.com> wrote:
> Hi,
>
> On Thu, Sep 15, 2011 at 3:15 PM, Christine Cheng <clcheng at stanford.edu> wrote:
>> Hi guys,
>>
>> Thanks for the input. However, it seems that the code still produces the
>> wrong output on a Sparc machine.
>>
>> My current llvm_print.bc code is:
>> ------------------------------------------------------------...
2011 Sep 16
3
[LLVMdev] help with an error message using clang ?
Hi,
I am new to LLVM and clang and I would like to seek some professional help.
:)
I have been trying to compile some C code on a linux x86 computer for a
Sparc machine.
I used:
clang -ccc-host-triple sparc-unknown-linux -ccc-clang-archs sparc -pthreads
-lm -emit-llvm test.c -c -o -test.bc
The following error messages are produced:
/usr/include/pthread.h:665:6: error: 'regparm' is
2011 Dec 18
2
[LLVMdev] clang with multiple input .c and .h files
Hello,
I would like to generate LLVM byte code for some .c and .h files in a
benchmark. Is Clang (or llvm-gcc) has an option for me to input
multiple c files and generate 1 byte code file?
I think generating byte code for each .c file and compile and link
them later is not a good idea since the programs are related to each
other.
Any suggestions about how I should do it?
gcc has a
2011 Aug 18
3
[LLVMdev] tools to debug human readable llvm assembly bc code?
Hi,
I am working with a long llvm bc code in human readable form. I am wondering
is there a tool like gdb to help me debug that piece of code?
Thanks,
Christine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110818/9ae5dec7/attachment.html>
2012 Jan 12
1
[LLVMdev] A question of Sparc assembly generated by llc
Hi,
There are some generated Sparc assembly code like this:
main: ! @main
! BB#0:
save %sp, -112, %sp
sethi 0, %l0
or %g0, 5, %l1
st %l0, [%fp+-4]
st %l1, [%fp+-8]
st %l1, [%fp+-12]
sethi %hi(.L.str), %l1
ld [%fp+-8], %o1
add %l1, %lo(.L.str), %l1
or %g0, %l1, %o0
call printf
nop
ld [%fp+-12], %o2
ld [%fp+-8], %l2
sethi %hi(.L.strQ521), %l3
add
2011 Sep 16
0
[LLVMdev] problem with sgt's on Sparc machine
...is your LLVM version? Also, can you attach the assembly generated?
>
> Thanks,
> Venkatraman
>
> On Thu, Sep 15, 2011 at 5:20 PM, Bruno Cardoso Lopes
> <bruno.cardoso at gmail.com> wrote:
> > Hi,
> >
> > On Thu, Sep 15, 2011 at 3:15 PM, Christine Cheng <clcheng at stanford.edu>
> wrote:
> >> Hi guys,
> >>
> >> Thanks for the input. However, it seems that the code still produces the
> >> wrong output on a Sparc machine.
> >>
> >> My current llvm_print.bc code is:
> >>
> ---------------...
2011 Aug 18
1
[LLVMdev] tools to debug human readable llvm assembly bc code?
Hi Eric,
Thanks for the reply. I am very new to llvm so could you elaborate more
about you meant by 'debugging lli'?
Thanks a lot!
Christine
On Thu, Aug 18, 2011 at 4:47 PM, Eric Christopher <echristo at apple.com>wrote:
>
> On Aug 18, 2011, at 4:39 PM, Christine Cheng wrote:
>
> > Hi,
> >
> > I am working with a long llvm bc code in human readable
2011 Dec 09
0
[LLVMdev] tutorial on Xcode for LLVM bytecode?
Hello,
I recently procured a Mac since it has built-in LLVM debugger.
However, I am new to Xcode and so on, I would like to be directed to
some step-by-step tutorial on compiling LLVM bytecode in Xcode.
I tried selecting LLVM assembly as the source in Xcode when I try
compiling some .bc file. However, It says:
warning: no rule to process file '$(PROJECT_DIR)/test5/main.asm.llvm'
of type
2011 Sep 21
1
[LLVMdev] question on clang c++ support
Hi,
I am new to linux, llvm and clang, so please excuse me if I ask some basic
level questions. :)
I have some c code with code like below, so it won't compile with clang
#include <math.h>
#include <pthread.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <malloc.h>
#include <sched.h>
I think that I need to do the following
2012 Jan 28
0
[LLVMdev] [Sparc] size of input arguments with doubles in llvm byte code?
ckathy wrote:
>
> Hi,
>
> I have a llvm asssembly version of radix_mod.c modified from radix (a
> splash2 bench mark). It is named radix.bc.
>
> I have extended the number of arguments from 2 to 4 in the function called
> product_mod_46 and saved it as a new file called radix_mod.bc . Although
> the extra arguments does not do anything in the function. It still broke
2012 Jan 28
3
[LLVMdev] [Sparc] size of input arguments with doubles in llvm byte code?
Hi,
I have a llvm asssembly version of radix_mod.c modified from radix (a
splash2 bench mark). It is named radix.bc.
I have extended the number of arguments from 2 to 4 in the function called
product_mod_46 and saved it as a new file called radix_mod.bc . Although the
extra arguments does not do anything in the function. It still broke the
code on sparc. However, both versions of the byte code
2011 Sep 15
2
[LLVMdev] problem with sgt's on Sparc machine
Hi,
I compiled the following code on a Sparc machine, basically it produce
different results than a X86 machine.
-------------------------------------------------------------------------------------------------------------------
; MduleID = '<stdin>'
target datalayout =
2012 Jan 23
3
[LLVMdev] clang branching using label
Hi,
Clang normally generates code that looks like
....
; <label>:22 ; preds = %0
%23 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([24 x i8]*
@.str, i32 0, i32 0))
br label %24
; <label>:24 ; preds = %22, %0
%25 = load i32* %tmphigh, align 4
%26 = and i32 %25, 65535
store i32 %26, i32*