Displaying 20 results from an estimated 900 matches similar to: "[LLVMdev] Questions on writing a pass that adds instrumentation code"
2008 Feb 07
2
[LLVMdev] Problems with instrumentation
Hi,
I'm trying to instrument llvm bytecodes using opt. I performed the following
commands:
llvm-gcc -g -emit-llvm test.c -c -o test.bc
opt -insert-edge-profiling test.bc -o output.bc
llc output.bc -o output.s
gcc output.s -o test.out
However, it can't find symbol llvm_start_edge_profiling.
/tmp/ccw7GH4c.o: In function `main':
/home/raul/LLVM/tests//test.c:8: undefined reference
2013 Jan 13
4
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi,
I am new to LLVM, and would like to write a dynamic profiler, say which prints out the load address of all the load instructions encountered in a program.
>From what I could pick up, edge-profiler.cpp increments a counter dynamically which is somehow dumped onto llvmprof.out by profile.pl
Could anyone explain me how this works? Can I instrument the code to dump out the load addresses or
2013 Jan 16
2
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi Alastair,
Thank you so much for the information on the tools. Actually, I need to
analyze which sections of code are prone to misses and mis predicts, and
would have to eventually instrument the code.
I was able to instrument and call an external function, but faced an issue
while passing an argument to the function. I am following EdgeProfiling.cpp
but couldn't figure out the problem.
2014 Feb 18
3
[LLVMdev] How to codegen an LLVM-IR that has dynamic arrays in it?
Hi Fellows,
Is there a way to allocate dynamic array within an LLVM IR file
from my code generator? Say., how to create an array type with a size
determined through a global variable. Symbolically, something like below:
Value *sz = Mod->getOrInsertGlobal("SIZE", Int32Ty);
Type *ArrayTy = ArrayType::get(FloatTy, sz)
2013 Jan 15
0
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi Silky,
On 14/01/13 01:47, Silky Arora wrote:
> I need to profile the code for branches (branch mis predicts
> simulation), load/store instructions (for cache hits/miss rate), and a
> couple of other things and therefore, would need to instrument the code.
> However, I would like to know if writing the output to a file would
> increase the execution time, or is it the profiling
2013 Jan 14
2
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi,
@Alastair: Thanks a bunch for explaining this so well. I was able to write
a simple profiler, and run it.
I need to profile the code for branches (branch mis predicts simulation),
load/store instructions (for cache hits/miss rate), and a couple of other
things and therefore, would need to instrument the code.
However, I would like to know if writing the output to a file would
increase the
2017 May 30
2
llvm::GlobalVariable usage (newbie question)
The docs are pretty vague about this. After digging into the examples I got
the following to work with JIT to gain a pointer to variable elsewhere in
the runtime, but I'd like to understand what is going on here, and if there
is a, um, nicer API that I'm missing?
llvm::Value* C::getGlobalVariable(const char* name,
llvm::Type* t)
{
2011 Apr 01
2
[LLVMdev] compiling bitccode to executable binary/LLI
Hi,
Could anyone tell me how exactly can one convert a .bc file (bitcode file)
to an executable in the native program.
I was trying an instrumentation transform with the following workflow
opt -insert-edge-profiling input.bc -o output.bc
and then try and execute output.bc using
lli output.bc
however the program gives the following error : Program used external
function
2009 Oct 20
2
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
On Oct 20, 2009, at 5:49 AM, Jay Foad wrote:
>> To test clang:
>> 1) Compile llvm and clang from source.
>
> LLVM fails to build for me on Cygwin. I get:
>
Does TOT build? If not, please file a bug.
Unfortunately Cygwin is not in our release criteria. I'd like to have
a buildbot running (if there is not one already) and then get someone
to qualify it for the
2009 Oct 20
0
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
> To test clang:
> 1) Compile llvm and clang from source.
LLVM fails to build for me on Cygwin. I get:
make[1]: Entering directory `/home/foad/llvm/objdir-2.6/runtime'
make[2]: Entering directory `/home/foad/llvm/objdir-2.6/runtime/libprofile'
llvm[2]: Compiling BasicBlockTracing.c for Release build (PIC)
llvm[2]: Compiling BlockProfiling.c for Release build (PIC)
llvm[2]:
2009 Oct 06
1
[LLVMdev] 2.6/trunk Execution Engine question
On Tue, Oct 6, 2009 at 5:49 PM, Reid Kleckner <rnk at mit.edu> wrote:
>> Also, the null pointer is coming from a call to JCE->allocateSpace().
>> This is a virtual function; I'm trying to discover what subclass it
>> is.
>
> So, there's JITEmitter::allocateSpace which overrides
> JITCodeEmitter::allocateSpace(), but *most* of the time it just calls
>
2015 Mar 24
2
[LLVMdev] IR blocks for calling function pointers
Hello,
I am trying to create IR block for making a call to function pointer.
For creating the IR for a function call to "foo", with "foo" being defined
as "void foo(int)", I can use the "getOrInsertFunction" call from Module
class as follows:
std::vector<Type*> FooArgs;
FooArgs.push_back(IRB.getInt64Ty());
Value *FooFunction =
2008 Feb 07
0
[LLVMdev] Problems with instrumentation
Hi,
> llvm-gcc -g -emit-llvm test.c -c -o test.bc
> opt -insert-edge-profiling test.bc -o output.bc
> llc output.bc -o output.s
> gcc output.s -o test.out
>
> However, it can't find symbol llvm_start_edge_profiling.
-insert-edge-profiling inserts call to the llvm_start_edge_profiling
function which is a part of a profiling runtime library. This library
must be linked
2013 Sep 13
2
[LLVMdev] Removing legacy profiling code from LLVM
Alright, I'm ready to nuke it. Last chance to say stop.
For context of others, this has come up repeatedly: no one we know of is
using EdgeProfiling.cpp, PathProfiling.cpp, and the
lib/Analysis/Profile*Pass.cpp collection of tools. They haven't been
updated since 2012 when Alastair Murray looked into this stuff, and both
current efforts towards PGO are essentially *totally* different
2009 Oct 20
3
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
On Oct 20, 2009, at 12:05 PM, Aaron Gray wrote:
> 2009/10/20 Tanya Lattner <lattner at apple.com>:
>>
>> On Oct 20, 2009, at 5:49 AM, Jay Foad wrote:
>>
>>>> To test clang:
>>>> 1) Compile llvm and clang from source.
>>>
>>> LLVM fails to build for me on Cygwin. I get:
>>>
>>
>> Does TOT build? If not,
2009 Oct 20
0
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
2009/10/20 Tanya Lattner <lattner at apple.com>:
>
> On Oct 20, 2009, at 5:49 AM, Jay Foad wrote:
>
>>> To test clang:
>>> 1) Compile llvm and clang from source.
>>
>> LLVM fails to build for me on Cygwin. I get:
>>
>
> Does TOT build? If not, please file a bug.
No. Theres the runtime install bug (below), and llvm-gcc has a bug
that I
2013 Sep 13
3
[LLVMdev] Removing legacy profiling code from LLVM
Chandler Carruth wrote:
>Alright, I'm ready to nuke it. Last chance to say stop.
Stop.
>For context of others, this has come up repeatedly: no one we know of is
>using EdgeProfiling.cpp, PathProfiling.cpp, and the
>lib/Analysis/Profile*Pass.cpp collection of tools.
We've been actively using it since at least 2.8. True, we haven't been
vocal about it.
While I can see
2009 Jul 22
1
A Flash Mob for R Content on Stack Overflow: Tonite @ 7-9pm PST
R Users -
Tomorrow night, we are leading a group of R programmers to a site
called Stack Overflow, Stackoverflow is a collaborative question and
answer site for programmers, currently lacks much R content.
to populate some of the most oft-asked and reluctantly-answered
questions about R.
The R-help mailing list is an indispensable resource to members of the
R community. Perhaps owing to its
2013 Mar 14
2
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
Thanks for your reply.
May I know which is the recommended library that should be linked against?
I am currently linking libprofile_rt.a.
And I have noticed the differences that, if we do
`nm libprofile_rt.a | grep llvm`
with my old copy of the llvm/clang installation, I can see
00000000000005e0 T _llvm_gcda_emit_arcs
0000000000000b48 S _llvm_gcda_emit_arcs.eh
0000000000000430 T
2008 Jul 07
1
Interest in a Use R Group in San Francisco area?
All,
Tuesday week (July 15th) Mike Driscoll & I will be presenting
"A Gentle Introduction to R and its Applications in Business
Intelligence" at the SDForum Business Intelligence SIG in Palo Alto,
California.
One motivation is to judge interest in starting a Use R Group in the
Bay Area. We will have an informal organizational meeting after the
talk.
We hope all local R