/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenTypeCache.h | 23 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 D | CGGPUBuiltin.cpp | 26 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 D | CGOpenCLRuntime.cpp | 46 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 D | WithCache.h | 36 using PointerType = conditionally_const_t<UnderlyingType *, IsConst>; variable 43 mutable PointerIntPair<PointerType, 1, bool> Pointer; 52 WithCache(PointerType Pointer) : Pointer(Pointer, false) {} in WithCache() 53 WithCache(PointerType Pointer, const KnownBits &Known) in WithCache() 56 [[nodiscard]] PointerType getValue() const { return Pointer.getPointer(); } in getValue() 66 operator PointerType() const { return Pointer.getPointer(); } in PointerType() function 67 PointerType operator->() const { return Pointer.getPointer(); }
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | PrettyFunctionDumper.cpp | 56 const char *Name, PointerType Pointer) { in start() 75 if (Pointer == PointerType::None) { in start() 93 if (Pointer == PointerType::Reference) 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() 252 PointerType Pointer = in dump() [all …]
|
H A D | PrettyTypedefDumper.cpp | 62 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 D | PrettyFunctionDumper.h | 22 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 D | OffloadWrapper.cpp | 47 PointerType::getUnqual(C), 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() 252 PointerType::getUnqual(C), PointerType::getUnqual(C)); in getFatbinWrapperTy() 328 PointerType *Int8PtrTy = PointerType::get(C, 0); in createRegisterGlobalsFunction() 329 PointerType *Int8PtrPtrTy = PointerType::get(C, 0); in createRegisterGlobalsFunction() 330 PointerType *Int32PtrTy = PointerType::get(C, 0); in createRegisterGlobalsFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | BuiltinGCs.cpp | 78 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer() 111 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
|
H A D | Type.cpp | 264 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/clang/lib/Sema/ |
H A D | SemaFixItUtils.cpp | 34 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 D | OpenCLBuiltins.td | 199 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> : 954 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo… 955 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo… 958 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo… 959 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo… 962 def : Builtin<name, [Void, Int, PointerType<Event, GenericAS>]>; 1057 def : Builtin<name, [Type, PointerType<VolatileType<Type>, AS>]>; 1123 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, 1128 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, 1133 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, [all …]
|
H A D | SemaCast.cpp | 797 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast() 834 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast() 1436 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast() 1624 const PointerType *DestPointer = DestType->getAs<PointerType>(); in TryStaticPointerDowncast() 1629 const PointerType *SrcPointer = SrcType->getAs<PointerType>(); in TryStaticPointerDowncast() 2089 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL() 2658 while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) { in checkAddressSpaceCast() 2659 const PointerType *DestPPtr = cast<PointerType>(DestPtr); in checkAddressSpaceCast() 2660 const PointerType *SrcPPtr = cast<PointerType>(SrcPtr); in checkAddressSpaceCast() 3196 const PointerType *CastPtr = DestType->getAs<PointerType>(); in CheckCStyleCast() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SanitizerStats.cpp | 24 StatTy = ArrayType::get(PointerType::getUnqual(M->getContext()), 2); in SanitizerStatReport() 37 {PointerType::getUnqual(M->getContext()), in makeModuleStatsTy() 45 PointerType *PtrTy = B.getPtrTy(); in create() 76 PointerType *Int8PtrTy = PointerType::getUnqual(M->getContext()); in finish()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | IRDynamicChecks.cpp | 238 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_ty = nullptr;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPromoteKernelArguments.cpp | 101 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/include/llvm/IR/ |
H A D | DerivedTypes.h | 646 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/lib/Target/NVPTX/ |
H A D | NVPTXCtorDtorLowering.cpp | 138 PointerType::get(C, 0), [&]() { in createInitOrFiniCalls() 140 M, PointerType::get(C, 0), in createInitOrFiniCalls() 142 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls() 150 IsCtor ? "__init_array_end" : "__fini_array_end", PointerType::get(C, 0), in createInitOrFiniCalls() 153 M, PointerType::get(C, 0), in createInitOrFiniCalls() 155 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls() 178 auto *ValuePtr = IRB.CreateGEP(PointerType::get(C, 0), BeginVal, in createInitOrFiniCalls() 182 PointerType::get(C, 0), ValuePtr, in createInitOrFiniCalls()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastToStructChecker.cpp | 45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr() 46 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in VisitCastExpr()
|
H A D | CheckSecuritySyntaxOnly.cpp | 361 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcmp() 403 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcopy() 445 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_bzero() 487 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets() 527 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw() 567 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_mktemp() 835 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_strCommon() 869 const PointerType *PT = FTP->getParamType(0)->getAs<PointerType>(); in checkCall_rand()
|
H A D | MallocSizeofChecker.cpp | 140 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 D | CrossDSOCFI.cpp | 88 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 D | LowerEmuTLS.cpp | 111 PointerType *VoidPtrType = PointerType::getUnqual(C); in addEmuTlsVar() 140 PointerType *InitPtrType = PointerType::getUnqual(C); in addEmuTlsVar()
|
H A D | ShadowStackGCLowering.cpp | 151 Type *VoidPtr = PointerType::getUnqual(F.getContext()); in GetFrameMap() 237 PointerType *FrameMapPtrTy = PointerType::getUnqual(FrameMapTy); in doInitialization() 248 EltTys.push_back(PointerType::getUnqual(StackEntryTy)); in doInitialization() 251 PointerType *StackEntryPtrTy = PointerType::getUnqual(StackEntryTy); in doInitialization()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86WinEHState.cpp | 175 Type *Int8PtrType = PointerType::getUnqual(TheModule->getContext()); in runOnFunction() 215 PointerType::getUnqual( in getEHLinkRegistrationType() 217 PointerType::getUnqual(Context) // EXCEPTION_DISPOSITION (*Handler)(...) in getEHLinkRegistrationType() 234 PointerType::getUnqual(Context), // void *SavedESP in getCXXEHRegistrationType() 256 PointerType::getUnqual(Context), // void *SavedESP in getSEHRegistrationType() 257 PointerType::getUnqual(Context), // void *ExceptionPointers in getSEHRegistrationType() 386 Type *Int8PtrType = PointerType::getUnqual(Context); in generateLSDAInEAXThunk() 426 Constant *FSZero = Constant::getNullValue(PointerType::get(C, 257)); in linkExceptionRegistration() 427 Value *Next = Builder.CreateLoad(PointerType::getUnqual(C), FSZero); in linkExceptionRegistration() 444 Value *Next = Builder.CreateLoad(PointerType::getUnqual(C), in unlinkExceptionRegistration() [all …]
|