Lines Matching defs:PointerType
238 return cast<PointerType>(this)->getAddressSpace();
269 PointerType *Type::getHalfPtrTy(LLVMContext &C, unsigned AS) {
273 PointerType *Type::getFloatPtrTy(LLVMContext &C, unsigned AS) {
277 PointerType *Type::getDoublePtrTy(LLVMContext &C, unsigned AS) {
281 PointerType *Type::getX86_FP80PtrTy(LLVMContext &C, unsigned AS) {
285 PointerType *Type::getFP128PtrTy(LLVMContext &C, unsigned AS) {
289 PointerType *Type::getPPC_FP128PtrTy(LLVMContext &C, unsigned AS) {
293 PointerType *Type::getX86_MMXPtrTy(LLVMContext &C, unsigned AS) {
297 PointerType *Type::getIntNPtrTy(LLVMContext &C, unsigned N, unsigned AS) {
301 PointerType *Type::getInt1PtrTy(LLVMContext &C, unsigned AS) {
305 PointerType *Type::getInt8PtrTy(LLVMContext &C, unsigned AS) {
309 PointerType *Type::getInt16PtrTy(LLVMContext &C, unsigned AS) {
313 PointerType *Type::getInt32PtrTy(LLVMContext &C, unsigned AS) {
317 PointerType *Type::getInt64PtrTy(LLVMContext &C, unsigned AS) {
747 if (PointerType *PTy = dyn_cast<PointerType>(ElemTy))
753 // PointerType Implementation
756 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) {
763 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy]
767 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace);
772 PointerType::PointerType(Type *E, unsigned AddrSpace)
782 PointerType *Type::getPointerTo(unsigned addrs) {
783 return PointerType::get(this, addrs);
786 bool PointerType::isValidElementType(Type *ElemTy) {