[LLVMdev] Operand, instruction
Arvind Sudarsanam
A.Sudarsanam at cputech.com
Tue Mar 30 14:59:26 PDT 2010
Hi,
Instead of a basic block function call....You might want to use a module
function call...then iterate through functions and then iterate through
basic blocks...
Hope this helped.
Best Regards
Arvind
------------------------------------------------------------------------
------------
Arvind Sudarsanam Phone: (435) 512-7769
CPU Technology, Inc Fax: (866) 848-5599
1500 Kansas Ave, Suite 3E
Longmont, CO 80501
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of help__me_please
Sent: Tuesday, March 30, 2010 1:50 PM
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Operand, instruction
Can you tell how to use vector globally? I mean, i am able to add
entries to a vector in a basicblock, but whenever a basicblock function
call is returned, the vector becomes empty. So how to use data
structures globally?
And one thing, where is main ( or same kind of) function in llvm?
Thanks for you reply.
Duncan Sands wrote:
>
> Hi,
>
>> Actually i have to implement strength reduction, for that i have to
>> first detect induction variables using ALLEN-COCKE-KENNEDY algorithm.
>> To find out induction variables, i need the name of the instruction.
>
> I suspect you are confused. Surely you only need a way of referring
> to each instruction. For this you can use a pointer to the
> instruction.
>
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
View this message in context:
http://old.nabble.com/Operand%2C-instruction-tp21961718p28087559.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list