[cfe-dev] Looking for ASTContext IntPtrTy
mats petersson via cfe-dev
cfe-dev at lists.llvm.org
Sat Jan 9 09:10:32 PST 2016
What are you actually trying to do? Are you trying to define the type to
return for getIntPtrType() as a LLVM type for a "new" processor
archtiecture?
ASTContext has a getIntPtrTy, if you want to just get a type matching
intptr_t...
http://clang.llvm.org/doxygen/classclang_1_1ASTContext.html#a9e0bd029ed0f42864b729769b398b990
--
Mats
On 8 January 2016 at 20:24, Nat! via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> Or what could I use instead of this ?
>
> At the moment I am using LongTy for a builtin typedef, but intptr_t would
> be better and more fitting. I want the largest integer size that fits into
> a regular register.
>
> Ciao
> Nat!
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160109/1498c23f/attachment.html>
More information about the cfe-dev
mailing list