devang.patel at gmail.com
Mon Feb 15 10:21:26 PST 2010
>> >> But that does suggest a consideration: if you're using metadata at
>> >> the LLVM IR level, it may make sense to use metadata at the codegen
>> >> level too, to avoid this confusion.
>> > There doesn't appear to be any way to do this right now. Is it planned?
>> Today, we use metadata to represent debug info at LLVM IR level as
>> well at the codegen level.
> So what's the trick? I don't see anything about metadata in the SelectionDAG
1) See DebugLoc.h. Now debug location tracker keeps track of metadata
nodes. In 2.6 release debug location tracker tracked 4 element tuple.
2) See how X86 lowers @llvm.dbg.declare intrinsic into DBG_VALUE MI.
More information about the llvm-dev