Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Links for basic operations"
2009 May 09
2
[LLVMdev] Instruction Conversion
Hi,
Let say i am writing a code inside basic block pass and iterating all the
instructions inside,
and i encountered in this instruction :
%3 = add i32 %1, 2
I want to convert this instruction to something like this:
add R1, 2, R3
I know the opocode, but i what i need is, the operands %1 and 2 (in this
example).
I will be grateful if some one will tell me how to do so .
-------------- next
2009 May 09
0
[LLVMdev] Instruction Conversion
Rotem Varon wrote:
> Hi,
>
> Let say i am writing a code inside basic block pass and iterating all
> the instructions inside,
> and i encountered in this instruction :
If you're asking how to get the operands of an Instruction, use the
getOperand() method:
Value * Operand1 = I->getOperand(0);
Value * Operand2 = I->getOperand(1);
The LLVM doxygen documentation
2010 Aug 02
1
[LLVMdev] Writing a pass that modifies the IR
Could some kind soul point me at the documentation, or the appropriate header file, or an example of the best way to write a pass that modifies the IR?
Suppose, for example, that I wanted to replace every call to the intrinsic i1 with a call to i2 followed by a call to i3: i1(X) -> i3(i2(X))
I'm currently playing around with a class that inherits from FunctionPass and InstVisitor and I
2014 Oct 05
2
[LLVMdev] extending LLVM - basic block reordering
Hi.
I want to change order of code basic blocks in memory. I visited "
http://llvm.org/docs/ExtendingLLVM.html" page and it advised me to ask it
before any effort.
What parts of LLVM help me and how? I am a newbie on LLVM.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Sep 03
2
[LLVMdev] PTX optimizations
Hi everyone,
I am trying to add some optimizations to LLVM's PTX backend. But i am
unaware of the existing optimizations. Can you please guide me about the
same?
Thank You:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110903/bc038a07/attachment.html>
2011 Dec 07
2
[LLVMdev] LLVM instrumentation overhead
Hi,
I need to write a transform pass which instruments the target program to
output the name of each function executed, and the rdtsc counter along
with it.
Can anyone give me an idea of how to go about it?(I've worked around
with LLVM pass framework and opt to do static analysis, but would like
to do a lightweight instrumentation). Also can anyone give an
approximate idea of the
2017 Apr 01
2
Which doxygen doc should I look into?
Hi All,
I am going to clean up those doxygen links on LLVM Programmer’s
Manual [1], some are lost and some are too old.
However, I am confused on which doxygen link I should pick up. I see
there are mutiple links exist on LLVM web site
for LLVM classes. Take class Statistic as example, there are:
- http://llvm.org/doxygen/Statistic_8h-source.html (the oldest
one, I believe it's
2011 Mar 23
2
[LLVMdev] [GSoC] Interface layer for optimizers
Hi folks,
I like open technologies, epecially LLVM compiler. I want to implement a new
interface layer in LLVM to plug-in optimizers as a part of GSoC, and then
load the interface with optimizers.
This would improve LLVM application for people who want to use their
optimizations in compilers.
The first "educative" step is to add Doxygen (for .h files) to the build and
integrate it
2011 Dec 09
0
[LLVMdev] LLVM instrumentation overhead
On 12/7/11 4:51 PM, Nipun Arora wrote:
> Hi,
>
> I need to write a transform pass which instruments the target program to
> output the name of each function executed, and the rdtsc counter along
> with it.
Doing this in LLVM is really straightforward. You simply iterate
through all the functions in a module and add instructions to their
entry basic blocks to do whatever it is
2017 Apr 02
2
Which doxygen doc should I look into?
Thanks for the info, Philip. I will update the LLVM Programmer’s Manual first.
Regards,
chenwj
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
2017-04-02 18:11 GMT+08:00 Philip Pfaffe <philip.pfaffe at gmail.com>:
> Hi chenwj,
>
> http://llvm.org/doxygen/Statistic_8h_source.html is the correct one. The
> other two are remnants from older doxygen deployments.
2012 Jun 21
3
[LLVMdev] Cloning block for newbie
Hello everybody.
I'm quite new to LLVM and I'm encontering problems with cloning basic
blocks. My two basic blocks are in the same function and it doesn't really
matter how the cloned one behave for the moment. Of course, to do so, I
used the cloning.h 's method "CloneBasicBlock" but I have the "Instruction
does not dominate all uses!" error.
I know what it
2011 Mar 23
1
[LLVMdev] [GSoC] Interface layer for optimizers
On 3/23/2011 6:07 AM, Крылов Владислав wrote:
> Hi folks,
>
> I like open technologies, epecially LLVM compiler. I want to implement
> a new interface layer in LLVM to plug-in optimizers as a part of GSoC,
> and then load the interface with optimizers.
LLVM already has a plug-in framework for loading new analysis and
optimization passes
2011 Dec 09
1
[LLVMdev] LLVM instrumentation overhead
Hi John,
Thanks for the detailed answer, this gives me a good starting point to
look into.
I was also wondering if you could give an idea (in terms of %ge) the
overhead one can expect with such an instrumentation. I want something
really lightweight and simple which can possible be applied to
production systems, so overhead is a concern.
Thanks
Nipun
On 12/09/2011 02:21 PM, John Criswell
2012 Jun 21
0
[LLVMdev] Cloning block for newbie
Please reply-all so that the thread is kept on llvmdev.
The LLVM Programmer's Manual has examples of how to iterate over many
common structures, such as instructions in a basic block[1]. Other
than that, you can check the source code or doxygen[2].
Basically, you loop over the instructions as detailed in the
programmer's manual[1], and loop over the operands using User's
2008 Apr 29
2
[LLVMdev] Lost in the documentation
On Mon, 28 Apr 2008 17:54:31 -0400, Gordon Henriksen wrote:
> On Apr 28, 2008, at 17:32, Hendrik Boom wrote:
>
>> In http://llvm.org/docs/FAQ.html, when taking about writing a compiler
>> that uses LLVM (at least I think that's what the FAQ question is
>> asking),
>> the FAQ recommends
>>
>>> # Call into the LLVM libraries code using your
2010 Apr 12
0
[LLVMdev] call for suggestions
On Sun, 2010-04-11 at 10:54 +0800, lucefe wrote:
> Hi, Dear LLVMers
>
> I just touch llvm source code for several days, and I didn't know the
> interfaces of the analysises and transformations of LLVM. For exampe,
> how to backtrace CFG, and whether exits a backtracking interator to do
> such work?
>
> For a novice, I also seek for suggestions about how to become
2010 Apr 18
2
[LLVMdev] Free Variables In a Loop.
Hi ,
I'm working on a project in which i need to find out all free variables
in a loop. I need to find all variables used inside a loop and that are not
declared(allocated) in the loop. I'm confused about what symbol tables to
use to get hold of such variables.
Thanks,
Rohith.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Apr 11
2
[LLVMdev] call for suggestions
Hi, Dear LLVMers
I just touch llvm source code for several days, and I didn't know the
interfaces of the analysises and transformations of LLVM. For exampe, how
to backtrace CFG, and whether exits a backtracking interator to do such
work?
For a novice, I also seek for suggestions about how to become familiar with
LLVM interfaces as soon as possible. Now I have a plan to write a pass based
on
2012 Jan 16
3
[LLVMdev] Identifying loop variables
Hi everyone,
Are there any functions to identify the initiation,condition and iteration
part of the loop?
Example: for(i=0;i<10;i++)
{
a[i]+=1;
}
I want to know the name of the variable used in the loop(i) , the
initiation(i=0), condition(i<10) and the iteration(i++) part of the loop.
Thank you:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2013 Dec 03
1
[LLVMdev] Help with creating and replacing instructions in LLVM
Hi,
I have the following instruction in my IR-
%call2 = call i8* @strcpy(i8* %1, i8* %2) #2
I intend to change call to strcpy with strncpy. I have included the following code in runOnFunction, so that when it is strcpy's turn to be invoked, strncpy is invoked instead.
Assuming I* is the strcpy instruction,
CallInst* x=new