| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | TypesTest.cpp | 41 PointerType *P1 = PointerType::get(COpaquePointers, 1); in TEST() 43 PointerType *P1C = PointerType::getWithSamePointeeType(P1, 1); in TEST() 46 PointerType *P1C0 = PointerType::getWithSamePointeeType(P1, 0); in TEST() 53 PointerType *P2 = PointerType::get(Int8, 1); in TEST() 55 PointerType *P2C = PointerType::getWithSamePointeeType(P2, 1); in TEST() 58 PointerType *P2C0 = PointerType::getWithSamePointeeType(P2, 0); in TEST()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenTypeCache.h | 23 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;
|
| H A D | CGOpenCLRuntime.h | 41 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 D | CGOpenCLRuntime.cpp | 62 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Type.h | 32 class PointerType; variable 461 static PointerType *getHalfPtrTy(LLVMContext &C, unsigned AS = 0); 463 static PointerType *getFloatPtrTy(LLVMContext &C, unsigned AS = 0); 466 static PointerType *getFP128PtrTy(LLVMContext &C, unsigned AS = 0); 471 static PointerType *getInt1PtrTy(LLVMContext &C, unsigned AS = 0); 472 static PointerType *getInt8PtrTy(LLVMContext &C, unsigned AS = 0); 473 static PointerType *getInt16PtrTy(LLVMContext &C, unsigned AS = 0); 474 static PointerType *getInt32PtrTy(LLVMContext &C, unsigned AS = 0); 475 static PointerType *getInt64PtrTy(LLVMContext &C, unsigned AS = 0); 480 PointerType *getPointerTo(unsigned AddrSpace = 0) const; [all …]
|
| H A D | DerivedTypes.h | 632 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; 651 static PointerType *getUnqual(Type *ElementType) { in getUnqual() 652 return PointerType::get(ElementType, 0); in getUnqual() 657 static PointerType *getUnqual(LLVMContext &C) { in getUnqual() 658 return PointerType::get(C, 0); in getUnqual() 666 static PointerType *getWithSamePointeeType(PointerType *PT, in getWithSamePointeeType() [all …]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Native/ |
| H A D | pdb-native-pointers.test | 42 ; CHECK-NEXT: symTag: PointerType 54 ; CHECK-NEXT: symTag: PointerType 66 ; CHECK-NEXT: symTag: PointerType 78 ; CHECK-NEXT: symTag: PointerType 90 ; CHECK-NEXT: symTag: PointerType 102 ; CHECK-NEXT: symTag: PointerType 114 ; CHECK-NEXT: symTag: PointerType 126 ; CHECK-NEXT: symTag: PointerType 138 ; CHECK-NEXT: symTag: PointerType 150 ; CHECK-NEXT: symTag: PointerType [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Type.cpp | 62 if (auto *PTy = dyn_cast<PointerType>(this)) in isOpaquePointerTy() 139 if (auto *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo() 140 if (auto *OtherPTy = dyn_cast<PointerType>(Ty)) in canLosslesslyBitCastTo() 727 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() 746 PointerType *PointerType::get(LLVMContext &C, unsigned AddressSpace) { in get() 752 PointerType *&Entry = in get() 762 PointerType::PointerType(Type *E, unsigned AddrSpace) in PointerType() function in PointerType 769 PointerType::PointerType(LLVMContext &C, unsigned AddrSpace) in PointerType() function in PointerType 774 PointerType *Type::getPointerTo(unsigned AddrSpace) const { in getPointerTo() 778 bool PointerType::isValidElementType(Type *ElemTy) { in isValidElementType() [all …]
|
| H A D | BuiltinGCs.cpp | 77 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer() 109 const PointerType *PT = cast<PointerType>(Ty); in isGCManagedPointer()
|
| /llvm-project-15.0.7/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);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.cpp | 40 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize() 41 unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize() 67 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopKnownSize() 68 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopKnownSize() 139 PointerType *SrcPtrType = PointerType::get(OpTy, SrcAS); in createMemCpyLoopKnownSize() 153 PointerType *DstPtrType = PointerType::get(OpTy, DstAS); in createMemCpyLoopKnownSize() 195 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize() 209 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopUnknownSize() 210 PointerType *DstOpType = PointerType::get(LoopOpType, DstAS); in createMemCpyLoopUnknownSize() 309 SrcAddr, PointerType::get(ResLoopOpType, SrcAS)); in createMemCpyLoopUnknownSize() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | OpenCLBuiltins.td | 199 class PointerType<Type _Ty, AddressSpace _AS = DefaultAS> : 953 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo… 954 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo… 957 …def : Builtin<name, [Event, PointerType<AGenTypeN, LocalAS>, PointerType<ConstType<AGenTypeN>, Glo… 958 …def : Builtin<name, [Event, PointerType<AGenTypeN, GlobalAS>, PointerType<ConstType<AGenTypeN>, Lo… 961 def : Builtin<name, [Void, Int, PointerType<Event, GenericAS>]>; 1056 def : Builtin<name, [Type, PointerType<VolatileType<Type>, AS>]>; 1122 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, 1127 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, 1132 [Bool, PointerType<VolatileType<TypePair[0]>, addrspace>, [all …]
|
| 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 (isa<PointerType>(ToQTy)) { in tryToFixConversion()
|
| H A D | SemaCast.cpp | 773 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast() 810 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast() 1389 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast() 1577 const PointerType *DestPointer = DestType->getAs<PointerType>(); in TryStaticPointerDowncast() 1582 const PointerType *SrcPointer = SrcType->getAs<PointerType>(); in TryStaticPointerDowncast() 2042 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL() 2605 while (isa<PointerType>(DestPtr) && isa<PointerType>(SrcPtr)) { in checkAddressSpaceCast() 2606 const PointerType *DestPPtr = cast<PointerType>(DestPtr); in checkAddressSpaceCast() 2607 const PointerType *SrcPPtr = cast<PointerType>(SrcPtr); in checkAddressSpaceCast() 3103 const PointerType *CastPtr = DestType->getAs<PointerType>(); in CheckCStyleCast() [all …]
|
| /llvm-project-15.0.7/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::getWithSamePointeeType(PT, AMDGPUAS::GLOBAL_ADDRESS); in promotePointer() 170 PointerType *PT = dyn_cast<PointerType>(Arg.getType()); in run()
|
| /llvm-project-15.0.7/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 | 363 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 D | MallocSizeofChecker.cpp | 139 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()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | IRDynamicChecks.cpp | 241 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;
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | SValTest.cpp | 243 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context)); 249 const auto *BPtrTy = dyn_cast<PointerType>(B.getType(Context)); 255 const auto *CPtrTy = dyn_cast<PointerType>(C.getType(Context)); 267 const auto *EPtrTy = dyn_cast<PointerType>(E.getType(Context)); 273 const auto *FPtrTy = dyn_cast<PointerType>(F.getType(Context)); 334 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context)); 349 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context)); 364 const auto *APtrTy = dyn_cast<PointerType>(A.getType(Context));
|
| /llvm-project-15.0.7/llvm/unittests/AsmParser/ |
| H A D | AsmParserTest.cpp | 254 PointerType *PT = cast<PointerType>(Ty); in TEST() 262 PT = cast<PointerType>(Ty); in TEST() 263 Type *ExpectedElemTy = PointerType::getUnqual(Type::getIntNTy(Ctx, 32)); in TEST() 381 PointerType *PT = cast<PointerType>(Ty); in TEST() 390 PT = cast<PointerType>(Ty); in TEST() 391 Type *ExpectedElemTy = PointerType::getUnqual(Type::getIntNTy(Ctx, 32)); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | LowerABIAttributesPass.cpp | 48 spirv::PointerType::get(spirv::StructType::get(varType), *storageClass); in createGlobalVarForEntryPointArgument() 50 auto varPtrType = varType.cast<spirv::PointerType>(); in createGlobalVarForEntryPointArgument() 61 spirv::PointerType::get(varPointeeType, varPtrType.getStorageClass()); in createGlobalVarForEntryPointArgument() 90 switch (var.type().cast<spirv::PointerType>().getStorageClass()) { in getInterfaceVariables() 248 spirv::PointerType type, in runOnOperation() 250 if (inputs.size() != 1 || !inputs[0].getType().isa<spirv::PointerType>()) in runOnOperation()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/CFGuard/ |
| H A D | CFGuard.cpp | 152 PointerType *GuardFnPtrType = nullptr; 200 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch() 241 GuardFnPtrType = PointerType::get(GuardFnType, 0); in doInitialization()
|