[LLVMdev] How can i differentiate pointer type int 32* from int 32** ?

Shen Liu
Fri, 17 Jul 2015 17:38:09 -0000

Hi all, as a LLVM beginner I would like to know how can i check the pointer
types with different levels like int 32* and int 32**, int 32***?

By using value->getType()->isPointerTy() i can just know they are
pointers.
But the dump results clearly show they are different. Is there a good way
to calculate their actual point to levels? Thanks!


Best regards,

Shen
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150717/0be5397a/attachment.html>