Displaying 7 results from an estimated 7 matches for "hxy9243".
2015 Mar 12
2
[LLVMdev] Passing a function pointer as parameter to function call?
Dear all,
I'm writing an LLVM pass, and I want to insert a call instruction that
takes a function pointer as a parameter. The effect would be the same as
following:
atexit(foo);
Where foo is a function I insert with M.getOrInsertFunction(), which in
LLVM is a Function class.
I searched for a while and did not come up with a satisfying answer. Should
I create a Value class of pointer type,
2015 Feb 27
0
[LLVMdev] Walking thru CallGraph bottom up
...r BFS
> from the node to find the main function node.
>
> Hope this helps a little.
>
> Apologies if you find any format, layout or etiquette problems in my
> mail. This is the first time I write to a mailing list.
>
> Thanks.
>
> ---
> Regards,
> Kevin Hu
> hxy9243 at gmail.com <mailto:hxy9243 at gmail.com>
>
> Thanks.
> Simone
>
> > On Feb 25, 2015, at 09:01, John Criswell <jtcriswel at gmail.com
> <mailto:jtcriswel at gmail.com>> wrote:
> >
> > On 2/25/15 10:51 AM, Simone Atzeni wrot...
2015 Feb 27
2
[LLVMdev] Walking thru CallGraph bottom up
...tually
help simplify the problem a lot. You still need a DFS or BFS from the node
to find the main function node.
Hope this helps a little.
Apologies if you find any format, layout or etiquette problems in my mail.
This is the first time I write to a mailing list.
Thanks.
---
Regards,
Kevin Hu
hxy9243 at gmail.com
> Thanks.
> Simone
>
> > On Feb 25, 2015, at 09:01, John Criswell <jtcriswel at gmail.com> wrote:
> >
> > On 2/25/15 10:51 AM, Simone Atzeni wrote:
> >> Thanks John.
> >>
> >> I guess I will use a ModulePass, so when I am im...
2016 Apr 11
2
Creating an LLVM Project
Hi there,
I have a question regarding this documentation page: http://llvm.org/docs/Projects.html
IIRC LLVM has moved away from Makefile's and uses CMake only.
The question is:
Is the page outdated or is it a recommended way for creating LLVM based project?
P.S. I’m trying to create a project using CMake, though I’m seeing some issues (didn’t manage to include headers so far).
--
2016 Apr 05
3
Add Call instruction in IR for a non-existing function
Hello everyone,
I am trying to add checkpoints to my IR code. In order to do that I need to
add this instruction:
call void @m5_checkpoint(i64 0, i64 0)
to some of the basic blocks in my benchmark.
m5_checkpoint is a function defined for checkpointing in another simulator
and is not included in my benchmark source code. So I need to create this
instruction and I couldn't figure out how to do
2016 Mar 01
2
How to do some dataflow analysis via IR on a large project?
I am learning to do some basic dataflow analysis on C code projects,
such as Apache httpd. Now I am a newbie of LLVM IR, and there are some
problems in doing that.
In the official User Manual of how to write a LLVM PASS, they only
show the way to generate IR of a single ".c" source file. But in fact
there are so many examples that the usage and definition of a function
are not in the
2015 May 28
3
[LLVMdev] Easiest way to collect dynamic Instruction execution counts?
Hi,
I'd like a simple and fast way to collect the number of times each
Instruction was executed in a given run of the application. As far as I can
tell, there are a number of approaches I can take:
- Use PIN. This would require using DWARF debug info and Instruction debug
info to attempt to map instructions in the binary to instructions in the
bitcode; not 100% sure how accurate this will