Home
last modified time | relevance | path

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

12345678910>>...15

/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 DCGGPUBuiltin.cpp26 llvm::Type *ArgTypes[] = {llvm::PointerType::getUnqual(M.getContext()), in GetVprintfDeclaration()
27 llvm::PointerType::getUnqual(M.getContext())}; in GetVprintfDeclaration()
48 llvm::Type *ArgTypes[] = {llvm::PointerType::getUnqual(M.getContext()), in GetOpenMPVprintfDeclaration()
49 llvm::PointerType::getUnqual(M.getContext()), in GetOpenMPVprintfDeclaration()
103 llvm::ConstantPointerNull::get(llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
124 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
H A DAddress.h72 llvm::PointerType *getType() const { in getType()
73 return llvm::cast<llvm::PointerType>(getPointer()->getType()); in getType()
199 llvm::PointerType *getType() const { in getType()
200 return llvm::PointerType::get( in getType()
202 llvm::cast<llvm::PointerType>(Pointer.getPointer()->getType()) in getType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h32 class PointerType; variable
254 /// True if this is an instance of PointerType.
257 /// True if this is an instance of an opaque PointerType.
489 /// PointerType::get(Foo, AddrSpace).
491 PointerType *getPointerTo(unsigned AddrSpace = 0) const;
506 // allow isa<PointerType>(x) to work without DerivedTypes.h included.
507 template <> struct isa_impl<PointerType, Type> {
H A DDerivedTypes.h646 class PointerType : public Type {
647 explicit PointerType(LLVMContext &C, unsigned AddrSpace);
650 PointerType(const PointerType &) = delete;
651 PointerType &operator=(const PointerType &) = delete;
655 static PointerType *get(Type *ElementType, unsigned AddressSpace);
658 static PointerType *get(LLVMContext &C, unsigned AddressSpace);
662 static PointerType *getUnqual(Type *ElementType) { in getUnqual()
663 return PointerType::get(ElementType, 0); in getUnqual()
668 static PointerType *getUnqual(LLVMContext &C) { in getUnqual()
669 return PointerType::get(C, 0); in getUnqual()
[all …]
/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/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(getDeviceImageTy(M)); in getDeviceImagePtrTy()
68 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getBinDescTy()
72 PointerType *getBinDescPtrTy(Module &M) { in getBinDescPtrTy()
73 return PointerType::getUnqual(getBinDescTy(M)); in getBinDescPtrTy()
227 Type::getInt32Ty(C), PointerType::getUnqual(C), /*isVarArg=*/false); in createRegisterFunction()
260 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getFatbinWrapperTy()
[all …]
H A DUtility.cpp25 "struct.__tgt_offload_entry", PointerType::getUnqual(C), in getEntryTy()
26 PointerType::getUnqual(C), M.getDataLayout().getIntPtrType(C), in getEntryTy()
37 Type *Int8PtrTy = PointerType::getUnqual(M.getContext()); in getOffloadingEntryInitializer()
/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.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.cpp184 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
186 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref()
539 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast()
544 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
805 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
842 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
1303 auto *SrcPtrType = SrcType->getAs<PointerType>(); in IsAddressSpaceConversion()
1306 auto *DestPtrType = DestType->getAs<PointerType>(); in IsAddressSpaceConversion()
1444 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1447 if (const PointerType *DestPointer = DestType->getAs<PointerType>()) { in TryStaticCast()
[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.cpp264 static PointerType *Ty = PointerType::get(C, 10); in getWasm_ExternrefTy()
270 static PointerType *Ty = PointerType::get(C, 20); in getWasm_FuncrefTy()
735 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get()
743 PointerType *PointerType::get(LLVMContext &C, unsigned AddressSpace) { in get()
747 PointerType *&Entry = AddressSpace == 0 ? CImpl->AS0PointerType in get()
751 Entry = new (CImpl->Alloc) PointerType(C, AddressSpace); in get()
755 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) in PointerType() function in PointerType
760 PointerType *Type::getPointerTo(unsigned AddrSpace) const { in getPointerTo()
761 return PointerType::get(const_cast<Type*>(this), AddrSpace); in getPointerTo()
764 bool PointerType::isValidElementType(Type *ElemTy) { in isValidElementType()
[all …]
/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/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp139 PointerType::get(C, 0), [&]() { in createInitOrFiniCalls()
141 M, PointerType::get(C, 0), in createInitOrFiniCalls()
143 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
151 IsCtor ? "__init_array_end" : "__fini_array_end", PointerType::get(C, 0), in createInitOrFiniCalls()
154 M, PointerType::get(C, 0), in createInitOrFiniCalls()
156 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
179 auto *ValuePtr = IRB.CreateGEP(PointerType::get(C, 0), BeginVal, in createInitOrFiniCalls()
183 PointerType::get(C, 0), ValuePtr, in createInitOrFiniCalls()
H A DNVPTXLowerArgs.cpp245 auto *NewBCType = PointerType::get(BC->getContext(), ADDRESS_SPACE_PARAM); in INITIALIZE_PASS_DEPENDENCY()
259 PointerType *ReturnTy = in INITIALIZE_PASS_DEPENDENCY()
260 PointerType::get(OriginalUser->getContext(), ADDRESS_SPACE_GENERIC); in INITIALIZE_PASS_DEPENDENCY()
263 {ReturnTy, PointerType::get(OriginalUser->getContext(), in INITIALIZE_PASS_DEPENDENCY()
462 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
514 Arg, PointerType::get(Arg->getContext(), ADDRESS_SPACE_PARAM), in handleByValParam()
543 Ptr, PointerType::get(Ptr->getContext(), ADDRESS_SPACE_GLOBAL), in markPointerAsGlobal()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp238 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildPointerValidatorFunc()
244 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildPointerValidatorFunc()
261 param_array[0] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
262 param_array[1] = const_cast<llvm::PointerType *>(GetI8PtrTy()); in BuildObjectCheckerFunc()
268 PointerType *fun_ptr_ty = PointerType::getUnqual(fun_ty); in BuildObjectCheckerFunc()
274 PointerType *GetI8PtrTy() { in GetI8PtrTy()
276 m_i8ptr_ty = llvm::PointerType::getUnqual(m_module.getContext()); in GetI8PtrTy()
301 PointerType *m_i8ptr_t
[all...]
/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.cpp140 if (B->isVoidPointerType() && A->getAs<PointerType>()) in typesCompatible()
144 if (A->isVoidPointerType() && B->getAs<PointerType>()) in typesCompatible()
154 if (const PointerType *ptrA = A->getAs<PointerType>()) in typesCompatible()
155 if (const PointerType *ptrB = B->getAs<PointerType>()) { in typesCompatible()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp88 PointerType::getUnqual(Ctx), PointerType::getUnqual(Ctx)); in buildCFICheck()
114 "__cfi_check_fail", Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), in buildCFICheck()
115 PointerType::getUnqual(Ctx)); in buildCFICheck()
/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/Target/BPF/
H A DBPFASpaceCastSimplifyPass.cpp43 static PointerType *changeAddressSpace(PointerType *Ty, unsigned AS) { in changeAddressSpace()
59 auto *GEPTy = cast<PointerType>(GEP->getType()); in rewrite()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h45 PointerType *const Int8Ptr;
184 PointerType *getSwitchResumePointerType() const { in getSwitchResumePointerType()
187 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
194 PointerType::getUnqual(FrameTy->getContext()), in getResumeFunctionType()

12345678910>>...15