Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] The source & result operands of an instruction"
2004 Oct 25
5
[LLVMdev] Some Questions about LLVM
hi, all
I have some questions about LLVM
1. I recently compiled LLVM on my X86 machine correctly. But when I use
the built LLVm compiling programs(in the getting started guide), I got
an warning saying can not find library "lc" (something like that). Yet
LLVM did yeild a execution native code and it runs correctly except with
a waring saying something like "__main**"(I
2004 Oct 27
2
[LLVMdev] Some Questions about LLVM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I checked that envvar, and it is set.<br>
The error msg when compiling a .c
2011 May 04
2
[LLVMdev] Trace Use-Def chain
On 5/3/11 4:08 PM, tarun agrawal wrote:
> HI
>
> I know it is a very simple question not worth asking here but I am
> really struggling pls help me out..
This is a question worth asking; it's just that not everyone can answer
all the time.
:)
If all you want to do is to follow the SSA def-use chain within a single
function, then this is very easy. All you have to do is use
2012 Apr 19
3
[LLVMdev] def-use chains and use-def chains
Hi,
I need to find out all the places where the value of a variable is being
used. For this I have to implement reaching definitions(def-use chains).
When I searched for its implementation I found Iterating over def-use &
use-def chains <http://llvm.org/docs/ProgrammersManual.html#iterate_chains>.
will this work for finding the places where a variable is reaching?
I tried to use
2005 Jan 13
2
[LLVMdev] the pred_begin and pred_end of BasicBlock
Sorry, still a bit confused. Say we have two basic blocks: A and B. B
has a label. There is no branch/control flow instructions explicit uses
B. like this:
A: code sequence does not contain br/other control flow instruction
B:
lable_of_b:
code sequence
Is A still a predecessor of B?
Thanks.
Chris Lattner wrote:
> On Thu, 13 Jan 2005, Zhou Feng wrote:
>
>> hi,
>> I'm
2011 May 04
2
[LLVMdev] Trace Use-Def chain
Thanks John,
I know how to iterate through def-use chains and I also have realized the
need for an algorithm to do the work. But the algorithm I am able to figure
out is not linear in time. It wold be a great help if someone suggest me a
way to get all basic-block along all path between two instruction.
On Wed, May 4, 2011 at 7:00 AM, John Criswell <criswell at illinois.edu> wrote:
>
2011 Aug 03
2
[LLVMdev] Tracing Value Dependency Chains
Hello All,
What would be the best way to trace Value Dependency Chains in LLVM. Can I
use some API to perform this?
The use-def chain process mentioned at
http://llvm.org/docs/ProgrammersManual.html#iterate_chains will just get the
values (Operands) being used in the current Instruction. For getting the
values operands in the particular instruction are influenced from I have
to recursively call
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
Hello All,
Is the use-define chain related API avaliable in LLVM? I want
to get the information
about the variables' value changes at different points in the program.
Best wishes.
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
Thanks for your response!
But I want to determine wheter the specific variable's value has been
changed between
two usages of variable, and wheter the parameter's value is changed in
a function. Like the
reaching definition analysis, and ud chains.
2012/8/9 ��f�� (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw>:
> On Thu, Aug 09, 2012 at 11:16:15AM +0800, Jianfei Hu wrote:
>>
2011 May 04
0
[LLVMdev] Trace Use-Def chain
Dear Tarun,
It just occurred to me that this may or may not be what you are asking
about. This only finds basic blocks along the def-use chain of an
instruction; it does not find all basic blocks along all paths between
two instructions. I don't know of an algorithm off-hand for the latter,
but if you understand how to iterate over def-use chains and the
control-flow graph, then
2006 Feb 15
0
[LLVMdev] question-TUD, germany
On Wed, 2006-02-15 at 04:29, anubham suresh wrote:
> hi everyone,
> here i have a question:
> is there any chance in llvm intermediate
> representation to compare whether a operand (ie a
> value) is used as a user without iterating over all
> the instructions in a basic block.
> i will explain this with an example:
> i=p+4;
> j=i+p;
>
> in the above example i
2011 May 03
0
[LLVMdev] Trace Use-Def chain
HI
I know it is a very simple question not worth asking here but I am really
struggling pls help me out..
On Tue, May 3, 2011 at 10:10 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote:
> Hi,
>
> I need to get all the basic blocks that are there, in the path from
> definition of an instruction to use of that instruction.
>
>
> Regards
> Tarun
>
--------------
2006 Feb 15
2
[LLVMdev] question-TUD, germany
hi everyone,
here i have a question:
is there any chance in llvm intermediate
representation to compare whether a operand (ie a
value) is used as a user without iterating over all
the instructions in a basic block.
i will explain this with an example:
i=p+4;
j=i+p;
in the above example i mean p,4,i,p which are on the
RHS are operands and the terms i,j which are on the
LHS are users.
so what i
2011 May 03
2
[LLVMdev] Trace Use-Def chain
Hi,
I need to get all the basic blocks that are there, in the path from
definition of an instruction to use of that instruction.
Regards
Tarun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110503/4d3852b7/attachment.html>
2011 Aug 04
2
[LLVMdev] Tracing Value Dependency Chains
On 8/4/11 1:53 PM, Manish Gupta wrote:
> It would be great help if someone can point me to similar code in
> Analysis or Transform, i.e. tracing value dependencies chains.
If I understand correctly, given an instruction I, you want to find its
operands o1 through oN, and then find the instructions (or LLVM values)
that generate the values o1 through oN, and then find the instructions
2012 Aug 09
0
[LLVMdev] The use-define chain in LLVM
On Thu, Aug 09, 2012 at 11:16:15AM +0800, Jianfei Hu wrote:
> Hello All,
>
> Is the use-define chain related API avaliable in LLVM? I want
> to get the information
> about the variables' value changes at different points in the program.
Is this [1] fit your need?
HTH,
chenwj
[1] http://llvm.org/docs/ProgrammersManual.html#iterate_chains
--
Wei-Ren Chen (陳韋任)
2004 Apr 08
3
[LLVMdev] Code documentation
Hello,
is there any documentation for LLVM codebase other than produced by doxygen?
The reason I'm asking is that doxygen docs are
(1) not very complete at the moment, as lot of classes don't even have a
description
(2) is generally not the best way to get high-level view of a big codebase.
As an example, consider this code:
%tmp.1 = setgt int %i, 0
br bool %tmp.1, label
2011 Aug 04
0
[LLVMdev] Tracing Value Dependency Chains
It would be great help if someone can point me to similar code in Analysis
or Transform, i.e. tracing value dependencies chains.
Thanks,
Manish
On Wed, Aug 3, 2011 at 10:47 AM, Manish Gupta <manishg at cs.ucsd.edu> wrote:
> Hello All,
>
> What would be the best way to trace Value Dependency Chains in LLVM. Can I
> use some API to perform this?
>
> The use-def chain
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
Maybe My statement is not clear. Take an example:
main.c:
int global;
void fun(int array[], int i){
array[i] = i + 1;
global = i;
}
int main(){
int arr[40], i = 0;
fun(arr, 10);
return 0;
}
Can I determine whether the value of arr array and global variable
have changed after the function call, fun(arr, 10), by LLVM API? It
could be more complicated considerring the nested function
2012 Apr 20
0
[LLVMdev] def-use chains and use-def chains
Hi Duncan Sands,
I frankly don't know what a variable gets converted to (SSA register or
memory chunk). What I meant is, for example
I1: int i, j=10; I2: scanf("%d", &j); I3: i = j + 1;
Here I want to know whether the value of j in I1 reaches I3 or not.
Best Regards,
Srikanth Vaindam
you didn't define what you mean by a variable. LLVM has virtual registers
which
are