similar to: [LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Is it possible to map an LLVM instruction to x86 assembly instructions?"

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 LLVM instructions to a set of > assembly
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?
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...
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 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 Dec 31
3
[LLVMdev] How does JIT/lli work with bc file?
Dear all, I hope you enjoy your christmas! Recently I started to play lli with bc. I found that the lli only calls the main() function in bc file and then does nothing before the main() function returns, which means that the JIT::runFunction() function is involved only once with the main() function in bc file. If this was true, then lli does not have any control to the execution of program.
2009 Dec 31
0
[LLVMdev] How does JIT/lli work with bc file?
On Wed, Dec 30, 2009 at 7:53 PM, Heming Cui <heming at cs.columbia.edu> wrote: > Dear all, >      I hope you enjoy your christmas! Recently I started to play lli with > bc. I found that the lli only calls the main() function in bc file and then > does nothing before the main() function returns, which means that the > JIT::runFunction() function is involved only once with the
2009 Dec 31
2
[LLVMdev] How does JIT/lli work with bc file?
Hi Eli, Thanks for your reply. If I add -force-interpreter to lli, then it seems that it can not run external function like printf or malloc. Is there any easy way to solve this problem? On Wed, Dec 30, 2009 at 11:26 PM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Wed, Dec 30, 2009 at 7:53 PM, Heming Cui <heming at cs.columbia.edu> > wrote: > > Dear all, >
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 the bc file, named it as mysqld.bc3. > I use the command to pass: > > opt
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 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 the debug information. Devang's been hard at work recoding
2009 Dec 31
0
[LLVMdev] How does JIT/lli work with bc file?
On Thu, Dec 31, 2009 at 2:26 AM, Heming Cui <heming at cs.columbia.edu> wrote: > Hi Eli, >     Thanks for your reply. If I add -force-interpreter to lli, then it seems > that it can not run external function like printf or malloc. Is there any > easy way to solve this problem? Does the LLVM configure find libffi? -Eli
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. >     I use the command to pass: > > opt -load
2010 Jan 01
1
[LLVMdev] How does JIT/lli work with bc file?
Hi Eli, I think the llvm configure has already configured with ffi. ../llvm-2.6/configure -help | grep ffi --enable-libffi Check for the presence of libffi (default is YES) In addition, the printf() can work in program, reflecting that libffi is working, right? How can I make Interpreter work with getpid(), fork(), and clone()? On Thu, Dec 31, 2009 at 2:33 AM, Eli
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 ({ }*)*
2010 Aug 08
1
[LLVMdev] What is the gcc optimization flag for "ENABLE_OPTIMIZED=1" in LLVM?
Dear LLVM developers, I am wondering the gcc optimization flag for "ENABLE_OPTIMIZED=1" in LLVM is -O2 or -O3. And what is the flag if I set "ENABLE_OPTIMIZED=0"? If I want to manually modify the flag for "ENABLE_OPTIMIZED=1" in LLVM, what file should I refer to? -- Regards, Heming Cui -------------- next part -------------- An HTML attachment was
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 the C expressions "&XX" and
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 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>
2011 Jan 25
1
[LLVMdev] Can CallGraphSCCPass distinguish different function pointer types in CallGraphNode?
Dear folks, I am trying to handle function pointers at call graph, and I found that the CallGraphSCCPass makes function pointers as external node, which is actually an empty CallGraphNode (NULL pointer)? If I want to distinguish the function pointer types in the call graph (and I also want the SCC order in CallGraphSCCPass), can I do that easily? Or I have to inheritate the