Looking for ASTContext IntPtrTy

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!

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 petersson schrieb:

ASTContext has a getIntPtrTy, if you want to just get a type matching
intptr_t…

Thanks, that was, what I was looking for.

Ciao
Nat!