Hi All, Is there a way to detect metadata functions like call void @llvm.dbg.declare(metadata !{i32* %g}, metadata !35), !dbg !37 Thanks. George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110524/ae36ecd8/attachment.html>
On May 24, 2011, at 8:27 AM, George Baah wrote:> Hi All, > Is there a way to detect metadata functions like > call void @llvm.dbg.declare(metadata !{i32* %g}, metadata !35), !dbg !37One obvious way is to walk IR and check for function calls that use metadata as an operand. What are you trying to do ? - Devang