[llvm-dev] Find the level of pointers

Haritha Madhav C via llvm-dev llvm-dev at lists.llvm.org
Sun Sep 26 22:51:42 PDT 2021


Hi,

How can I find the level of the pointer variable? I need to differentiate
between **i32 and ***i32. Is there any way to do this? getType() will
return pointer type. But if I wanted to get 2 from **i32 and 3 from ***i32,
is there a way?

Thanks,
Haritha Madhav C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210927/455d7ad3/attachment.html>


More information about the llvm-dev mailing list