Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Preservance of function variables in the bytecode"
2007 Apr 27
0
[LLVMdev] Preservance of function variables in the bytecode
Thank you, Patrick.
What I want to do is just to write those source level variable names in my assembly code for a virtual machine because it is instructed in its instructions manual.
I registered the VM as a target for LLC and want to emit the assembly. For this reason, I asked how to get the variables themselves which are not mangled from the bytecode.
Thanks to your help, now I see they can be
2010 May 13
4
[LLVMdev] How to get the variable mapping between the source and llvm bytecode
Hi,
I want to know the variable mapping between the source and llvm bytecode. It seems that current llvm debugging information cannot provide this mapping directly.
Here is my examples (llvm 2.7). In this exmaple, I want to know the mapping: tmp<--->%4. But current llvm's debugging information can only provide that the instruction "%4 = add nsw i32 %3, 2" is at line 3 in
2010 May 13
0
[LLVMdev] How to get the variable mapping between the source andllvm bytecode
Hi,
I want to get the mapping between C source's variables and bytecode variables. It seems that llvm doesn't provide this mapping, so I think a walk-around method is to get the instruction's mapping. I have to use llvm-gcc, not clang. Any advice? Thanks.
Best,
Kecheng
2010-05-13
From: Eli Friedman
Date: 2010-05-13 15:38:36
To: Kecheng
Cc: llvmdev
Subject: Re: [LLVMdev] How
2010 May 14
2
[LLVMdev] How to get the variable mapping between the sourceandllvm bytecode
Eli,
Thanks very much for your reply. That's what I want to know. It works for this example. But I usually have to deal with the optimized bytecode with "-O".
See the example:
**************
C source
**************
int h (int j, int i) {
int tmp;
tmp = j+i+2;
return tmp;
}
+++++++++++++++++++++++++++++++++++++
.ll file:
; ModuleID = 'simplecase.c'
target
2006 Nov 24
2
[LLVMdev] Byte code portability (was Re: libstdc++ as bytecode, and compiling C++ to C)
Reid Spencer schrieb:
> Hi Philipp,
>
> On Fri, 2006-11-24 at 20:09 +0100, Philipp Klaus Krause wrote:
>> Reid Spencer schrieb:
>>
>>> Note that C and LLVM types are *not* the same things (despite the
>>> similar names). We are in the process of making this abundantly clear.
>>> The LLVM IR will soon use names like i8, i16, i32, and i64 (signless
2006 Nov 24
0
[LLVMdev] Byte code portability (was Re: libstdc++ as bytecode, and compiling C++ to C)
On Fri, 2006-11-24 at 21:13 +0100, Philipp Klaus Krause wrote:
> Reid Spencer schrieb:
> Hmm the problem was a bit different. I just reproduced it.
>
> I used this input file:
>
> #include <stdint.h>
>
> uint32_t test(uint32_t t)
> {
> return(t + 42);
> }
>
> and got the following code:
>
> unsigned test(unsigned ltmp_0_1) {
> return
2007 Aug 25
2
[LLVMdev] constructing 'for' statement from LLVM bitcode
Hello, guys.
I am trying to construct higher-level 'for' from the low-level LLVM bitcode(ver 1.9).
It's partly successful thanks to David A. Greene's advice suggested to use Control Dependence Graph(CDG).
I could find which BB contributes to form which loop with CDG.
For example, for this simple function:
-----------------------------------------------------------
void bsloop(int
2008 Aug 13
1
[LLVMdev] Alloca Outside of Entry Block
This is the right answer for C's alloca. The question probably
referred to LLVM IR's alloca, however.
On Aug 13, 2008, at 11:07 AMPDT, Mike Stump wrote:
> On Aug 13, 2008, at 10:49 AM, John Criswell wrote:
>> Is it legal to have an alloca in a basic block other than a
>> function's entry block?
>
> How else could you generate code for:
>
> #include
2006 Nov 09
3
[LLVMdev] Is this bug in LLVM?
Hello. My name is Seung Jae Lee.
I'd like to ask you onething about converting to ARM assembly code.
I saved the simplest C code shown in your LLVM webpage as 'hello.c'
And I made 'hello.bc' by "$ llvm-gcc hello.c -o hello".
In order to make ARM assembly code, I typed "llc -march=arm hello.bc -o hello.arm"
But, I met this error.
llc: ARMISelDAGToDAG.cpp:73:
2006 Oct 28
2
[LLVMdev] Question about uninstalling LLVM
Hello. Nice to meet you.
My name is Seung Jae Lee, a graduate student in UIUC CEE, who is working in NCSA for the present.
Nowadays I am trying to develop LLVM backend to spit out CHiMPS assembly code. In the process, I installed LLVM codes on my home directory in the host computer. But I don't think it was installed properly. While bootstrapping the LLVM C/C++ Front-End, I met several
2007 Sep 19
1
[LLVMdev] constructing 'for' statement from LLVM bitcode
Dear Wojciech Matyjewicz:
Thank you for your advice.
I could follow what you had suggested upto
opt -analyze -loops bsloop-opt.bc
Therefore, I could get the prints you had showed me as follows:
--------------------------------------------------------
Printing analysis 'Natural Loop Construction' for function 'bsloop':
Loop Containing: %bb16, %bb13, %bb8, %bb1
Loop
2006 Nov 30
2
[LLVMdev] Could not find include file 'llvm/Intrinsics.td'
Hello.
I am trying to run tblgen so I typed
$ tblgen ARM.td -print-enums -class=Register
in "llvm/lib/Target/ARM"
But I got an error as follows:
Included from ARM.td:18:
Parsing ../Target.td:16: Could not find include file 'llvm/Intrinsics.td'!
As you know, the 16th line of Target.td includes "llvm/Intrinsics.td". But this cannot find Intrinsics.td, I think.
Of
2007 Feb 21
2
[LLVMdev] bugpoint usage
Thank you for this information.
If so, is there any way to grasp which kinda data throw in and out in LLVM as shown in such a way in gdb?
Thanks,
Seung Jae Lee
---- Original message ----
>Date: Tue, 20 Feb 2007 23:54:04 -0600
>From: "John T. Criswell" <criswell at cs.uiuc.edu>
>Subject: Re: [LLVMdev] bugpoint usage
>To: LLVM Developers Mailing List <llvmdev at
2008 Jul 03
4
[LLVMdev] simply wonder pronunciation of Clang
Hello, LLVMers.
I just wonder How I can pronounce Clang.
[see-laeng], [see-lang], [k-laeng], [k-lang]??
Thanks,
Seung
2008 Jan 27
3
[LLVMdev] Question to Chris
Thank you, Bill.
Seems to be better.
Anyway...Is there a way I can do what you showed for me?
Thanks,
Seung J. Lee
---- Original message ----
>Date: Sat, 26 Jan 2008 22:10:01 -0800
>From: Bill Wendling <isanbard at gmail.com>
>Subject: Re: [LLVMdev] Question to Chris
>To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
>
>On Jan 26, 2008, at 9:48 AM, Seung
2008 Feb 13
4
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
Thanks for your comment.
I also tried for LLVM 2.2 but got the same compilation errors on VS2005. (I didn't modify anything before the compilation)
I just wonder if I need bison and flex even just in the case of compiling them on VS2005 without changing anything because the LLVM doc says "If you plan to modify any .y or .l files, you will need to have bison and/or flex installed where
2007 Jun 29
1
[LLVMdev] LLVM assembly without basic block
Hello, guys.
I just wonder if there is any way to spit out LLVM assembly without any basic block division.
E.g.,
If I emit LLVM assembly for the following simple code:
------------------------------------------------------------
void f_loop(long* c, long sz) {
long i;
for (i = 0; i < sz; i++) {
long offset = i * sz;
long* out = c + offset;
out[i] = 0;
}
}
2007 Mar 28
3
[LLVMdev] "deserialize primitive type 16 (vers=0, pos=15)" with Visual Studio
I followed the steps in "Getting Started with the LLVM System using Microsoft Visual Studio" in the document in LLVM page.
I made hello.c file exactly same shown in the page.
I made hello.bc on UNIX and transferred it to my Windows computer.
And I typed "llc -march=c hello.bc"
(Of course, I downloaded the latest version of LLVM and compiled with VS before this.)
But my command
2008 Feb 13
0
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
I have always built it with flex and bison installed, though I believe
Chris removed our last dependence on flex a little while back, so you
may not need that. I'm using bison 2.1 which I got from the getgnuwin32
folks. I imagine that if you have cygwin or the like, you probably
already have everything.
You will need to have the executables in your path.
I build with VisualStudio 2k5
2007 May 28
1
[LLVMdev] Usage of llvmc
Thank you so much for your reply, Chris.
If so, can I ask you two things more?
First, is there any way to have various optimizations on LLVM assembly such as -O options in llvmc?
llvm-gcc doesn't seem to be working for these -O options...
Second, I'm still not sure about difference between *.s and *.ll.
LLVM assembly *.s file can be made from llvm-gcc -S.
Another assembly *.ll file comes