[LLVMdev] How could I get memory address for each basic block?

Vikram S. Adve vadve at cs.uiuc.edu
Thu Aug 19 15:39:08 PDT 2004


Qiuyu,

The dynamic optimization project (an internal research project in our 
group) uses some way to map LLVM basic blocks to native code addresses. 
  If this is what you want, perhaps you can ask Brian Gaeke 
(gaeke at uiuc.edu) to give you some information about how that is done.

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/

On Aug 19, 2004, at 5:11 PM, Misha Brukman wrote:

> On Thu, Aug 19, 2004 at 01:13:42PM -0700, Zhang Qiuyu wrote:
>> On the pervious mail, I am trying to add label for each basic basic
>> because I think I could get address by using nm if nm can show the
>> address of each label, but it seems not . so do you guys have some
>> idea how to get address for each basic block? Thanks.
>
> LLVM does not have a notion of C-style 'labels' that you can address 
> and
> use as parameters.  LLVM labels are simply NAMES of basic blocks, and
> they are printed out as `labels'.
>
> You can 'set' a name for a BasicBlock, but that's not what you are
> looking for, please see my other email for more details.
>
> -- 
> Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list