search for: hc2428

Displaying 20 results from an estimated 24 matches for "hc2428".

Did you mean: 2428
2009 Sep 24
3
[LLVMdev] Given Filename and line number, how to get its basicblock?
Dear developers, Here I met a question: if I got a file called foo.c, and I want to know which BasicBlock contains the 30 th line in foo.c, how can I get this BasicBlock in LLVM? Thanks, Heming
2009 May 13
4
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
Quoting Chris Lattner <clattner at apple.com>: Dear staff, I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12 statically (compile all libraries statically to the executable) and got the bc file, named it as mysqld.bc3. I use the command to pass: opt -load <poolalloc install dir>/lib/libLLVMDataStructure.so -ds-aa mysqld.bc3 -print-alias-sets -disable-output
2009 May 13
0
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
Quoting hc2428 at columbia.edu: Dear staff, Here is the bc file. Heming > Quoting Chris Lattner <clattner at apple.com>: > > Dear staff, > I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12 > statically (compile all libraries statically to the executable) and > got t...
2009 May 08
0
[LLVMdev] Some questions on the output formats of AliasSetTracker
On Thu, May 7, 2009 at 5:07 PM, <hc2428 at columbia.edu> wrote: > However, I am a little confused with these output. In Both anders-aa > and steens-aa, XX and YY should stay in the same AliasSet, and their > alias relationship should be May Alias, right? %XX and %YY are the results of alloca instructions (i.e. equivalent to...
2009 Sep 24
0
[LLVMdev] Given Filename and line number, how to get its basicblock?
On Sep 23, 2009, at 10:37 PM, hc2428 at columbia.edu wrote: > Dear developers, > Here I met a question: if I got a file called foo.c, and I want > to know which BasicBlock contains the 30 th line in foo.c, how can I > get this BasicBlock in LLVM? > Hi Heming, The only way I can think of to do this is to look at th...
2009 Sep 24
0
[LLVMdev] Is line number in DbgStopPointInst in LLVM accurate?
On 2009-09-24 22:34, hc2428 at columbia.edu wrote: > Dear developers, > When I try to map line numbers in source code back to LLVM > basicblocks, I meet some problems: there is a source file with 1500 > lines of code, but when I use BasicBlockPass to collect all > DbgStopPoint instructions in this file, I c...
2010 Oct 25
2
[LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?
Dear folks, If I want to setup a mapping between an LLVM instruction and the x86 assembly instructions it generates, is this possible? Or, an equavalent question is, when LLVM is emitting assebmly instructions, will it transform a set of LLVM instructions to a set of assembly instructions, or transform each LLVM instruction to assembly instructions independently? -- Regards, Heming Cui
2010 Oct 25
0
[LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?
On Mon, Oct 25, 2010 at 12:39 PM, Heming Cui <hc2428 at columbia.edu> wrote: > Dear folks, >     If I want to setup a mapping between an LLVM instruction and the x86 > assembly instructions it generates, is this possible? >     Or, an equavalent question is, when LLVM is emitting assebmly > instructions, will it transform a set of L...
2009 May 08
0
[LLVMdev] How to use the PoolDescriptor in ds-aa alias analysis?
On Friday 08 May 2009, hc2428 at columbia.edu wrote: > Dear Staff, > I am reading the paper "Making Context-sensitive Points-to > Analysis with Heap Cloning Practical For The Real World", and I build > the poolalloc module, and run the program in Figure 1 in this paper > with -ds-aa alias analysis....
2009 Jun 28
3
[LLVMdev] Error when running llc to compile .bc to .s
Dear staff, I downloaded an llvm version from the svn trunk at June 12, because the released 2.5 version can not support "gcc -g -Ox", and x=1,2,3. I use the version in svn to compile an httpd.bc file succefully with dbgstoppoint() functions. However, when I use llc to compile the bc file to .s file (llc -f -o httpd.s httpd.bc), I met this error (the httpd.bc file will be
2009 May 08
1
[LLVMdev] Some questions on the output formats of AliasSetTracker
...ias, Mod/Ref Pointers: (i32* %retval, 4) I am sure that the XX and YY are global: @XX = common global i32* null ; <i32**> [#uses=4] @YY = common global i32* null ; <i32**> [#uses=3] would you please tell me more details? Thanks, Heming > On Thu, May 7, 2009 at 5:07 PM, <hc2428 at columbia.edu> wrote: >> However, I am a little confused with these output. In Both anders-aa >> and steens-aa, XX and YY should stay in the same AliasSet, and their >> alias relationship should be May Alias, right? > > %XX and %YY are the results of alloca instructions...
2009 May 07
2
[LLVMdev] How to use the PoolDescriptor in ds-aa alias analysis?
Dear Staff, I am reading the paper "Making Context-sensitive Points-to Analysis with Heap Cloning Practical For The Real World", and I build the poolalloc module, and run the program in Figure 1 in this paper with -ds-aa alias analysis. Now I know that X and Y in the program would have distinct PoolDescriptors to make them disjoint data structures. However, how can we
2009 May 18
0
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
On Wed, May 13, 2009 at 1:36 PM, <hc2428 at columbia.edu> wrote: > Quoting Chris Lattner <clattner at apple.com>: > > Dear staff, >     I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12 > statically (compile all libraries statically to the executable) and > got the bc file, named it as mysqld.bc3. &gt...
2009 May 08
2
[LLVMdev] Some questions on the output formats of AliasSetTracker
Dear Staff, Here are some questions on the output formats of AliasSetTracker. The code is as below: int G1 = 9; int G2 = 5; int main() { int * XX; int * YY; XX = &G1; YY = XX; YY = &G2; XX = &G2; } The output for -anders-aa is: Alias Set Tracker: 5 alias sets for 4 pointer values. AliasSet[0xea6fb0,0] may alias, Mod/Ref 10 Call Sites: void ({ }*)*
2009 Jun 06
0
[LLVMdev] Can llvm-2.5 work with "-O1 -g"?
Dear staff, I need to get the line number and file name information of the source code for each instruction in *.bc file. I find that llvm-2.4 can not support "-O1 -g", which means if we are at O1 to O3 optimization level, we can not get any dbg.stoppoint inserted into the LLVM IR. However, our project requires us to get the line number and file name information of
2010 Jan 01
1
[LLVMdev] Can Interpreter handle clone() call (with CLONE_VM flag)?
Dear all, May I know whether Interpreter in llvm-2.6 can handle clone() call (with CLONE_VM flag)? Another small question is: since JIT only invokes the main() function in a program once, and does not have control to the execution while main() is running, what is the benefit of using JIT? -- Regards, Heming Cui -------------- next part -------------- An HTML attachment was scrubbed...
2010 Mar 24
1
[LLVMdev] How to add extern function declaratioin to llvm bc?
Dear all, I am wondering if there is some API to add extern function declaration to bc file. For example, as given below, I want to add the line "extern void foo();" to my bc file with some llvm methods, how can I do this, please? extern void foo(); // the llvm bc code is: declare void @_Z3foov(). How can I add this line to llvm bc using some llvm methods?
2009 Jun 06
3
[LLVMdev] addRequired(), Loop Unrolling
Hi, I am trying to set loop unrolling as a required pass. AU.addRequired<LoopUnroll>(); should I include any header file? How can I be possessive that "LoopUnroll" is the name I need ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090606/aaab7bd1/attachment.html>
2009 May 19
1
[LLVMdev] How to get line number and source file name for IR?
Dear Staff, I am asking this question: given a line of IR code in *.ll file, how can I know the corresponding line number and C/C++ source file name for this IR code? I am investigating some code patterns with LLVM IR, I need to know where this IR code come from (the line number in a source file name). An existing way is using -g option to compile my software, then I can
2009 Sep 27
5
[LLVMdev] A basicblock iterator bug in llvm
Dear developers: When I am doing basicblock pass, I meet a bug: there is an iterator "I" in a basicblock, and it is not pointing to the first instruction in this basicblock. However, "I--;" will fail by an assertion. The basic block ("I" is pointing to the second instruction) in test.ll: bb: ; preds = %bb1 %1 = call i32 (i8*, ...)* @printf(i8* noalias