search for: imhimanshu91

Displaying 13 results from an estimated 13 matches for "imhimanshu91".

2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
...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 <imhimanshu91 at gmail.com> wrote: > 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 o...
2011 Sep 29
2
[LLVMdev] Instrumenting C/C++ programs
...ke 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 <imhimanshu91 at gmail.com>wrote: > >> 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...
2011 Nov 17
1
[LLVMdev] Instrumenting C/C++ programs
...t; 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 <<imhimanshu91 at gmail.com> >> imhimanshu91 at gmail.com> wrote: >> >>> Hey Xiaoming, Thanks for those source codes. Can you please explain what >>> this llvm-memory-profiling.patch does ? >>> >>> Thanks, >>> Himanshu >>> >>> >&g...
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
...ations 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 <imhimanshu91 at gmail.com>wrote: > 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, Him...
2011 Sep 28
2
[LLVMdev] Instrumenting C/C++ programs
...-the profiling library containing the profiling > calls > llvm-memory-profiling.patch---the other modifications > notes.txt---some information collected when I was working on this > profiling pass > > Xiaoming > > On Tue, Sep 27, 2011 at 7:13 PM, Himanshu Shekhar <imhimanshu91 at gmail.com>wrote: > >> 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 rea...
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
2011 Oct 31
1
[LLVMdev] Runtime optimization using llvm
Hello, I am getting to know how the Runtime Optimization feature of LLVM works and how I can use it. I want to know how I could print the results of any analysis and transformation pass. Say, I have a program written in c and I ran the edge-profiling pass onto it. Now I want to see the result. How could I do it? Also if I happen to change one of the passes inside folder
2011 Sep 28
0
[LLVMdev] Instrumenting C/C++ programs
...iginal program MemoryProfiling.c---the profiling library containing the profiling calls llvm-memory-profiling.patch---the other modifications notes.txt---some information collected when I was working on this profiling pass Xiaoming On Tue, Sep 27, 2011 at 7:13 PM, Himanshu Shekhar <imhimanshu91 at gmail.com>wrote: > 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...
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 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 Aug 16
3
[LLVMdev] .so file creation for new passes on Visual Studio
Hi! I was trying to run an already build LLVM-pass ( the Hello world ) on Visual Studio. I could locate the The Hello world pass sources in llvm/lib/Transform/Hello/*.But when I compiled llvm using the command "cmake -G "Visual Studio 10" ..\llvm" , I couldn't find the LLVMHello.so file in "build_directory/Debug/lib/LLVMHello.so" neither in
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
2011 Oct 29
2
[LLVMdev] llvmc: Can't find program 'llvm-g++'
I am getting this error while using the command "llvmc -O3 -Wall hello.cpp" where hello.cpp is some cpp file on my machine. llvmc is the driver calling a bunch of tools like llvm-g++, opt, llc etc. I think the llvmc tool could not probably locate the llvm-g++ tool. I would like to know where should I specify the path to llvm-g++ for llvmc to find them. Also can someone give me the link