diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-13 01:39:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-13 01:39:07 +0000 |
commit | afc9a0c6b03d6dd523a8d0dc3e7de4ff723b51f4 (patch) | |
tree | ae5211279d323133bfec738d43f0f893b8f90a31 /include/llvm/Type.h | |
parent | ee09d2781de2f5a47bbb991a5a525c67557ac5cd (diff) | |
download | external_llvm-afc9a0c6b03d6dd523a8d0dc3e7de4ff723b51f4.zip external_llvm-afc9a0c6b03d6dd523a8d0dc3e7de4ff723b51f4.tar.gz external_llvm-afc9a0c6b03d6dd523a8d0dc3e7de4ff723b51f4.tar.bz2 |
VMCore: Add Type::getIntN[Ptr]Ty, which are the obvious generic forms of
Type::getInt{1,8,...}[Ptr]Ty, so code can consistently use the methods on Type
without occasionally needed to call IntegerType::get.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index df3a16c..52229ac 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -406,6 +406,7 @@ public: static const Type *getX86_FP80Ty(LLVMContext &C); static const Type *getFP128Ty(LLVMContext &C); static const Type *getPPC_FP128Ty(LLVMContext &C); + static const IntegerType *getIntNTy(LLVMContext &C, unsigned N); static const IntegerType *getInt1Ty(LLVMContext &C); static const IntegerType *getInt8Ty(LLVMContext &C); static const IntegerType *getInt16Ty(LLVMContext &C); @@ -421,6 +422,8 @@ public: static const PointerType *getX86_FP80PtrTy(LLVMContext &C, unsigned AS = 0); static const PointerType *getFP128PtrTy(LLVMContext &C, unsigned AS = 0); static const PointerType *getPPC_FP128PtrTy(LLVMContext &C, unsigned AS = 0); + static const PointerType *getIntNPtrTy(LLVMContext &C, unsigned N, + unsigned AS = 0); static const PointerType *getInt1PtrTy(LLVMContext &C, unsigned AS = 0); static const PointerType *getInt8PtrTy(LLVMContext &C, unsigned AS = 0); static const PointerType *getInt16PtrTy(LLVMContext &C, unsigned AS = 0); |