Home
last modified time | relevance | path

Searched refs:PTy (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h221 for (Type *PTy : FTy->params()) { in toTypedFunPointer()
222 if (isUntypedPointerTy(PTy)) { in toTypedFunPointer()
230 for (Type *PTy : FTy->params()) in toTypedFunPointer()
231 ParamTys.push_back(toTypedPointer(PTy)); in toTypedFunPointer()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelTypeUtils.cpp29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() local
30 unsigned AddrSpace = PTy->getAddressSpace(); in getLLTForType()
H A DSwitchLoweringUtils.cpp288 EVT PTy = TLI->getPointerTy(*DL); in findBitTestClusters() local
289 if (!TLI->isOperationLegal(ISD::SHL, PTy)) in findBitTestClusters()
292 int BitWidth = PTy.getSizeInBits(); in findBitTestClusters()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp203 Type *PTy = nullptr; // Type indexed by this node. For pointer nodes member
208 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode()
261 if (GN.PTy->isStructTy()) { in operator <<()
262 StructType *STy = cast<StructType>(GN.PTy); in operator <<()
264 OS << GN.PTy->getStructName(); in operator <<()
269 OS << *GN.PTy; in operator <<()
361 N->PTy = GepI->getSourceElementType(); in processGepInst()
391 Nx->PTy = PtrTy; in processGepInst()
491 ID.AddPointer(N->PTy); in node_hash()
1088 Type *InpTy = RN->PTy; in fabricateGEP()
[all …]
H A DHexagonTargetObjectFile.cpp312 const VectorType *PTy = cast<const VectorType>(Ty); in getSmallestAddressableSize() local
313 return getSmallestAddressableSize(PTy->getElementType(), GV, TM); in getSmallestAddressableSize()
H A DHexagonLoopIdiomRecognition.cpp1107 Type *PTy = P->getType(); in promoteTypes() local
1108 if (PTy != Ty0) { in promoteTypes()
1112 Value *T = IRBuilder<>(ExitB, End).CreateTrunc(P, PTy); in promoteTypes()
1114 P->mutateType(PTy); in promoteTypes()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DHexagon.cpp215 llvm::Type *PTy = CGF.ConvertTypeForMem(Ty); in EmitVAArgFromMemory() local
217 Address(__overflow_area_pointer, PTy, CharUnits::fromQuantity(Align)); in EmitVAArgFromMemory()
339 llvm::Type *PTy = CGF.ConvertType(Ty); in EmitVAArgForHexagonLinux() local
341 __current_saved_reg_area_pointer, llvm::PointerType::getUnqual(PTy)); in EmitVAArgForHexagonLinux()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h403 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() local
404 return PTy && isNonIntegralPointerType(PTy); in isNonIntegralPointerType()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp516 const auto *PTy = dyn_cast<DICompositeType>(PType); in IsValidAIChain() local
518 assert(PTy && CTy && "ParentType or ChildType is null or not composite"); in IsValidAIChain()
520 uint32_t PTyTag = PTy->getTag(); in IsValidAIChain()
532 return PTy->getBaseType() == CTy->getBaseType(); in IsValidAIChain()
536 Ty = PTy->getBaseType(); in IsValidAIChain()
538 Ty = dyn_cast<DIType>(PTy->getElements()[ParentAI]); in IsValidAIChain()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1273 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in printSymbol() local
1275 bool isGenericPointer = PTy && PTy->getAddressSpace() == 0; in printSymbol()
1581 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local
1583 if (PTy) { in emitFunctionParamList()
1585 TLI->getPointerTy(DL, PTy->getAddressSpace()).getSizeInBits(); in emitFunctionParamList()
1590 if (PTy) { in emitFunctionParamList()
1596 int addrSpace = PTy->getAddressSpace(); in emitFunctionParamList()
1635 } else if (PTy) { in emitFunctionParamList()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp2594 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local
2595 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList()
2597 getMinimumObjectSize(PTy).getQuantity()); in ConstructAttributeList()
2598 if (getTypes().getTargetAddressSpace(PTy) == 0 && in ConstructAttributeList()
2601 if (PTy->isObjectType()) { in ConstructAttributeList()
2775 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local
2776 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList()
2778 getMinimumObjectSize(PTy).getQuantity()); in ConstructAttributeList()
2779 if (getTypes().getTargetAddressSpace(PTy) == 0 && in ConstructAttributeList()
2782 if (PTy->isObjectType()) { in ConstructAttributeList()
[all …]
H A DCodeGenTypes.cpp623 const PointerType *PTy = cast<PointerType>(Ty); in ConvertType() local
624 QualType ETy = PTy->getPointeeType(); in ConvertType()
H A DCGExprCXX.cpp141 const auto *PTy = BaseExpr->getType()->castAs<PointerType>(); in EmitCXXPseudoDestructorExpr() local
142 BaseQuals = PTy->getPointeeType().getQualifiers(); in EmitCXXPseudoDestructorExpr()
180 if (const PointerType *PTy = T->getAs<PointerType>()) in getCXXRecord() local
181 T = PTy->getPointeeType(); in getCXXRecord()
H A DCGDeclCXX.cpp201 llvm::PointerType *PTy = in EmitCXXGlobalVarDeclInit() local
203 DeclPtr = llvm::ConstantExpr::getAddrSpaceCast(DeclPtr, PTy); in EmitCXXGlobalVarDeclInit()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp267 for (Type *PTy : FTy->params()) { in getFormalParams()
268 auto *ArgC = ConstantFoldLoadThroughBitcast(getVal(*ArgI), PTy, DL); in getFormalParams()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h1662 if (auto *PTy = dyn_cast<PointerType>(Ty)) variable
1663 return getPointerTy(DL, PTy->getAddressSpace());
1668 if (auto *PTy = dyn_cast<PointerType>(EltTy)) { variable
1669 EVT PointerTy(getPointerTy(DL, PTy->getAddressSpace()));
1682 if (auto *PTy = dyn_cast<PointerType>(Ty)) variable
1683 return getPointerMemTy(DL, PTy->getAddressSpace());
1687 if (auto *PTy = dyn_cast<PointerType>(EltTy)) { variable
1688 EVT PointerTy(getPointerMemTy(DL, PTy->getAddressSpace()));
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp1078 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter() local
1080 ResultType = PTy->getPointeeType(); in findAtIndexGetter()
1177 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter() local
1179 ResultType = PTy->getPointeeType(); in findAtIndexSetter()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp158 if (const PointerType *PTy = BaseType->getAs<PointerType>()) in GetBaseType() local
159 BaseType = PTy->getPointeeType(); in GetBaseType()
175 else if (const ParenType *PTy = BaseType->getAs<ParenType>()) in GetBaseType() local
176 BaseType = PTy->desugar(); in GetBaseType()
H A DExpr.cpp71 if (const PointerType *PTy = DerivedType->getAs<PointerType>()) in getBestDynamicClassType() local
72 DerivedType = PTy->getPointeeType(); in getBestDynamicClassType()
2233 const PointerType *PTy = PExp->getType()->getAs<PointerType>(); in isNullPointerArithmeticExtension() local
2234 if (!PTy || !PTy->getPointeeType()->isCharType()) in isNullPointerArithmeticExtension()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp2903 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType()); in getCallsiteCost() local
2905 unsigned AS = PTy->getAddressSpace(); in getCallsiteCost()
3003 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType()); in getAttributeBasedInliningDecision() local
3004 if (PTy->getAddressSpace() != AllocaAS) in getAttributeBasedInliningDecision()
H A DLazyValueInfo.cpp837 PointerType *PTy = dyn_cast<PointerType>(Val->getType()); in intersectAssumeOrGuardBlockValueConstantRange() local
838 if (PTy && BB->getTerminator() == BBI && in intersectAssumeOrGuardBlockValueConstantRange()
840 BBLV = ValueLatticeElement::getNot(ConstantPointerNull::get(PTy)); in intersectAssumeOrGuardBlockValueConstantRange()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp1060 TypedPointerType *PTy = cast<TypedPointerType>(T); in writeTypeTable() local
1063 TypeVals.push_back(getTypeID(PTy->getElementType())); in writeTypeTable()
1064 unsigned AddressSpace = PTy->getAddressSpace(); in writeTypeTable()
1087 for (Type *PTy : FT->params()) in writeTypeTable()
1088 TypeVals.push_back(getTypeID(PTy)); in writeTypeTable()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp874 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local
875 Check(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable()
4116 if (auto *PTy = dyn_cast<PointerType>(GEP.getType())) { in visitGetElementPtrInst() local
4117 Check(GEP.getAddressSpace() == PTy->getAddressSpace(), in visitGetElementPtrInst()
4197 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local
4198 Check(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst()
4223 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local
4224 Check(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst()
5761 auto isGCPtr = [&GC](Type *PTy) { in visitIntrinsicCall() argument
5762 return GC->isGCManagedPointer(PTy->getScalarType()).value_or(true); in visitIntrinsicCall()
H A DAsmWriter.cpp616 PointerType *PTy = cast<PointerType>(Ty); in print() local
618 if (unsigned AddressSpace = PTy->getAddressSpace()) in print()
631 VectorType *PTy = cast<VectorType>(Ty); in print() local
632 ElementCount EC = PTy->getElementCount(); in print()
637 print(PTy->getElementType(), OS); in print()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp1217 auto *PTy = dyn_cast<PointerType>(AliaseeType); in parseAliasOrIFunc() local
1218 if (!PTy) in parseAliasOrIFunc()
1220 unsigned AddrSpace = PTy->getAddressSpace(); in parseAliasOrIFunc()
1751 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy) { in createGlobalFwdRef() argument
1757 PTy->getAddressSpace()); in createGlobalFwdRef()
1779 PointerType *PTy = dyn_cast<PointerType>(Ty); in getGlobalVal() local
1780 if (!PTy) { in getGlobalVal()
1803 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy); in getGlobalVal()
1809 PointerType *PTy = dyn_cast<PointerType>(Ty); in getGlobalVal() local
1810 if (!PTy) { in getGlobalVal()
[all …]

12