[llvm-dev] Retrieving DbgInfoIntrinsics for a given value

Hongbin Zheng via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 22 13:29:11 PST 2017


Hi LLVM,

If I have an llvm value "<16 x float> addrspace(1)* %in", and in the LLVM
IR, there is a @llvm.dbg.value like:

call void @llvm.dbg.value(metadata <16 x float> addrspace(1)* %in, i64 0,
metadata !216, metadata !28), !dbg !217

How I can retrieve this @llvm.dbg.value when I have "%in"?

Since Metadata is not a part of the uselist anymore, is there some way
rather than iterate over every instructions in the function to get this
@llvm.dbg.value?

Thanks
Hongbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171122/878b7ba5/attachment.html>


More information about the llvm-dev mailing list