[LLVMdev] RE : How to Identify if an Argument is a pointer?
Rinaldini Julien
julien.rinaldini at heig-vd.ch
Mon Aug 20 10:00:12 PDT 2012
Hi,
You can use isPointerTy() from http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html
Cheers
________________________________________
De : llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] de la part de John Backes [back0145 at umn.edu]
Date d'envoi : lundi 20 août 2012 18:39
À : llvmdev at cs.uiuc.edu
Objet : [LLVMdev] How to Identify if an Argument is a pointer?
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
More information about the llvm-dev
mailing list