Home
last modified time | relevance | path

Searched refs:PointeeTy (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DPointerTypeAnalysis.cpp26 Type *PointeeTy = nullptr; in classifyPointerType() local
29 PointeeTy = Inst->getResultElementType(); in classifyPointerType()
31 PointeeTy = Inst->getAllocatedType(); in classifyPointerType()
49 if (!PointeeTy) in classifyPointerType()
50 PointeeTy = NewPointeeTy; in classifyPointerType()
51 else if (PointeeTy != NewPointeeTy) in classifyPointerType()
52 PointeeTy = Type::getInt8Ty(V->getContext()); in classifyPointerType()
56 if (!PointeeTy) in classifyPointerType()
57 PointeeTy = Type::getInt8Ty(V->getContext()); in classifyPointerType()
58 return TypedPointerType::get(PointeeTy, in classifyPointerType()
H A DDXILPointerType.h25 Type *PointeeTy; variable
41 Type *getElementType() const { return PointeeTy; } in getElementType()
H A DDXILPointerType.cpp56 : Type(E->getContext(), DXILPointerTyID), PointeeTy(E) { in TypedPointerType()
57 ContainedTys = &PointeeTy; in TypedPointerType()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp97 QualType PointeeTy = CastToTy->getPointeeType(); in castRegion() local
98 QualType CanonPointeeTy = Ctx.getCanonicalType(PointeeTy); in castRegion()
149 return MakeElementRegion(cast<SubRegion>(R), PointeeTy); in castRegion()
189 return MakeElementRegion(cast<SubRegion>(baseR), PointeeTy); in castRegion()
203 if (!PointeeTy->isIncompleteType()) { in castRegion()
205 CharUnits pointeeTySize = Ctx.getTypeSizeInChars(PointeeTy); in castRegion()
224 return MakeElementRegion(cast<SubRegion>(newSuperR), PointeeTy, newIndex); in castRegion()
451 QualType PointeeTy = BT->getPointeeType(); in getLValueElement() local
452 if (!PointeeTy.isNull() && in getLValueElement()
453 PointeeTy.getCanonicalType() == elementType.getCanonicalType()) in getLValueElement()
H A DCallEvent.cpp106 QualType PointeeTy = PT->getPointeeType(); in isVoidPointerToNonConst() local
107 if (PointeeTy.isConstQualified()) in isVoidPointerToNonConst()
109 return PointeeTy->isVoidType(); in isVoidPointerToNonConst()
210 QualType PointeeTy = Ty->getPointeeType(); in isPointerToConst() local
211 if (PointeeTy == QualType()) in isPointerToConst()
213 if (!PointeeTy.isConstQualified()) in isPointerToConst()
215 if (PointeeTy->isAnyPointerType()) in isPointerToConst()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h636 Type *PointeeTy; variable
670 return get(PT->PointeeTy, AddressSpace); in getWithSamePointeeType()
673 bool isOpaque() const { return !PointeeTy; } in isOpaque()
689 return isOpaque() || PointeeTy == Ty; in isOpaqueOrPointeeTypeMatches()
697 return PointeeTy == Other->PointeeTy; in hasSameElementTypeAs()
H A DDIBuilder.h255 createPointerType(DIType *PointeeTy, uint64_t SizeInBits,
266 createMemberPointerType(DIType *PointeeTy, DIType *Class,
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp652 QualType PointeeTy = PT->getPointeeType(); in create_OSAtomicCompareAndSwap() local
662 PointeeTy), in create_OSAtomicCompareAndSwap()
663 PointeeTy), in create_OSAtomicCompareAndSwap()
672 PointeeTy), in create_OSAtomicCompareAndSwap()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp1961 static Constant *foldGEPOfGEP(GEPOperator *GEP, Type *PointeeTy, bool InBounds, in foldGEPOfGEP() argument
1963 if (PointeeTy != GEP->getResultElementType()) in foldGEPOfGEP()
2031 Constant *llvm::ConstantFoldGetElementPtr(Type *PointeeTy, Constant *C, in ConstantFoldGetElementPtr() argument
2038 PointeeTy, C, makeArrayRef((Value *const *)Idxs.data(), Idxs.size())); in ConstantFoldGetElementPtr()
2073 Type *Ty = GetElementPtrInst::getIndexedType(PointeeTy, Idxs); in ConstantFoldGetElementPtr()
2099 if (Constant *C = foldGEPOfGEP(GEP, PointeeTy, InBounds, Idxs)) in ConstantFoldGetElementPtr()
2136 Type *Ty = PointeeTy; in ConstantFoldGetElementPtr()
2138 auto GEPIter = gep_type_begin(PointeeTy, Idxs); in ConstantFoldGetElementPtr()
2268 return ConstantExpr::getGetElementPtr(PointeeTy, C, NewIdxs, InBounds, in ConstantFoldGetElementPtr()
2277 return ConstantExpr::getGetElementPtr(PointeeTy, C, Idxs, in ConstantFoldGetElementPtr()
H A DType.cpp763 : Type(E->getContext(), PointerTyID), PointeeTy(E) { in PointerType()
764 ContainedTys = &PointeeTy; in PointerType()
770 : Type(C, PointerTyID), PointeeTy(nullptr) { in PointerType()
H A DDIBuilder.cpp317 DIBuilder::createPointerType(DIType *PointeeTy, uint64_t SizeInBits, in createPointerType() argument
323 nullptr, 0, nullptr, PointeeTy, SizeInBits, in createPointerType()
328 DIDerivedType *DIBuilder::createMemberPointerType(DIType *PointeeTy, in createMemberPointerType() argument
334 nullptr, 0, nullptr, PointeeTy, SizeInBits, in createMemberPointerType()
H A DDebugInfo.cpp1185 LLVMDIBuilderRef Builder, LLVMMetadataRef PointeeTy, in LLVMDIBuilderCreatePointerType() argument
1188 return wrap(unwrap(Builder)->createPointerType(unwrapDI<DIType>(PointeeTy), in LLVMDIBuilderCreatePointerType()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.cpp559 QualType PointeeTy = ArgRegion->getValueType(); in updateOutParameters() local
570 RefVal::makeNotOwned(AE.getObjKind(), PointeeTy)); in updateOutParameters()
574 RefVal::makeOwned(ObjKind::OS, PointeeTy)); in updateOutParameters()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp3073 void BuildPointerTypeInfo(QualType PointeeTy);
3310 QualType PointeeTy = PointerTy->getPointeeType(); in TypeInfoIsInStandardLibrary() local
3311 const BuiltinType *BuiltinTy = dyn_cast<BuiltinType>(PointeeTy); in TypeInfoIsInStandardLibrary()
3316 Qualifiers Quals = PointeeTy.getQualifiers(); in TypeInfoIsInStandardLibrary()
4105 void ItaniumRTTIBuilder::BuildPointerTypeInfo(QualType PointeeTy) { in BuildPointerTypeInfo() argument
4109 unsigned Flags = extractPBaseFlags(CGM.getContext(), PointeeTy); in BuildPointerTypeInfo()
4119 ItaniumRTTIBuilder(CXXABI).BuildTypeInfo(PointeeTy); in BuildPointerTypeInfo()
4127 QualType PointeeTy = Ty->getPointeeType(); in BuildPointerToMemberTypeInfo() local
4132 unsigned Flags = extractPBaseFlags(CGM.getContext(), PointeeTy); in BuildPointerToMemberTypeInfo()
4146 ItaniumRTTIBuilder(CXXABI).BuildTypeInfo(PointeeTy); in BuildPointerToMemberTypeInfo()
H A DCGDebugInfo.cpp1137 QualType PointeeTy, in CreatePointerLikeType() argument
1142 unsigned AddressSpace = CGM.getContext().getTargetAddressSpace(PointeeTy); in CreatePointerLikeType()
1149 auto *BTFAttrTy = dyn_cast<BTFTagAttributedType>(PointeeTy); in CreatePointerLikeType()
1168 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1171 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1704 QualType PointeeTy = ThisPtrTy->getPointeeType(); in getOrCreateInstanceMethodType() local
1705 unsigned AS = CGM.getContext().getTargetAddressSpace(PointeeTy); in getOrCreateInstanceMethodType()
1708 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
H A DCGDebugInfo.h246 QualType PointeeTy, llvm::DIFile *F);
H A DCGOpenMPRuntimeGPU.cpp3401 QualType PointeeTy = cast<ReferenceType>(NonQualTy)->getPointeeType(); in translateParameter() local
3404 PointeeTy = CGM.getContext().getAddrSpaceQualType(PointeeTy, in translateParameter()
3408 ArgType = CGM.getContext().getPointerType(PointeeTy); in translateParameter()
/llvm-project-15.0.7/llvm/bindings/ocaml/debuginfo/
H A Ddebuginfo_ocaml.c487 value Builder, LLVMMetadataRef PointeeTy, value SizeInBits, in llvm_dibuild_create_pointer_type_native() argument
490 DIBuilder_val(Builder), PointeeTy, (uint64_t)Int_val(SizeInBits), in llvm_dibuild_create_pointer_type_native()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DDebugInfo.h715 LLVMDIBuilderRef Builder, LLVMMetadataRef PointeeTy,
/llvm-project-15.0.7/clang/lib/AST/
H A DASTContext.cpp7819 if (isa<TypedefType>(PointeeTy.getTypePtr())) { in getLegacyIntegralTypeEncoding()
7820 if (const auto *BT = PointeeTy->getAs<BuiltinType>()) { in getLegacyIntegralTypeEncoding()
7822 PointeeTy = UnsignedIntTy; in getLegacyIntegralTypeEncoding()
7825 PointeeTy = IntTy; in getLegacyIntegralTypeEncoding()
8090 QualType PointeeTy; in getObjCEncodingForTypeImpl() local
8097 PointeeTy = PT->getPointeeType(); in getObjCEncodingForTypeImpl()
8113 QualType P = PointeeTy; in getObjCEncodingForTypeImpl()
8129 if (PointeeTy->isCharType()) { in getObjCEncodingForTypeImpl()
8132 if (!isTypeTypedefedAsBOOL(PointeeTy)) { in getObjCEncodingForTypeImpl()
8159 getLegacyIntegralTypeEncoding(PointeeTy); in getObjCEncodingForTypeImpl()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp1216 QualType PointeeTy; in RewriteTypeIntoString() local
1218 PointeeTy = PT->getPointeeType(); in RewriteTypeIntoString()
1220 PointeeTy = BPT->getPointeeType(); in RewriteTypeIntoString()
1221 if ((FPRetType = PointeeTy->getAs<FunctionType>())) { in RewriteTypeIntoString()
2941 QualType PointeeTy = PT->getPointeeType(); in RewriteObjCDictionaryLiteralExpr() local
2942 convertToUnqualifiedObjCType(PointeeTy); in RewriteObjCDictionaryLiteralExpr()
2943 T = Context->getPointerType(PointeeTy); in RewriteObjCDictionaryLiteralExpr()
4510 QualType PointeeTy; in convertObjCTypeToCStyleType() local
4512 PointeeTy = PT->getPointeeType(); in convertObjCTypeToCStyleType()
4513 if (const FunctionType *FT = PointeeTy->getAs<FunctionType>()) { in convertObjCTypeToCStyleType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp7959 QualType PointeeTy; in AddPointerWithMoreQualifiedTypeVariants() local
7964 PointeeTy = PTy->getPointeeType(); in AddPointerWithMoreQualifiedTypeVariants()
7967 PointeeTy = PointerTy->getPointeeType(); in AddPointerWithMoreQualifiedTypeVariants()
7974 if (PointeeTy->isArrayType()) in AddPointerWithMoreQualifiedTypeVariants()
7977 unsigned BaseCVR = PointeeTy.getCVRQualifiers(); in AddPointerWithMoreQualifiedTypeVariants()
7991 (!(PointeeTy->isAnyPointerType() || PointeeTy->isReferenceType())))) in AddPointerWithMoreQualifiedTypeVariants()
8030 QualType PointeeTy = PointerTy->getPointeeType(); in AddMemberPointerWithMoreQualifiedTypeVariants() local
8035 if (PointeeTy->isArrayType()) in AddMemberPointerWithMoreQualifiedTypeVariants()
8041 unsigned BaseCVR = PointeeTy.getCVRQualifiers(); in AddMemberPointerWithMoreQualifiedTypeVariants()
8491 if (!PointeeTy->isObjectType() && !PointeeTy->isFunctionType()) in addUnaryStarPointerOverloads()
[all …]
H A DSema.cpp2471 QualType PointeeTy = ExprTy->getPointeeType(); in tryExprAsCall() local
2472 if (!PointeeTy.isNull()) in tryExprAsCall()
2473 FunTy = PointeeTy->getAs<FunctionType>(); in tryExprAsCall()
H A DSemaChecking.cpp11376 QualType PointeeTy; in CheckMemaccessArguments() local
11378 PointeeTy = DestPtrTy->getPointeeType(); in CheckMemaccessArguments()
11382 if (PointeeTy->isVoidType()) in CheckMemaccessArguments()
11407 if (!PointeeTy->isIncompleteType() && in CheckMemaccessArguments()
11431 << PointeeTy in CheckMemaccessArguments()
11448 if (PointeeTy->isRecordType() && in CheckMemaccessArguments()
11459 PointeeTy = DestTy; in CheckMemaccessArguments()
11462 if (PointeeTy == QualType()) in CheckMemaccessArguments()
11468 getContainedDynamicClass(PointeeTy, IsContained)) { in CheckMemaccessArguments()
11488 } else if (PointeeTy.hasNonTrivialObjCLifetime() && in CheckMemaccessArguments()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp6694 constructPointer(PointeeTy, PrivType, &Base, in createInitialization()
6699 Type *PointeeTy = PrivArrayType->getElementType(); in createInitialization() local
6700 Type *PointeePtrTy = PointeeTy->getPointerTo(); in createInitialization()
6701 uint64_t PointeeTySize = DL.getTypeStoreSize(PointeeTy); in createInitialization()
6733 Type *PointeeTy = PrivStructType->getElementType(u); in createReplacementValues() local
6735 constructPointer(PointeeTy->getPointerTo(), PrivType, Base, in createReplacementValues()
6737 LoadInst *L = new LoadInst(PointeeTy, Ptr, "", IP); in createReplacementValues()
6742 Type *PointeeTy = PrivArrayType->getElementType(); in createReplacementValues() local
6743 uint64_t PointeeTySize = DL.getTypeStoreSize(PointeeTy); in createReplacementValues()
6744 Type *PointeePtrTy = PointeeTy->getPointerTo(); in createReplacementValues()
[all …]

12