[LLVMdev] Address of an instruction (or a label?)

Jim Laskey jlaskey at mac.com
Mon Mar 12 05:23:31 PDT 2007


I agree.  Instead of using line numbers, with llvm.dbg.stoppoint, you  
could use the byte code index.  Or alternatively, you could use the  
column number field instead (not currently managed by  
MachineModuleInfo.)  In the backend, you can generate a machine  
instruction to byte code mapping table from queries to   
MachineModuleInfo.

Cheers,

-- Jim





On 12-Mar-07, at 8:34 AM, Anton Korobeynikov wrote:

> Hello, Nicolas.
>
>> Is there a way in llvm to get the address of a generated  
>> instruction? Or
>> somehow to fix the location of a label in the llvm code (something  
>> that
>> may look like a basic block perhaps) and get after the compilation  
>> the
>> address of this label?
> Maybe it's worth to use llvm.dbg.stoppoint?
>
> -- 
> With best regards, Anton Korobeynikov.
>
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
>
>
> _______________________________________________
> 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