Home
last modified time | relevance | path

Searched refs:PointerTy (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerIntPair.h77 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned,
78 typename PtrTraits = PointerLikeTypeTraits<PointerTy>,
79 typename Info = PointerIntPairInfo<PointerTy, IntBits, PtrTraits>>
83 detail::PunnedPointer<PointerTy> Value;
88 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair()
92 explicit PointerIntPair(PointerTy PtrVal) { initWithPointer(PtrVal); } in PointerIntPair()
94 PointerTy getPointer() const { return Info::getPointer(Value); } in getPointer()
98 void setPointer(PointerTy PtrVal) & { in setPointer()
106 void initWithPointer(PointerTy PtrVal) & { in initWithPointer()
110 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) & { in setPointerAndInt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOCtxProfLowering.cpp108 auto *PointerTy = PointerType::get(M.getContext(), 0); in CtxInstrumentationLowerer() local
116 PointerTy, /*FirstNode*/ in CtxInstrumentationLowerer()
117 PointerTy, /*FirstMemBlock*/ in CtxInstrumentationLowerer()
118 PointerTy, /*CurrentMem*/ in CtxInstrumentationLowerer()
124 PointerTy, /*Next*/ in CtxInstrumentationLowerer()
164 {PointerTy, /*Callee*/ in CtxInstrumentationLowerer()
182 new GlobalVariable(M, PointerTy, false, GlobalValue::ExternalLinkage, in CtxInstrumentationLowerer()
187 new GlobalVariable(M, PointerTy, false, GlobalValue::ExternalLinkage, in CtxInstrumentationLowerer()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h21 using PointerTy = void *; variable
31 PointerTy PointerVal;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp789 const LLT PointerTy = LLT::pointer( in handleAssignments() local
809 Args[i].Regs[0] = MRI.createGenericVirtualRegister(PointerTy); in handleAssignments()
863 MIRBuilder.buildFrameIndex(PointerTy, FrameIdx).getReg(0); in handleAssignments()
886 ? PointerTy.getSizeInBytes() in handleAssignments()
895 Handler.assignValueToAddress(ArgReg, StackAddr, PointerTy, MPO, VA); in handleAssignments()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp755 GV.PointerVal = PointerTy(uintptr_t(GV.IntVal.getZExtValue())); in getConstantValue()
1063 if (StoreBytes != sizeof(PointerTy)) in StoreValueToMemory()
1066 *((PointerTy*)Ptr) = Val.PointerVal; in StoreValueToMemory()
1112 Result.PointerVal = *((PointerTy*)Ptr); in LoadValueFromMemory()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp588 const LLT PointerTy = MRI.getType(MO.getReg()); in castBufferRsrcFromV4I32() local
591 if (!hasBufferRsrcWorkaround(PointerTy)) in castBufferRsrcFromV4I32()
592 return PointerTy; in castBufferRsrcFromV4I32()
594 const LLT ScalarTy = getBufferRsrcScalarType(PointerTy); in castBufferRsrcFromV4I32()
595 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcFromV4I32()
596 if (!PointerTy.isVector()) { in castBufferRsrcFromV4I32()
598 const unsigned NumParts = PointerTy.getSizeInBits() / 32; in castBufferRsrcFromV4I32()
627 const LLT PointerTy = MRI.getType(Pointer); in castBufferRsrcToV4I32() local
628 const LLT ScalarTy = getBufferRsrcScalarType(PointerTy); in castBufferRsrcToV4I32()
629 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcToV4I32()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1886 APInt Offset, Type *PointerTy, in getAdjustedPtr() argument
1891 return IRB.CreatePointerBitCastOrAddrSpaceCast(Ptr, PointerTy, in getAdjustedPtr()
2753 Value *getNewAllocaSlicePtr(IRBuilderTy &IRB, Type *PointerTy) { in getNewAllocaSlicePtr() argument
2781 APInt(DL.getIndexTypeSizeInBits(PointerTy), Offset), in getNewAllocaSlicePtr()
2782 PointerTy, in getNewAllocaSlicePtr()
3553 Type *PointerTy = IRB.getPtrTy(OldPtr->getType()->getPointerAddressSpace()); in visitIntrinsicInst() local
3554 Value *Ptr = getNewAllocaSlicePtr(IRB, PointerTy); in visitIntrinsicInst()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp3679 static bool TypeInfoIsInStandardLibrary(const PointerType *PointerTy) { in TypeInfoIsInStandardLibrary() argument
3680 QualType PointeeTy = PointerTy->getPointeeType(); in TypeInfoIsInStandardLibrary()
3704 if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty)) in IsStandardLibraryRTTIDescriptor() local
3705 return TypeInfoIsInStandardLibrary(PointerTy); in IsStandardLibraryRTTIDescriptor()
3777 if (const PointerType *PointerTy = dyn_cast<PointerType>(Ty)) in ContainsIncompleteClassType() local
3778 return ContainsIncompleteClassType(PointerTy->getPointeeType()); in ContainsIncompleteClassType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h1669 EVT PointerTy(getPointerTy(DL, PTy->getAddressSpace()));
1670 EltTy = PointerTy.getTypeForEVT(Ty->getContext());
1688 EVT PointerTy(getPointerMemTy(DL, PTy->getAddressSpace()));
1689 EltTy = PointerTy.getTypeForEVT(Ty->getContext());
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp2782 QualType PointerTy = PVD->getType(); in BuildCXXForRangeStmt() local
2783 if (PointerTy->isPointerType() && ArrayTy->isArrayType()) { in BuildCXXForRangeStmt()
2785 << RangeLoc << PVD << ArrayTy << PointerTy; in BuildCXXForRangeStmt()
H A DSemaOverload.cpp8465 const PointerType *PointerTy = Ty->getAs<PointerType>(); in AddPointerWithMoreQualifiedTypeVariants() local
8467 if (!PointerTy) { in AddPointerWithMoreQualifiedTypeVariants()
8472 PointeeTy = PointerTy->getPointeeType(); in AddPointerWithMoreQualifiedTypeVariants()
8532 const MemberPointerType *PointerTy = Ty->getAs<MemberPointerType>(); in AddMemberPointerWithMoreQualifiedTypeVariants() local
8533 assert(PointerTy && "type was not a member pointer type!"); in AddMemberPointerWithMoreQualifiedTypeVariants()
8535 QualType PointeeTy = PointerTy->getPointeeType(); in AddMemberPointerWithMoreQualifiedTypeVariants()
8542 const Type *ClassTy = PointerTy->getClass(); in AddMemberPointerWithMoreQualifiedTypeVariants()
H A DSemaExpr.cpp7902 QualType PointerTy) { in checkConditionalNullPointer() argument
7903 if ((!PointerTy->isAnyPointerType() && !PointerTy->isBlockPointerType()) || in checkConditionalNullPointer()
7908 NullExpr = S.ImpCastExprToType(NullExpr.get(), PointerTy, CK_NullToPointer); in checkConditionalNullPointer()
H A DSemaChecking.cpp12674 if (const auto *PointerTy = dyn_cast<PointerType>(PType)) { in diagnoseArrayStarInParamType() local
12675 diagnoseArrayStarInParamType(S, PointerTy->getPointeeType(), Loc); in diagnoseArrayStarInParamType()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1636 unsigned LLVMGetPointerAddressSpace(LLVMTypeRef PointerTy);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp912 unsigned LLVMGetPointerAddressSpace(LLVMTypeRef PointerTy) { in LLVMGetPointerAddressSpace() argument
913 return unwrap<PointerType>(PointerTy)->getAddressSpace(); in LLVMGetPointerAddressSpace()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1497 Dest.PointerVal = PointerTy(intptr_t(Src.IntVal.getZExtValue())); in executeIntToPtrInst()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp1659 void setNull(ASTContext &Ctx, QualType PointerTy) { in setNull()
1662 CharUnits::fromQuantity(Ctx.getTargetNullPointerValue(PointerTy)); in setNull()
1664 Designator = SubobjectDesignator(PointerTy->getPointeeType()); in setNull()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp7436 using PointerTy = PointerIntPair<Value *, 1, bool>; in createSCEVIter() typedef
7437 SmallVector<PointerTy> Stack; in createSCEVIter()