similar to: [LLVMdev] Runtime optimization using llvm

Displaying 20 results from an estimated 1300 matches similar to: "[LLVMdev] Runtime optimization using llvm"

2011 Sep 29
2
[LLVMdev] Instrumenting C/C++ programs
Hey guys, I have seen your interesting conversion. I am new for LLVM as well as clang compiler. I am going to use it now. it is quite difficult when someone starts it from scratch. But it is enjoyable and it is possible to familiarize with the environment by short time. Am gonna to use clang + llvm to generate AST from source code by using clang and to do high level transformation. Then I want to
2011 Sep 28
2
[LLVMdev] Instrumenting C/C++ programs
Hey Xiaoming, Thanks for those source codes. Can you please explain what this llvm-memory-profiling.patch does ? Thanks, Himanshu On Wed, Sep 28, 2011 at 6:49 AM, xiaoming gu <xiaoming.gu at gmail.com> wrote: > Hi, Himanshu. I once wrote an LLVM IR-based memory profiling > pass. Basically, I followed the code for EdgeProfiling. The source code is > enclosed here, which worked
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
Hello, What you're describing is basically the parsing and codegen portions of clang. I'd suggest reading through the code there and posting to clang-dev if you have any specific questions. The clang devs are more likely to see your questions there as not all of them also hang out here. Regards, Jim On Sep 28, 2011, at 8:28 PM, eyasu getahun <eya.get at gmail.com> wrote: >
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
The patch file is a diff file generated by "svn diff". It is about other modifications such as adding some lines to make files to make the added .c and .cpp files compiled. You may apply the patch file to LLVM source code by using a "patch" command or make the changes manually by reading the patch file. Xiaoming On Wed, Sep 28, 2011 at 6:05 AM, Himanshu Shekhar
2011 Sep 27
1
[LLVMdev] Instrumenting C/C++ programs
Hey John, Thank you for the detailed reply. I tried to figure out myself which IR should I use for my purpose ( Clang's Abstract Syntax Tree (AST) or LLVM's SSA Intermediate Representation (IR). ), but couldn't really figure out which one to use. Here is what I m trying to do. Given any C/C++ program (like the one given below), I am trying to insert calls to some function, before and
2011 Sep 28
0
[LLVMdev] Instrumenting C/C++ programs
Hi, Himanshu. I once wrote an LLVM IR-based memory profiling pass. Basically, I followed the code for EdgeProfiling. The source code is enclosed here, which worked with LLVM 2.8. Hope it is helpful. MemoryProfiling.cpp---the instrumentation pass, which inserts profiling function calls into the original program MemoryProfiling.c---the profiling library containing the profiling calls
2011 Sep 23
3
[LLVMdev] Instrumenting C/C++ programs
I just read that LLVM project could be used to do static analysis on C/C++ codes using the analyzer Clang which the front end of LLVM. I wanted to know if it is possible to extract all the accesses to memory(variables, local as well as global) in the source code using LLVM. Is there any inbuilt library present in LLVM which I could use to extract this information. If not please suggest me how to
2011 Oct 19
1
[LLVMdev] Issues with running the LLVMHello Pass on Windows
Hi, I was trying to write a LLVM Pass, so I first read http://llvm.org/docs/WritingAnLLVMPass.html#quickstart about how to write a llvm pass. Here, under setting up the build environment settings, it was instructed to configure and build LLVM directly inside the LLVM source tree rather than in a separate objects directory. Now, my LLVM source tree is C:\LLVM\llvm-2.9 while my build is in
2012 Jun 12
2
[LLVMdev] output -stats to file.txt
Yes, I've tried and it did not work On Tue, Jun 12, 2012 at 4:03 PM, Villmow, Micah <Micah.Villmow at amd.com>wrote: > Have you tried "opt -stats bitecode.bc > test.txt"?**** > > ** ** > > *From:* llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] *On > Behalf Of *Rafael Parizi > *Sent:* Tuesday, June 12, 2012 11:36 AM > *To:*
2012 Jun 12
0
[LLVMdev] output -stats to file.txt
Have you tried "opt -stats bitecode.bc > test.txt"? From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Rafael Parizi Sent: Tuesday, June 12, 2012 11:36 AM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] output -stats to file.txt Hi! I'm estimating the number of basic blocks of the a program using "opt -stats bitecode.bc" I would
2012 Jun 12
2
[LLVMdev] output -stats to file.txt
Hi! I'm estimating the number of basic blocks of the a program using "opt -stats bitecode.bc" I would like to save the output of the -stats opt into a file .txt. How can I do this? -- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/cc314c37/attachment.html>
2012 Jun 12
0
[LLVMdev] output -stats to file.txt
Add an optimization level and you get information. D:\ >opt -stats temp.bc -o tmp.bc2 D:\ >opt -stats temp.bc -o tmp.bc2 -O3 ===-------------------------------------------------------------------------=== ... Statistics Collected ... ===-------------------------------------------------------------------------=== 1 cgscc-passmgr - Maximum CGSCCPassMgr iterations on
2012 Jun 12
1
[LLVMdev] output -stats to file.txt
I already did. What I need is to have this output in a txt file. On Tue, Jun 12, 2012 at 5:31 PM, Villmow, Micah <Micah.Villmow at amd.com>wrote: > Add an optimization level and you get information.**** > > D:\ >opt -stats temp.bc -o tmp.bc2**** > > ** ** > > D:\ >opt -stats temp.bc -o tmp.bc2 -O3**** > > >
2010 Sep 29
4
[LLVMdev] bitcode / bytecode
Hi list, As long as I know English the word "bit" is a "small pice", . Why in set of documentation ir is "bytecode", in other set or llvm source is "bitecode"? What is the right? Different people call the same thing such differently. -- best regards Ariel -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Nov 02
0
[LLVMdev] debugger doesn't go inside the bitecode file
Hello, I am using gdb to debug the -instcount pass. The steps I followed were: 1. gdb opt 2. break llvm::PassManager::run 3. run -stats -analyze -instcount filename.bc I got the bc file using -emit-llvm option as following: llvm-gcc -O3 -emit-llvm filename.c -c -o filename.bc But when I started debugging, the debugger never really went into my bitecode file, filename.bc and it returned me the
2009 Jun 11
1
[LLVMdev] Output to a DLL
When you say "spit bitecode from the JIT the first time, load it on subsequent sessions" : - do you want to write the IR in a file via BitcodeWriter and re-read it via BitcodeReader ? (you will pay the cost of native code emission on each load ?) - do you want to write the native code ? In that case, how do you retrieve the size of the buffer prepared by the
2009 Jun 11
0
[LLVMdev] Output to a DLL
"Nicolas Capens" <nicolas at capens.net> writes: Hello Nicolas. > I'd like to be able to write JIT-compiled code to a Windows DLL. I have no > idea where to start though. Does LLVM already offer some support for > this? Nope. Don't hold your breadth waiting for it. It is far from trivial to do. I don't know your requirements, but mine is to avoid
2005 Jun 23
2
Speex and DS
Hello everyone I've a following problem with the speex codec. I'm developing application that is supposed to read sounds from the microphone with DirectSoundCapture. Unfortunately when I want to compress and decompress the sound buffer from DirectSound I only have jitter. Maybe you have some code samples how to compress standard DS buffers: LPDIRECTSOUND8 lpDS = NULL;
2010 Sep 29
1
[LLVMdev] Fwd: bitcode / bytecode
Anyone, can you say what was the reason to rename bytecode? I am still interesting in 2010/9/29 Duncan Sands <baldrick at free.fr> Hi Ariel, > As long as I know English the word "bit" is a "small pice", . Why in set of > documentation ir is "bytecode", in other set or llvm source is "bitecode"? > What is the right? Different people call the
2011 Nov 14
0
[LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float
Hello Devang, Please find attached the preprocessed source file and the LLVM bitecode. Hope this will help. Thanks Galina On Mon, Nov 14, 2011 at 9:48 AM, Devang Patel <dpatel at apple.com> wrote: > The buildbot > @ http://lab.llvm.org:8011/builders/llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float/builds/850 > is failing with following assertion failure. Is it possible for