Given a `llvm.dbg.declare`, how can I get its llvm value?

e.g.

```
call void @llvm.dbg.declare(metadata !{i32** %r}, metadata !23), !dbg !24

```

I want get the Value `i32** %r`, not the metadata `!{i32** %r}`.

Please give me the code!

Thanks!