similar to: [LLVMdev] Questions !!

Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Questions !!"

2005 Apr 08
0
[LLVMdev] Questions !!
On Fri, Apr 08, 2005 at 08:37:03AM -0700, Tanu Sharma wrote: > Regarding basic block size I wish to calculate both: > > - The number of bytecode bytes Use the llvm-bcanalyzer tool, it will tell you number of bytes per function and number of basic blocks. If you want number of bytes per basic block, check out what it does, and calculate basic blocks separately. > - The number of
2005 Apr 07
1
[LLVMdev] Questions !!
Thanks for the reply, Actually I m aiming towards determining two values: - number of basic blocks in a program For this I have used Statistic facility provided in llvm and increasing the counter for each basic block for each function.but for some reason , I m getting different number everytime !! Is Statistic is the right way to do it ? - Average basic block size in a program ( in bytes)
2005 Mar 09
2
[LLVMdev] Question
This is exactly what i m trying : opt -load /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so -hello <helloprog.bc> /dev/null Tanu Chris Lattner <sabre at nondot.org> wrote: On Wed, 9 Mar 2005, Tanu Sharma wrote: > I wrote a pass which randomizes basic blocks and insert new block.But > when i run another pass over it which simply lists all basic blocks I > don't get
2005 Feb 17
4
[LLVMdev] Branching to Entry block
On Thu, 17 Feb 2005, Tanu Sharma wrote: > I created a new block and inserted it into the present basic block list > , but I get this error: > > opt: BasicBlock.cpp:83: virtual llvm::BasicBlock::~BasicBlock(): Assertion `getParent() == 0 && "BasicBlock still linked into the program!"' failed. > > The program completes its task and i get this in the end. I am
2005 Jun 02
4
[LLVMdev] Randomizing Functions & Global variables
By randomization of functions I mean the manner in whch they are called , so that has to do with address.I wish to randomize the order of calls made to functions when a program is run. Reid Spencer <reid at x10sys.com> wrote:Can you explain a little bit more about what you mean by "randomize" functions or global variables? What aspect of them do you want to randomize? Their
2005 Jun 02
0
[LLVMdev] Randomizing Functions & Global variables
Tanu, You've seen ? :- http://www.st.cs.uni-sb.de/~lindig/src/quest/ Don't know whether it is applicable to what you are trying to achieve but I thought I should point it out in case it is useful to you and you have not seen it. Aaron ----- Original Message ----- From: Tanu Sharma To: LLVM Developers Mailing List Sent: Thursday, June 02, 2005 9:53 PM Subject:
2004 Nov 10
1
[LLVMdev] Help : CFG in LLVM ( Implementation)
On Wed, Nov 10, 2004 at 06:39:12AM -0800, Tanu Sharma wrote: > I am a new user of LLVM and have been trying to find how Control Flow > Graphs are implemented in it.I wish to get access to the internal > structures of CFG and learn how LLVM makes them. LLVM does not need to construct a CFG, because the CFG is an explicit integral part of the program representation. Every BasicBlock ends
2005 Jun 02
4
[LLVMdev] Randomizing Functions & Global variables
I would try that ..Thanks Another thing that I want to do is to randomize functions within a program (or file ), whatever is easier to do in llvm .Also please tell me how can I randomize global variables ? Thanks TS Chris Lattner <sabre at nondot.org> wrote: On Mon, 30 May 2005, Tanu Sharma wrote: > I have been trying to compile the SPEC benchmark but have failed even > after
2005 Jun 02
0
[LLVMdev] Randomizing Functions & Global variables
On Thu, Jun 02, 2005 at 02:12:22PM -0700, Tanu Sharma wrote: > By randomization of functions I mean the manner in whch they are > called , so that has to do with address.I wish to randomize the order > of calls made to functions when a program is run. How would you "randomize the order of calls made to functions when a program is run" without changing the semantics of the
2005 Jun 03
1
[LLVMdev] Randomizing Functions & Global variables
Ms Brukman, Thanks for your reply.Just clarifying my question.I actually wanted to randomize the static layout of function code in the executable file.Sorry for writing in confusing manner. T Misha Brukman <brukman at cs.uiuc.edu> wrote: On Thu, Jun 02, 2005 at 02:12:22PM -0700, Tanu Sharma wrote: > By randomization of functions I mean the manner in whch they are > called , so
2005 Apr 26
1
[LLVMdev] Compilation without optimization
Thanks !! But if i generate a .bc file like this and then run my pass over it like this : opt -load /home/llvm-cvs/llvm/Debug/lib/LLVMHello.so -hello <helloprog.bc> class_prog.bc Will the new .bc file (class_prog.bc) be also without optimizations ?opt also does some optimizations.Can I control them ? Thanks Tanu Chris Lattner <sabre at nondot.org> wrote: On Mon, 25 Apr 2005,
2004 Nov 10
0
[LLVMdev] Help : CFG in LLVM ( Implementation)
Hello, I am a new user of LLVM and have been trying to find how Control Flow Graphs are implemented in it.I wish to get access to the internal structures of CFG and learn how LLVM makes them. Is there any existing tool that LLVM provides that makes CFG out of bytecode ? Thanks, Tanu --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
2005 Apr 25
0
[LLVMdev] Compilation without optimization
On Mon, 25 Apr 2005, Tanu Sharma wrote: > Thanks for the reply. > > I wish to compile without optimizations ( the option being turned off ) > but still generate bytecode file. > > Options -S , -c removes optimizations but I also need .bc file to > experiment and use further. Passing "-Wa,-disable-opt -Wl,-disable-opt" will disable *all* cleanup and optimizations
2005 Apr 25
2
[LLVMdev] Compilation without optimization
Thanks for the reply. I wish to compile without optimizations ( the option being turned off ) but still generate bytecode file. Options -S , -c removes optimizations but I also need .bc file to experiment and use further. How should I do it? Thanks -TS Chris Lattner <sabre at nondot.org> wrote: On Sat, 23 Apr 2005, Tanu Sharma wrote: > I got very useful replies from dev list
2005 Feb 17
0
[LLVMdev] Branching to Entry block
Thanks a lot for replying...but I am not doing any deleting or removing node ...I am trying to insert a "new" entry node in an existing list. In another reply I understood (also mentioned on the site) that no other block can branch to the entry block. How do I achieve this ? Is it feasible?Let me know if there is any example. Thanks again, Tanu Chris Lattner <sabre at
2005 Sep 05
0
[LLVMdev] Doubt
On Sun, 4 Sep 2005, Tanu Sharma wrote: > > I have a doubt. > > This is an excerpt of the raw report I get after running Spec benchmarks > through llvm-test.I am trying to calculate the program execution > time.Does the output result in bold corresponds to "lli time" in > Makefile.spec ? I am not interested in llc, jit or cbe.I simply need the > normal
2004 Nov 30
0
[LLVMdev] Trouble using llvm tools
Thanks for replying, Yes, I think too that the bytecode file is corrupted. This is the file : -------------------------------------------------------------------------------------------------------------------------
2005 Feb 27
2
[LLVMdev] Measuring performance overhead
Thanks for the reply :-) I am actually looking for ways to determine "size" of code segment when the program is in native code. Any suggestions to do that ? Tanu Chris Lattner <sabre at nondot.org> wrote: On Fri, 25 Feb 2005, Tanu Sharma wrote: > > Hey, > > I have written a pass and wishes to measure its performance overhead > after running it over a
2005 Apr 23
1
[LLVMdev] Error while compiling .cpp
Thanks a lot for replying. I would check my system gcc configuration. I got very useful replies from dev list regarding my earlier question but yet not able to determine block size. That I want in total size of a block in a function in bytes and not just the number of instructions.LLVM Tool gives most of the information e.g function bytes etc....but not individual block. Thanks Tanu Chris
2005 Feb 15
2
[LLVMdev] Entry block (Randomisation)
Tanu Sharma wrote: > Hello, > > In an attempt to randomise the basic blocks in a function, is it > possible that I can randomise the entry block as well? And maybe insert > some instructions in the pass to call entry block while running the > program ? > > Is it feasible? > > What does entry block consist of ? The entry block, by definition, is the first basic