[LLVMdev] How to Identify if an Argument is a pointer?

George Baah georgebaah at gmail.com
Mon Aug 20 09:53:07 PDT 2012


You can use isPointerTy() in Type class.

George

On Mon, Aug 20, 2012 at 12:39 PM, John Backes <back0145 at umn.edu> wrote:

> Hello,
>
> I was wondering how you can identify whether or not an Argument is a
> pointer.  The "isDereferenceablePointer" function for Values doesn't
> seem to be what I want (I don't care whether or not the pointer points
> to allocated memory or is suitably aligned).  I want to be able to
> discern between:
>
> i32* %pArray
>
> and
>
> i32 %pArray
>
> Thanks in advance.
>
> - John
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120820/be3351fe/attachment.html>


More information about the llvm-dev mailing list