Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Getting basic block address offset from its parent function"
2015 Feb 28
0
[LLVMdev] Getting basic block address offset from its parent function
On 2/27/15 6:30 PM, Ziqiang Patrick Huang wrote:
> Hi, all
>
> Is there a way of getting the basic block offset from its parent
> function ?
At the LLVM IR level, no. At the code generator layer
(MachineFunctionPass layer or the MC layer), probably yes.
>
> What I'm trying to do is to get an execution count of each basic
> blocks, so I need to know the starting
2015 Feb 28
2
[LLVMdev] Getting basic block address offset from its parent function
Hi John
Thanks for your suggestions, they all sound reasonable to me. The way I'm
thinking right now is to write a MachineFuncionPass that iterate through
each MachinBasicBlock, for each MBB, adds up the instructions counts of
previous MBBs, that number multiply by 4 should be the offset of that MBB
from its MachineFunction. In order to correctly count the instructions,
this pass should be
2015 Mar 01
1
[LLVMdev] Getting basic block address offset from its parent function
On Sat, Feb 28, 2015 at 7:39 AM, Ziqiang Patrick Huang <
ziqiang.huang1001 at gmail.com> wrote:
> Hi John
>
> Thanks for your suggestions, they all sound reasonable to me. The way I'm
> thinking right now is to write a MachineFuncionPass that iterate through
> each MachinBasicBlock, for each MBB, adds up the instructions counts of
> previous MBBs, that number multiply
2014 Jan 03
2
[LLVMdev] Tracing values in llvm IR
You will have to insert callinst to tracing functions immediately after the value is produced, not at the entry points. Giri code has many such examples of how to do this.
Thanks,
Swarup.
________________________________
From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Jin Huang [54jin.huang at gmail.com]
Sent: Thursday, January 02, 2014 9:47 PM
To: llvmdev at
2014 Jan 02
2
[LLVMdev] Tracing values in llvm IR
Hi Jin Huang,
The updated Giri code is available at https://github.com/liuml07/giri<https://github.com/liuml07/giri.>. This will give you an idea of how to instrument the program to trace different values. You can modify the code to achieve your goals.
-Swarup.
________________________________
From: Criswell, John T
Sent: Thursday, January 02, 2014 2:12 PM
To: Jin Huang; llvmdev at
2014 Jan 03
2
[LLVMdev] Tracing values in llvm IR
Thank you , James.
But this way needs to determine whether the instruction is a LOAD/STORE
,and if I want to preserve the operations on these variables for further
dynamic symbolic execution usage(just like KLEE ,but it's a static analysis
,not dynamic),I had to backtrace instructions ,this may be not very
efficient if the operation is very complex!
-Jin Huang
2014/1/3 Jin Huang
2013 Jan 22
2
[LLVMdev] Dynamic Profiling - Instrumentation basic query
On 1/22/13 12:07 PM, Sahoo, Swarup Kumar wrote:
> Hi John and Silky,
>
> I can see a copy of 'giri' slicing project branch here http://llvm.org/viewvc/llvm-project/giri/. Though it may be little older, it will work I think. You can look at the code to see how we do the instrumentation.
The giri project is supposed to contain both the static slicing code and
the dynamic
2014 Aug 18
2
[LLVMdev] generating a dynamic callgraph with llvm-prof
Yes, the latest version can be downloaded from here https://github.com/liuml07/giri . The LLVM instrumentation code is in TracingNoGiri.cpp<https://github.com/liuml07/giri/blob/master/lib/Giri/TracingNoGiri.cpp> file and runtime code in Tracing.cpp.
You may need to delete other unnecessary instrumentation code which you don't need.
Thanks,
Swarup.
________________________________
2013 Jan 22
0
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Oh, OK. I didn't check the code. I think it only contains your flow tracking analysis code, isn't it.
Our 'Giri' project was completely separate from it. Should we merge it with this or keep it as a separate project?
-Swarup.
________________________________________
From: John Criswell [criswell at illinois.edu]
Sent: Tuesday, January 22, 2013 12:12 PM
To: Sahoo, Swarup Kumar
Cc:
2014 Jan 02
3
[LLVMdev] Tracing values in llvm IR
Hi, everyone.
I want to writing a Pass to get the variable value while the program is
running ,the basic idea is to insert an STL map in the program ,and get
every value and address a program use ,but whether it's possible to do this
by transforming the llvm IR?
I didn't find any useful functions to get a variable's address in LLVM IR
.It seems that the IR is an SSA form and we can
2013 Jan 22
3
[LLVMdev] Dynamic Profiling - Instrumentation basic query
On 1/13/13 11:06 PM, Criswell, John T wrote:
> There is code that does this for older versions of LLVM. I believe it is in the giri project in the LLVM SVN repository. I can look into more details when I get back from vacation. Swarup may also be able to provide information on the giri code.
I took a quick look, and the dynamic slicing code doesn't appear to be
checked into the giri
2012 Jan 09
3
[LLVMdev] Dynamic Analysis
Hi,
I want to find the dynamic slice of a given code. Is this already
implemented in LLVM?. If not which functions are there in the LLVM to
do dynamic analysis.
2013 Jan 22
0
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi John and Silky,
I can see a copy of 'giri' slicing project branch here http://llvm.org/viewvc/llvm-project/giri/. Though it may be little older, it will work I think. You can look at the code to see how we do the instrumentation.
Thanks,
Swarup.
________________________________________
From: John Criswell [criswell at illinois.edu]
Sent: Tuesday, January 22, 2013 10:29 AM
To:
2014 Aug 17
2
[LLVMdev] generating a dynamic callgraph with llvm-prof
One can use "-insert-edge-profiling" with opt to collect general metrics
(frequency of function execution, frequency of basic block execution). But
I'd like to record all call information. So every time a function call is
made, I'd like to record [calling function name, callee function name]
Is this feasible with with llvm-prof and any of the existing profiling
options?
2010 Mar 10
4
[LLVMdev] glod plugin use
Hi,
I was trying to use gold plugin to compile and run some of my passes on some large softwares like mysql, apache etc. When I compile using llvm-gcc, everything works fine. But, when I followed the instructions on http://llvm.org/docs/GoldPlugin.html#build to use gold plugin, I got errors like:
/home/vadve/ssahoo2/local/bin/ld: error: modules/standard/libstandard.a: no archive symbol table
2012 Jan 09
0
[LLVMdev] Dynamic Analysis
Dear Tarun,
Swarup Sahoo and I wrote some LLVM passes for dynamic slicing for LLVM 2.6. I believe we had planned to make the code publicly available as part of the Giri project (http://llvm.org/viewvc/llvm-project/giri/trunk), but due to other commitments, we have not moved the code into that SVN repository yet.
Let me check with Vikram and Swarup to see about getting a copy of the code to you.
2010 Mar 11
0
[LLVMdev] glod plugin use
Swarup Kumar Sahoo wrote:
> Hi,
> I was trying to use gold plugin to compile and run some of my passes on some large softwares like mysql, apache etc. When I compile using llvm-gcc, everything works fine. But, when I followed the instructions on http://llvm.org/docs/GoldPlugin.html#build to use gold plugin, I got errors like:
>
> /home/vadve/ssahoo2/local/bin/ld: error:
2012 Oct 17
3
[LLVMdev] Using Clang LTO/gold plugin to build clang
Hi,
I was trying to build clang (svn head version) using clang-3.1 version. I am building a debug version using LTO/gold plugin. It is crashing with signal 9 when trying to link the bitcode files to build the executable. I am not sure, if this is a bug or just a memory issue. Has anyone done anything similar or noticed similar behavior? Any help would be welcome.
Thanks,
Swarup.
2010 Mar 11
3
[LLVMdev] gold plugin use
>
>> Yes, ar and nm actually take -plugin option and if I pass this option, then I don't get these errors. But, llvm-gcc doesn't automatically pass this option to ar.
>
>You probably just need to copy the gold plugin to
>$PREFIX/lib/bfd-plugins. Let me know if that works. If not I will
>check if there is a bug in the plugin search in binutils.
There is no problem in
2012 Oct 17
0
[LLVMdev] Using Clang LTO/gold plugin to build clang
Two suggestions:
- Use a 64-bit operating system.
- You could disable the LTO optimizations by commenting out a few
lines in tools/lto/LTOCodeGenerator.cpp to determine if the problem is
a pass or with LTO itself.
On Wed, Oct 17, 2012 at 10:38 AM, Sahoo, Swarup Kumar
<ssahoo2 at illinois.edu> wrote:
> Hi,
>
> I was trying to build clang (svn head version) using clang-3.1