Displaying 20 results from an estimated 6000 matches similar to: "[LLVMdev] bytecode -> native code"
2004 Nov 30
4
[LLVMdev] Trouble using llvm tools
On Tue, 30 Nov 2004, Tanu Sharma wrote:
> I have trouble using the llvm tools.Some of the errors are :
>
> $ llvm-dis prog.bc
> $ llvm-dis: Invalid Top Level Block Length! Type:1, Size:456 (Vers=0, Pos=12)
Can you explain how you generated this bytecode file? It looks corrupted
or something. Also, can you send the actual bytecode file itself?
Thanks!
-Chris
>
2005 Jul 21
1
[LLVMdev] execution time of bytecode and native
Hello All,
Thanks for the reply.I can generate the reports by compiling Spec through llvm, but that couldn't resolve my problem.
I m trying to determine execution time for the bytecode and native files , which are obtained as a result of running my pass over the original bytecode .I am running these experiments on spec benchmark.
In SPEC we have command line tools such as runspec where
2005 Jul 01
1
[LLVMdev] execution time of bytecode and native
Hello ,
I am compiling SPEC 2000 benchmarks with llvm .Got stuck with calculating "execution time" of all the .bc and native files.
The log for nightly test itself gives execution times but I am passing the bytecode files to my pass which gives another bytecode file.I have to calculate execution time of such bytecode and native files as well.If i simply do this:
time lli
2005 Jul 01
0
[LLVMdev] execution time of bytecode and native
On Thu, 30 Jun 2005, Tanu Sharma wrote:
> I am compiling SPEC 2000 benchmarks with llvm .Got stuck with
> calculating "execution time" of all the .bc and native files.
>
> The log for nightly test itself gives execution times but I am passing
> the bytecode files to my pass which gives another bytecode file.I have
> to calculate execution time of such bytecode and
2005 Feb 27
0
[LLVMdev] Problem in compilation (native option)
Thanks for replying .
I came across another problem while trying it.
The following compilation is not working: ( with the native option)
llvmgcc x.c -o a.out -Wl,-native
I get this error:
gccld: a.out.s: Can't destroy file: ut.s
How can I fix that ?
Thanks
Tanu
Andrew Lenharth <alenhar2 at cs.uiuc.edu> wrote:
On Sat, 2005-02-26 at 22:34 -0600, Chris Lattner wrote:
> On
2005 Feb 28
1
[LLVMdev] Problem in compilation (native option)
On Sun, 27 Feb 2005, Tanu Sharma wrote:
> Thanks for replying .
> I came across another problem while trying it.
> The following compilation is not working: ( with the native option)
>
> llvmgcc x.c -o a.out -Wl,-native
>
> I get this error:
>
> gccld: a.out.s: Can't destroy file: ut.s
>
> How can I fix that ?
This bug has been fixed in CVS, please update your
2004 Nov 30
0
[LLVMdev] Trouble using llvm tools
On Tue, 2004-11-30 at 08:58, Chris Lattner wrote:
> On Tue, 30 Nov 2004, Tanu Sharma wrote:
>
> > I have trouble using the llvm tools.Some of the errors are :
> >
> > $ llvm-dis prog.bc
> > $ llvm-dis: Invalid Top Level Block Length! Type:1, Size:456 (Vers=0, Pos=12)
>
> Can you explain how you generated this bytecode file? It looks corrupted
> or
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 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 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,
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 Sep 04
2
[LLVMdev] Doubt
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 bytecode and native code execution times after running my pass over them.I have modified
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 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 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
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 Feb 27
2
[LLVMdev] Measuring performance overhead
On Sat, 2005-02-26 at 22:34 -0600, Chris Lattner wrote:
> On Sat, 26 Feb 2005, Tanu Sharma wrote:
>
> > 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 ?
>
> Compile it with llvm to a native .o or .exe file, then run 'size' on it?
>
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 Feb 07
2
[LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)
On Mon, 7 Feb 2005, Tanu Sharma wrote:
> I have been trying to randomize blocks in a program and modified
> "BasicBlockPlacement.cpp" for the purpose but getting segmentation
> fault.I am not able to determine the problem.Can anyone please decrypt
> these error messages or suggest what might be the possible cause of
> failure?
I'd be happy to fix this, but I need
2005 May 31
4
[LLVMdev] Error while compiling spec benchmark
Hello,
I have been trying to compile the SPEC benchmark but have failed even after several attempts.The first error I get while trying to run is :
--------------------------------------------------------------------
Error loading program '../00000002/gzip_base.x86_linux.bc': Can't open file: ../00000002/gzip_base.x86_linux.bc