Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypeCache.h23 class PointerType; variable
56 llvm::PointerType *UnqualPtrTy;
57 llvm::PointerType *VoidPtrTy;
58 llvm::PointerType *Int8PtrTy;
59 llvm::PointerType *VoidPtrPtrTy;
60 llvm::PointerType *Int8PtrPtrTy;
65 llvm::PointerType *AllocaVoidPtrTy;
66 llvm::PointerType *AllocaInt8PtrTy;
71 llvm::PointerType *GlobalsVoidPtrTy;
72 llvm::PointerType *GlobalsInt8PtrTy;
[all …]
H A DCGOpenCLRuntime.cpp46 llvm::PointerType *CGOpenCLRuntime::getPointerType(const Type *T) { in getPointerType()
49 return llvm::PointerType::get(CGM.getLLVMContext(), AddrSpc); in getPointerType()
101 llvm::PointerType *CGOpenCLRuntime::getGenericVoidPointerType() { in getGenericVoidPointerType()
103 return llvm::PointerType::get( in getGenericVoidPointerType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DWithCache.h37 using PointerType = conditionally_const_t<UnderlyingType *, IsConst>; variable
44 mutable PointerIntPair<PointerType, 1, bool> Pointer;
53 WithCache(PointerType Pointer) : Pointer(Pointer, false) {} in WithCache()
54 WithCache(PointerType Pointer, const KnownBits &Known) in WithCache()
57 [[nodiscard]] PointerType getValue() const { return Pointer.getPointer(); } in getValue()
67 operator PointerType() const { return Pointer.getPointer(); } in PointerType() function
68 PointerType operator->() const { return Pointer.getPointer(); }
/freebsd/contrib/llvm-project/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);
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DAddress.h47 assert(mlir::isa<cir::PointerType>(pointer.getType()) && in Address()
54 assert(mlir::cast<cir::PointerType>(pointer.getType()).getPointee() == in Address()
60 mlir::cast<cir::PointerType>(pointer.getType()).getPointee(), in Address()
88 assert(mlir::cast<cir::PointerType>( in getType()
92 return mlir::cast<cir::PointerType>(getPointer().getType()); in getType()
97 assert(mlir::cast<cir::PointerType>( in getElementType()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp46 StructType::create("__tgt_device_image", PointerType::getUnqual(C), in getDeviceImageTy()
47 PointerType::getUnqual(C), PointerType::getUnqual(C), in getDeviceImageTy()
48 PointerType::getUnqual(C)); in getDeviceImageTy()
52 PointerType *getDeviceImagePtrTy(Module &M) { in getDeviceImagePtrTy()
53 return PointerType::getUnqual(M.getContext()); in getDeviceImagePtrTy()
68 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getBinDescTy()
72 PointerType *getBinDescPtrTy(Module &M) { in getBinDescPtrTy()
73 return PointerType::getUnqual(M.getContext()); in getBinDescPtrTy()
227 Type::getInt32Ty(C), PointerType::getUnqual(C), /*isVarArg=*/false); in createRegisterFunction()
260 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getFatbinWrapperTy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DBuiltinGCs.cpp78 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
111 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
H A DType.cpp307 static PointerType *Ty = PointerType::get(C, 10); in getWasm_ExternrefTy()
313 static PointerType *Ty = PointerType::get(C, 20); in getWasm_FuncrefTy()
849 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get()
857 PointerType *PointerType::get(LLVMContext &C, unsigned AddressSpace) { in get()
861 PointerType *&Entry = AddressSpace == 0 ? CImpl->AS0PointerType in get()
865 Entry = new (CImpl->Alloc) PointerType(C, AddressSpace); in get()
869 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) in PointerType() function in PointerType
874 PointerType *Type::getPointerTo(unsigned AddrSpace) const { in getPointerTo()
875 return PointerType::get(getContext(), AddrSpace); in getPointerTo()
878 bool PointerType::isValidElementType(Type *ElemTy) { in isValidElementType()
[all …]
/freebsd/contrib/llvm-project/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.td203 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> :
372 def "HalfPtr" # AS : PointerType<Type<"__half", QualType<"Context.HalfTy">>, AS>;
373 def "HalfPtrConst" # AS : PointerType<ConstType<Type<"__half", QualType<"Context.HalfTy">>>, AS>;
623 def : Builtin<name, [FGenTypeN, FGenTypeN, PointerType<FGenTypeN, AS>]>;
627 def : Builtin<name, [Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
632 def : Builtin<name, [Type, Type, Type, PointerType<GenTypeIntVecAndScalar, AS>]>;
856 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>;
857 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure…
858 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure…
859 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu…
[all …]
H A DSemaCast.cpp227 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
229 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref()
588 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast()
593 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
855 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
892 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
1377 auto *SrcPtrType = SrcType->getAs<PointerType>(); in IsAddressSpaceConversion()
1380 auto *DestPtrType = DestType->getAs<PointerType>(); in IsAddressSpaceConversion()
1519 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1522 if (const PointerType *DestPointer = DestType->getAs<PointerType>()) { in TryStaticCast()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp107 PointerType::get(C, 0), [&]() { in createInitOrFiniCalls()
109 M, PointerType::get(C, 0), in createInitOrFiniCalls()
111 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
119 IsCtor ? "__init_array_end" : "__fini_array_end", PointerType::get(C, 0), in createInitOrFiniCalls()
122 M, PointerType::get(C, 0), in createInitOrFiniCalls()
124 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
147 auto *ValuePtr = IRB.CreateGEP(PointerType::get(C, 0), BeginVal, in createInitOrFiniCalls()
151 PointerType::get(C, 0), ValuePtr, in createInitOrFiniCalls()
H A DNVPTXLowerAlloca.cpp67 PointerType *AllocInstPtrTy = in runOnFunction()
68 cast<PointerType>(allocaInst->getType()->getScalarType()); in runOnFunction()
90 PointerType::get(ETy->getContext(), ADDRESS_SPACE_LOCAL), ""); in runOnFunction()
97 PointerType::get(ETy->getContext(), ADDRESS_SPACE_GENERIC), ""); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp101 PointerType *PT = dyn_cast<PointerType>(Ptr->getType()); in promotePointer()
118 PointerType *NewPT = in promotePointer()
119 PointerType::get(PT->getContext(), AMDGPUAS::GLOBAL_ADDRESS); in promotePointer()
170 PointerType *PT = dyn_cast<PointerType>(Arg.getType()); in run()
/freebsd/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 DMallocSizeofChecker.cpp138 if (B->isVoidPointerType() && A->getAs<PointerType>()) in typesCompatible()
142 if (A->isVoidPointerType() && B->getAs<PointerType>()) in typesCompatible()
152 if (const PointerType *ptrA = A->getAs<PointerType>()) in typesCompatible()
153 if (const PointerType *ptrB = B->getAs<PointerType>()) { in typesCompatible()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h700 class PointerType : public Type {
701 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
704 PointerType(const PointerType &) = delete;
705 PointerType &operator=(const PointerType &) = delete;
711 LLVM_ABI static PointerType *get(Type *ElementType, unsigned AddressSpace);
714 LLVM_ABI static PointerType *get(LLVMContext &C, unsigned AddressSpace);
720 static PointerType *getUnqual(Type *ElementType) { in getUnqual()
724 return PointerType::getUnqual(ElementType->getContext()); in getUnqual()
729 static PointerType *getUnqual(LLVMContext &C) { in getUnqual()
730 return PointerType::get(C, 0); in getUnqual()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp225 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
226 param_array[1] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
232 PointerType *fun_ptr_ty = PointerType::getUnqual(m_module.getContext()); in BuildObjectCheckerFunc()
238 PointerType *GetI8PtrTy() { in GetI8PtrTy()
240 m_i8ptr_ty = llvm::PointerType::getUnqual(m_module.getContext()); in GetI8PtrTy()
264 PointerType *m_i8ptr_ty = nullptr;
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/
H A DCIROpenACCTypeInterfaces.cpp38 return mlir::cast<cir::PointerType>(varPtr.getType()).getPointee(); in getBaseType()
43 OpenACCPointerLikeModel<cir::PointerType>::getPointeeTypeCategory( in getPointeeTypeCategory()
52 mlir::isa<cir::BoolType>(eleTy) || mlir::isa<cir::PointerType>(eleTy)) in getPointeeTypeCategory()
H A DRegisterOpenACCExtensions.cpp22 cir::PointerType::attachInterface< in registerOpenACCExtensions()
23 OpenACCPointerLikeModel<cir::PointerType>>(*ctx); in registerOpenACCExtensions()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp111 PointerType *VoidPtrType = PointerType::getUnqual(C); in addEmuTlsVar()
140 PointerType *InitPtrType = PointerType::getUnqual(C); in addEmuTlsVar()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp87 PointerType::getUnqual(Ctx), PointerType::getUnqual(Ctx)); in buildCFICheck()
113 "__cfi_check_fail", Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), in buildCFICheck()
114 PointerType::getUnqual(Ctx)); in buildCFICheck()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFASpaceCastSimplifyPass.cpp43 static PointerType *changeAddressSpace(PointerType *Ty, unsigned AS) { in changeAddressSpace()
59 auto *GEPTy = cast<PointerType>(GEP->getType()); in rewrite()

12345678910>>...18