Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h33 class PointerType; variable
471 static PointerType *getHalfPtrTy(LLVMContext &C, unsigned AS = 0);
473 static PointerType *getFloatPtrTy(LLVMContext &C, unsigned AS = 0);
476 static PointerType *getFP128PtrTy(LLVMContext &C, unsigned AS = 0);
481 static PointerType *getInt1PtrTy(LLVMContext &C, unsigned AS = 0);
482 static PointerType *getInt8PtrTy(LLVMContext &C, unsigned AS = 0);
483 static PointerType *getInt16PtrTy(LLVMContext &C, unsigned AS = 0);
484 static PointerType *getInt32PtrTy(LLVMContext &C, unsigned AS = 0);
485 static PointerType *getInt64PtrTy(LLVMContext &C, unsigned AS = 0);
490 PointerType *getPointerTo(unsigned AddrSpace = 0) const;
[all …]
H A DDerivedTypes.h631 class PointerType : public Type {
632 explicit PointerType(Type *ElType, unsigned AddrSpace);
633 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
638 PointerType(const PointerType &) = delete;
639 PointerType &operator=(const PointerType &) = delete;
650 static PointerType *getUnqual(Type *ElementType) { in getUnqual()
651 return PointerType::get(ElementType, 0); in getUnqual()
656 static PointerType *getUnqual(LLVMContext &C) { in getUnqual()
657 return PointerType::get(C, 0); in getUnqual()
665 static PointerType *getWithSamePointeeType(PointerType *PT, in getWithSamePointeeType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp64 if (auto *PTy = dyn_cast<PointerType>(this)) in isOpaquePointerTy()
103 if (auto *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo()
104 if (auto *OtherPTy = dyn_cast<PointerType>(Ty)) in canLosslesslyBitCastTo()
693 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get()
712 PointerType *PointerType::get(LLVMContext &C, unsigned AddressSpace) { in get()
716 PointerType *&Entry = in get()
726 PointerType::PointerType(Type *E, unsigned AddrSpace) in PointerType() function in PointerType
733 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) in PointerType() function in PointerType
738 PointerType *Type::getPointerTo(unsigned AddrSpace) const { in getPointerTo()
742 bool PointerType::isValidElementType(Type *ElemTy) { in isValidElementType()
[all …]
H A DBuiltinGCs.cpp77 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
109 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
H A DIRBuilder.cpp64 auto *PT = cast<PointerType>(Ptr->getType()); in getCastedInt8PtrValue()
425 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeStart()
441 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeEnd()
458 assert(isa<PointerType>(Ptr->getType()) && in CreateInvariantStart()
507 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedLoad()
527 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedStore()
1006 assert(isa<PointerType>(Ptr->getType()) && in CreateLaunderInvariantGroup()
1030 assert(isa<PointerType>(Ptr->getType()) && in CreateStripInvariantGroup()
1147 assert(isa<PointerType>(BaseType) && in CreatePreserveArrayAccessIndex()
1177 assert(isa<PointerType>(Base->getType()) && in CreatePreserveUnionAccessIndex()
[all …]
/freebsd-13.1/contrib/llvm-project/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;
H A DCGOpenCLRuntime.cpp46 return llvm::PointerType::get( \ in convertOpenCLSpecificType()
53 return llvm::PointerType::get( in convertOpenCLSpecificType()
56 return llvm::PointerType::get( in convertOpenCLSpecificType()
59 return llvm::PointerType::get( in convertOpenCLSpecificType()
62 return llvm::PointerType::get( in convertOpenCLSpecificType()
66 return llvm::PointerType::get( \ in convertOpenCLSpecificType()
82 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
89 llvm::PointerType *CGOpenCLRuntime::getSamplerType(const Type *T) { in getSamplerType()
91 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
118 llvm::PointerType *CGOpenCLRuntime::getGenericVoidPointerType() { in getGenericVoidPointerType()
H A DCGOpenCLRuntime.h40 llvm::PointerType *SamplerTy;
69 llvm::PointerType *getSamplerType(const Type *T);
80 llvm::PointerType *getGenericVoidPointerType();
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td155 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> :
974 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo…
975 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo…
978 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo…
979 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo…
982 def : Builtin<name, [Void, Int, PointerType<Event, GenericAS>]>;
1130 [Bool, PointerType<VolatileType<TypePair[0]>, GenericAS>,
1131 PointerType<TypePair[1], GenericAS>, TypePair[1]]>;
1166 [Void, PointerType<VolatileType<AtomicFlag>, GenericAS>]>;
1173 [Bool, PointerType<VolatileType<AtomicFlag>, GenericAS>]>;
[all …]
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 (isa<PointerType>(ToQTy)) { in tryToFixConversion()
H A DSemaCast.cpp773 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
810 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
1387 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1575 const PointerType *DestPointer = DestType->getAs<PointerType>(); in TryStaticPointerDowncast()
1580 const PointerType *SrcPointer = SrcType->getAs<PointerType>(); in TryStaticPointerDowncast()
2040 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL()
2603 while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) { in checkAddressSpaceCast()
2604 const PointerType *DestPPtr = cast<PointerType>(DestPtr); in checkAddressSpaceCast()
2605 const PointerType *SrcPPtr = cast<PointerType>(SrcPtr); in checkAddressSpaceCast()
3078 const PointerType *CastPtr = DestType->getAs<PointerType>(); in CheckCStyleCast()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp53 const char *Name, PointerType Pointer) { in start()
72 if (Pointer == PointerType::None) { in start()
90 if (Pointer == PointerType::Reference) in start()
154 if (Pointer == PointerType::Pointer) in start()
156 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
167 if (Pointer != FunctionDumper::PointerType::None) in start()
176 if (Pointer != FunctionDumper::PointerType::None) { in start()
177 if (Pointer == PointerType::Pointer) in start()
179 else if (Pointer == FunctionDumper::PointerType::Reference) in start()
249 PointerType Pointer = in dump()
[all …]
H A DPrettyTypedefDumper.cpp60 FunctionDumper::PointerType Pointer = FunctionDumper::PointerType::Pointer; in dump()
62 Pointer = FunctionDumper::PointerType::Reference; in dump()
76 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);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp32 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize()
33 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize()
53 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopKnownSize()
54 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopKnownSize()
108 PointerType *SrcPtrType = PointerType::get(OpTy, SrcAS); in createMemCpyLoopKnownSize()
118 PointerType *DstPtrType = PointerType::get(OpTy, DstAS); in createMemCpyLoopKnownSize()
146 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize()
147 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize()
155 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopUnknownSize()
156 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopUnknownSize()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp187 auto *NewBCType = PointerType::getWithSamePointeeType( in convertToParamAS()
188 cast<PointerType>(BC->getType()), ADDRESS_SPACE_PARAM); in convertToParamAS()
232 PointerType *PType = dyn_cast<PointerType>(Arg->getType()); in handleByValParam()
270 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
291 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
320 PointerType::getWithSamePointeeType(cast<PointerType>(Ptr->getType()), in markPointerAsGlobal()
/freebsd-13.1/contrib/llvm-project/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()
838 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_strCommon()
867 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()
/freebsd-13.1/contrib/llvm-project/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;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp152 PointerType *GuardFnPtrType = nullptr;
194 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch()
235 GuardFnPtrType = PointerType::get(GuardFnType, 0); in doInitialization()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp107 llvm::PointerType *return_type_ptr_type = in cloneToStructRetFnTy()
108 llvm::PointerType::getUnqual(orig->getReturnType()); in cloneToStructRetFnTy()
176 llvm::PointerType *new_func_ptr_type = in fixupX86StructRetCalls()
177 llvm::PointerType::get(new_func_type, 0); in fixupX86StructRetCalls()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp89 PointerType *VoidPtrType = Type::getInt8PtrTy(C); in addEmuTlsVar()
118 PointerType *InitPtrType = InitValue ? in addEmuTlsVar()
119 PointerType::getUnqual(InitValue->getType()) : VoidPtrType; in addEmuTlsVar()
H A DShadowStackGCLowering.cpp195 PointerType *FrameMapPtrTy = PointerType::getUnqual(FrameMapTy); in doInitialization()
206 EltTys.push_back(PointerType::getUnqual(StackEntryTy)); in doInitialization()
209 PointerType *StackEntryPtrTy = PointerType::getUnqual(StackEntryTy); in doInitialization()
/freebsd-13.1/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp57 cast<PointerType>(Ptr->getType())->getElementType(), Ptr, "L", &*IP); in newSource()
127 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink()
142 if (auto PtrTy = dyn_cast<PointerType>(Inst->getType())) { in findPointer()

12345678910>>...14