similar to: [LLVMdev] Instrumenting C/C++ programs

Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Instrumenting C/C++ programs"

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 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
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 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 Nov 17
1
[LLVMdev] Instrumenting C/C++ programs
Hello guys, I am trying to know how clang generates AST from source code. But it is not clear for me how clang generates it. Can you tell me which class or function of clang is building/generating AST? I want to see the specific function or algorithm of clang which generates AST. Thanks in advance for your idea. On Thu, Sep 29, 2011 at 1:22 PM, Jim Grosbach <grosbach at apple.com> wrote:
2011 Nov 21
1
[LLVMdev] ModulePass and Strings
Hi everybody, I am writing an LLVM pass and I want to iterate over the whole module (including global variables), that's why I use ModulePass instead of FunctionPass. But I don't know how to do it. Using Module::iterator seams to iterate only over functions. But I need to iterate over all the Instructions in the module. How should I do such an iteration? Also, I would like to find all the
2010 Dec 07
2
[LLVMdev] own source transformation
Hi, I'm a student who is going to make a countermeasure for dangling pointers in c for his thesis. I need to make my source transformation using llvm. Nobody in my university already used LLVM. I already read a some documentation about llvm but i'm still lost. Do there exist some " examples/Tutorials" for making small source transformations. Or is there somebody who can help
2011 Oct 31
4
[LLVMdev] Instrument examples
Hi, I am new to LLVM. I want to use LLVM to instrument codes, such as function calls and basic blocks. But I don't know where to start. I wonder if there are any example codes to show how to instrument codes in the IR level? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Apr 07
1
[LLVMdev] LLVM Tutorials
Hi, Could anyone point me to some simple examples/tutorials for writing instrumentation transform passes. Essentially adding instructions to basic blocks, such as print statements, load, add, store. I have tried going through profiling transforms, and was wondering if there is any better documented tutorial etc ? Thanks Nipun -------------- next part -------------- An HTML attachment was
2010 Mar 31
1
[LLVMdev] summer of code idea — checking bounds overflow bugs
Sounds an good idea, is that means lowerinng down the SAFECode project from the higher level(clang)to lower level for an more general work on bound check? I aslo want to know is it possoble to detecting memory leak at the very low(llvm ir) level to detecting memory leaks? Or at llvm ir level to providing an stackfull hooks? It's very useful to have such an feature. The stack hooks can help us
2012 Apr 20
2
[LLVMdev] llvm doxygen down?
Hi, all. I find out that the doxygen website (http://llvm.org/docs/doxygen) is not available now. Does anyone know when it will be back? Thanks. Xiaoming -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120419/558310e0/attachment.html>
2012 Apr 20
3
[LLVMdev] llvm doxygen down?
John, it still doesn't work for me. I'm in upstate new york. And one of my friends in bay area couldn't see the webpage either. Xiaoming On Thu, Apr 19, 2012 at 8:27 PM, John Criswell <criswell at illinois.edu>wrote: > On 4/19/12 7:15 PM, xiaoming gu wrote: > > Hi, all. I find out that the doxygen website (http://llvm.org/docs/doxygen) > is not available now. Does
2018 Jan 02
3
Help with first S3-class
Hi, I am trying to understand S3 classes. I have read several tutorials about the topics but I am still a bit confused. I guess it is because it is so different from Java OOP. I have pasted my attempt at creating a bank-account class below and my problems are: 1. What should be added some plot.default() calls the account$plot() method ? 2. What should the account$plot() be implemented to
2010 May 12
2
how to profile R interpreter?
Hi, all. Does anyone know how to profile R interpreter? I've tried gprof but it doesn't work. Thanks. Xiaoming [[alternative HTML version deleted]]
2012 Apr 20
2
[LLVMdev] Should repetitive basic blocks be removed in the results of LoopBase::getExitBlocks()?
Hi, all. I'm using void LoopBase::getExitBlocks (SmallVectorImpl< BlockT * > &ExitBlocks) const to get all exit blocks for a loop. The problem I find with this API is that it returns repetitive basic blocks in certain situations. Should repetitive basic blocks be removed? I have an example to show the problem. Following is the source code and the CFG is enclosed. int main() { int
2012 Apr 20
0
[LLVMdev] llvm doxygen down?
On 4/19/12 7:15 PM, xiaoming gu wrote: > Hi, all. I find out that the doxygen website > (http://llvm.org/docs/doxygen) is not available now. Does anyone know > when it will be back? Thanks. It works for me. Is it working for you now? -- John T. > > Xiaoming > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at
2012 Apr 09
1
[LLVMdev] How to dump a .bc file before/after a specific opt pass?
Hi, all. I'm adding a new pass in opt. To make the debugging easier, I'm trying to draw the CFG before and after the new pass. Is there any an option to dump the .bc file before/after a specific opt pass? Thanks. Xiaoming -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Apr 20
0
[LLVMdev] llvm doxygen down?
On 4/19/12 7:40 PM, xiaoming gu wrote: > John, it still doesn't work for me. I'm in upstate new york. And one > of my friends in bay area couldn't see the webpage either. Try http://llvm.org/doxygen. That's the link from the llvm.org main page. The docs subdirectory is probably undergoing change due to Daniel Dunbar's work. -- John T. -------------- next part