Home
last modified time | relevance | path

Searched refs:PointerType (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenTypeCache.h23 class PointerType; variable
56 llvm::PointerType *VoidPtrTy;
57 llvm::PointerType *Int8PtrTy;
62 llvm::PointerType *VoidPtrPtrTy;
63 llvm::PointerType *Int8PtrPtrTy;
68 llvm::PointerType *AllocaVoidPtrTy;
69 llvm::PointerType *AllocaInt8PtrTy;
74 llvm::PointerType *GlobalsVoidPtrTy;
75 llvm::PointerType *GlobalsInt8PtrTy;
79 llvm::PointerType *ConstGlobalsPtrTy;
H A DCGOpenCLRuntime.h41 llvm::PointerType *SamplerTy;
42 llvm::StringMap<llvm::PointerType *> CachedTys;
56 llvm::PointerType *getPointerType(const Type *T, StringRef Name);
73 llvm::PointerType *getSamplerType(const Type *T);
84 llvm::PointerType *getGenericVoidPointerType();
H A DCGOpenCLRuntime.cpp62 llvm::PointerType *CGOpenCLRuntime::getPointerType(const Type *T, in getPointerType()
72 llvm::PointerType::get(llvm::StructType::create(Ctx, Name), AddrSpc); in getPointerType()
87 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
94 llvm::PointerType *CGOpenCLRuntime::getSamplerType(const Type *T) { in getSamplerType()
96 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
123 llvm::PointerType *CGOpenCLRuntime::getGenericVoidPointerType() { in getGenericVoidPointerType()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DType.h32 class PointerType; variable
490 static PointerType *getHalfPtrTy(LLVMContext &C, unsigned AS = 0);
491 static PointerType *getBFloatPtrTy(LLVMContext &C, unsigned AS = 0);
492 static PointerType *getFloatPtrTy(LLVMContext &C, unsigned AS = 0);
493 static PointerType *getDoublePtrTy(LLVMContext &C, unsigned AS = 0);
494 static PointerType *getX86_FP80PtrTy(LLVMContext &C, unsigned AS = 0);
495 static PointerType *getFP128PtrTy(LLVMContext &C, unsigned AS = 0);
496 static PointerType *getPPC_FP128PtrTy(LLVMContext &C, unsigned AS = 0);
497 static PointerType *getX86_MMXPtrTy(LLVMContext &C, unsigned AS = 0);
498 static PointerType *getX86_AMXPtrTy(LLVMContext &C, unsigned AS = 0);
[all …]
H A DDerivedTypes.h632 class PointerType : public Type {
633 explicit PointerType(Type *ElType, unsigned AddrSpace);
634 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
639 PointerType(const PointerType &) = delete;
640 PointerType &operator=(const PointerType &) = delete;
644 static PointerType *get(Type *ElementType, unsigned AddressSpace);
647 static PointerType *get(LLVMContext &C, unsigned AddressSpace);
651 static PointerType *getUnqual(Type *ElementType) { in getUnqual()
652 return PointerType::get(ElementType, 0); in getUnqual()
657 static PointerType *getUnqual(LLVMContext &C) { in getUnqual()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DType.cpp61 if (auto *PTy = dyn_cast<PointerType>(this)) in isOpaquePointerTy()
138 if (auto *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo()
139 if (auto *OtherPTy = dyn_cast<PointerType>(Ty)) in canLosslesslyBitCastTo()
249 PointerType *Type::getHalfPtrTy(LLVMContext &C, unsigned AS) { in getHalfPtrTy()
253 PointerType *Type::getBFloatPtrTy(LLVMContext &C, unsigned AS) { in getBFloatPtrTy()
257 PointerType *Type::getFloatPtrTy(LLVMContext &C, unsigned AS) { in getFloatPtrTy()
261 PointerType *Type::getDoublePtrTy(LLVMContext &C, unsigned AS) { in getDoublePtrTy()
265 PointerType *Type::getX86_FP80PtrTy(LLVMContext &C, unsigned AS) { in getX86_FP80PtrTy()
269 PointerType *Type::getFP128PtrTy(LLVMContext &C, unsigned AS) { in getFP128PtrTy()
273 PointerType *Type::getPPC_FP128PtrTy(LLVMContext &C, unsigned AS) { in getPPC_FP128PtrTy()
[all …]
H A DBuiltinGCs.cpp78 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
111 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
/openbsd-src/gnu/llvm/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp56 const char *Name, PointerType Pointer) { in start()
75 if (Pointer == PointerType::None) { in start()
93 if (Pointer == PointerType::Reference) in start()
119 void FunctionDumper::start(const PDBSymbolFunc &Symbol, PointerType Pointer) { in start()
157 if (Pointer == PointerType::Pointer) in start()
159 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
170 if (Pointer != FunctionDumper::PointerType::None) in start()
179 if (Pointer != FunctionDumper::PointerType::None) { in start()
180 if (Pointer == PointerType::Pointer) in start()
182 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
[all …]
H A DPrettyTypedefDumper.cpp62 FunctionDumper::PointerType Pointer = FunctionDumper::PointerType::Pointer; in dump()
64 Pointer = FunctionDumper::PointerType::Reference; in dump()
78 Dumper.start(Symbol, nullptr, FunctionDumper::PointerType::None); in dump()
H A DPrettyFunctionDumper.h22 enum class PointerType { None, Pointer, Reference }; enum
25 PointerType Pointer);
26 void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaFixItUtils.cpp34 if (isa<PointerType>(From) && isa<PointerType>(To)) { in compareTypesSimple()
36 (cast<PointerType>(From))->getPointeeType()); in compareTypesSimple()
38 (cast<PointerType>(To))->getPointeeType()); in compareTypesSimple()
93 if (const PointerType *FromPtrTy = dyn_cast<PointerType>(FromQTy)) { in tryToFixConversion()
127 if (const auto *ToPtrTy = dyn_cast<PointerType>(ToQTy)) { in tryToFixConversion()
136 if (isa<PointerType>(FromQTy) && ToPtrTy->isVoidPointerType()) in tryToFixConversion()
H A DOpenCLBuiltins.td199 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> :
368 def "HalfPtr" # AS : PointerType<Type<"__half", QualType<"Context.HalfTy">>, AS>;
369 def "HalfPtrConst" # AS : PointerType<ConstType<Type<"__half", QualType<"Context.HalfTy">>>, AS>;
619 def : Builtin<name, [FGenTypeN, FGenTypeN, PointerType<FGenTypeN, AS>]>;
623 def : Builtin<name, [Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
628 def : Builtin<name, [Type, Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
852 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>;
853 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure…
854 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure…
855 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu…
[all …]
H A DSemaCast.cpp177 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
179 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref()
508 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast()
513 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
774 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
811 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
1263 auto *SrcPtrType = SrcType->getAs<PointerType>(); in IsAddressSpaceConversion()
1266 auto *DestPtrType = DestType->getAs<PointerType>(); in IsAddressSpaceConversion()
1405 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1408 if (const PointerType *DestPointer = DestType->getAs<PointerType>()) { in TryStaticCast()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp39 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize()
40 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize()
66 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopKnownSize()
67 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopKnownSize()
138 PointerType *SrcPtrType = PointerType::get(OpTy, SrcAS); in createMemCpyLoopKnownSize()
152 PointerType *DstPtrType = PointerType::get(OpTy, DstAS); in createMemCpyLoopKnownSize()
192 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize()
193 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize()
206 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopUnknownSize()
207 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopUnknownSize()
[all …]
H A DModuleUtils.cpp35 IRB.getInt32Ty(), PointerType::get(FnTy, F->getAddressSpace()), in appendToGlobalArray()
220 PointerType::get(InitFn->getType(), InitFn->getAddressSpace()); in createSanitizerCtorAndInitFunctions()
392 PointerType *TableEntryTy = in lowerGlobalIFuncUsersAsGlobalCtor()
394 ? PointerType::get(Type::getInt8Ty(Ctx), DL.getProgramAddressSpace()) in lowerGlobalIFuncUsersAsGlobalCtor()
395 : PointerType::get(Ctx, DL.getProgramAddressSpace()); in lowerGlobalIFuncUsersAsGlobalCtor()
465 PointerType *ConstantDataTy = Ctx.supportsTypedPointers() in lowerGlobalIFuncUsersAsGlobalCtor()
466 ? PointerType::get(Type::getInt8Ty(Ctx), 0) in lowerGlobalIFuncUsersAsGlobalCtor()
467 : PointerType::get(Ctx, 0); in lowerGlobalIFuncUsersAsGlobalCtor()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp101 PointerType *PT = dyn_cast<PointerType>(Ptr->getType()); in promotePointer()
118 PointerType *NewPT = in promotePointer()
119 PointerType::getWithSamePointeeType(PT, AMDGPUAS::GLOBAL_ADDRESS); in promotePointer()
170 PointerType *PT = dyn_cast<PointerType>(Arg.getType()); in run()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCastToStructChecker.cpp45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
46 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in VisitCastExpr()
H A DCheckSecuritySyntaxOnly.cpp363 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcmp()
405 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcopy()
447 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_bzero()
489 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets()
529 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw()
569 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_mktemp()
837 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_strCommon()
866 const PointerType *PT = FTP->getParamType(0)->getAs<PointerType>(); in checkCall_rand()
H A DMallocSizeofChecker.cpp139 if (B->isVoidPointerType() && A->getAs<PointerType>()) in typesCompatible()
143 if (A->isVoidPointerType() && B->getAs<PointerType>()) in typesCompatible()
153 if (const PointerType *ptrA = A->getAs<PointerType>()) in typesCompatible()
154 if (const PointerType *ptrB = B->getAs<PointerType>()) { in typesCompatible()
/openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp241 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildPointerValidatorFunc()
247 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildPointerValidatorFunc()
264 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
265 param_array[1] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
271 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildObjectCheckerFunc()
277 PointerType *GetI8PtrTy() { in GetI8PtrTy()
304 PointerType *m_i8ptr_ty = nullptr;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp152 PointerType *GuardFnPtrType = nullptr;
200 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch()
241 GuardFnPtrType = PointerType::get(GuardFnType, 0); in doInitialization()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp189 auto *NewBCType = PointerType::getWithSamePointeeType( in convertToParamAS()
190 cast<PointerType>(BC->getType()), ADDRESS_SPACE_PARAM); in convertToParamAS()
351 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
381 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
410 PointerType::getWithSamePointeeType(cast<PointerType>(Ptr->getType()), in markPointerAsGlobal()
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOpcodes.cpp89 PointerType *PT = dyn_cast<PointerType>(Arg->getType()); in callLooksLikeLoadStore()
115 PointerType *PtrTy = in callLooksLikeLoadStore()
116 PointerType::get(DataArg ? DataArg->getType() in callLooksLikeLoadStore()
125 cast<PointerType>(PtrArg->getType())->getAddressSpace()) != in callLooksLikeLoadStore()
/openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp101 llvm::PointerType *return_type_ptr_type = in cloneToStructRetFnTy()
102 llvm::PointerType::getUnqual(orig->getReturnType()); in cloneToStructRetFnTy()
170 llvm::PointerType *new_func_ptr_type = in fixupX86StructRetCalls()
171 llvm::PointerType::get(new_func_type, 0); in fixupX86StructRetCalls()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp88 PointerType *VoidPtrType = Type::getInt8PtrTy(C); in addEmuTlsVar()
117 PointerType *InitPtrType = InitValue ? in addEmuTlsVar()
118 PointerType::getUnqual(InitValue->getType()) : VoidPtrType; in addEmuTlsVar()

12345678910>>...14