Home
last modified time | relevance | path

Searched refs:isPointerTy (Results 1 – 25 of 158) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp27 assert(V->getType()->isPointerTy() && in classifyPointerType()
35 if (!Inst->getResultElementType()->isPointerTy()) in classifyPointerType()
50 if (NewPointeeTy->isPointerTy()) in classifyPointerType()
59 if (NewPointeeTy->isPointerTy()) { in classifyPointerType()
90 if (RetTy->isPointerTy()) { in classifyFunctionType()
111 if (ArgTy->isPointerTy()) in classifyFunctionType()
194 if (G.getType()->isPointerTy()) in run()
205 if (I.getType()->isPointerTy()) in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyTypeUtilities.h31 return Ty->isPointerTy() && in isWebAssemblyExternrefType()
38 return Ty->isPointerTy() && in isWebAssemblyFuncrefType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h243 bool isIntOrPtrTy() const { return isIntegerTy() || isPointerTy(); }
255 bool isPointerTy() const { return getTypeID() == PointerTyID; }
258 LLVM_DEPRECATED("Use isPointerTy() instead", "isPointerTy")
259 bool isOpaquePointerTy() const { return isPointerTy(); };
262 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); }
289 isPointerTy() || isVectorTy() || isX86_AMXTy() || isTargetExtTy(); in isSingleValueType()
256 bool isPointerTy() const { return getTypeID() == PointerTyID; } isPointerTy() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp525 if (FT->getReturnType()->isPointerTy()) { in checkWFRetconPrototype()
530 SRetTy->getElementType(0)->isPointerTy()); in checkWFRetconPrototype()
546 if (FT->getNumParams() == 0 || !FT->getParamType(0)->isPointerTy()) in checkWFRetconPrototype()
558 if (!FT->getReturnType()->isPointerTy()) in checkWFAlloc()
577 !FT->getParamType(0)->isPointerTy()) in checkWFDealloc()
617 if (!FunTy->getReturnType()->isPointerTy()) in checkAsyncContextProjectFunction()
622 if (FunTy->getNumParams() != 1 || !FunTy->getParamType(0)->isPointerTy()) in checkAsyncContextProjectFunction()
H A DCoroElide.cpp95 assert(ValueTy->isPointerTy() && IntrTy->isPointerTy()); in replaceWithConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp249 isPointerTy(SI->getValueOperand()->getType()) && in IsKernelArgInt8()
350 if (!Op || !isPointerTy(Op->getType())) in deduceElementTypeByUsersDeep()
436 isPointerTy(Src) && isPointerTy(Dest)) in deduceElementTypeHelper()
441 if (isPointerTy(Op->getType())) in deduceElementTypeHelper()
445 if (isPointerTy(Op->getType())) in deduceElementTypeHelper()
621 if (!isPointerTy(I->getType()) || in deduceOperandElementType()
626 if (isPointerTy(Op->getType())) in deduceOperandElementType()
675 if (!isPointerTy(I->getType()) || in deduceOperandElementType()
680 if (isPointerTy(Op->getType())) in deduceOperandElementType()
685 if (!isPointerTy(RetTy)) in deduceOperandElementType()
[all …]
H A DSPIRVCallLowering.cpp103 if (Arg.getType()->isPointerTy()) { in fixFunctionTypeIfPtrArgs()
111 if (!RetTy->isPointerTy()) in fixFunctionTypeIfPtrArgs()
201 if (!isPointerTy(OriginalArgType)) in getArgSPIRVType()
305 if (isPointerTy(Arg.getType())) { in lowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp129 if (!getType()->isPointerTy()) return false; in hasNonNullAttr()
142 if (!getType()->isPointerTy()) return false; in hasByValAttr()
147 if (!getType()->isPointerTy()) in hasByRefAttr()
161 if (!getType()->isPointerTy()) return false; in hasInAllocaAttr()
166 if (!getType()->isPointerTy()) in hasPreallocatedAttr()
172 if (!getType()->isPointerTy()) return false; in hasPassPointeeByValueCopyAttr()
180 if (!getType()->isPointerTy()) in hasPointeeInMemoryValueAttr()
224 assert(getType()->isPointerTy() && "Only pointers have alignments"); in getParamAlign()
233 assert(getType()->isPointerTy() && "Only pointers have byval types"); in getParamByValType()
238 assert(getType()->isPointerTy() && "Only pointers have sret types"); in getParamStructRetType()
[all …]
H A DValue.cpp625 if (!V->getType()->isPointerTy()) in stripPointerCastsAndOffsets()
656 if (!NewV->getType()->isPointerTy()) in stripPointerCastsAndOffsets()
687 assert(V->getType()->isPointerTy() && "Unexpected operand type!"); in stripPointerCastsAndOffsets()
791 assert(getType()->isPointerTy()); in canBeFreed()
855 assert(getType()->isPointerTy() && "must be pointer"); in getPointerDereferenceableBytes()
928 assert(getType()->isPointerTy() && "must be pointer"); in getPointerAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp573 if (LI->getType()->isPointerTy() || LI->getType()->isIntegerTy()) { in runOnKernelFunction()
578 if (LI->getType()->isPointerTy()) in runOnKernelFunction()
592 if (Arg.getType()->isPointerTy()) { in runOnKernelFunction()
610 if (Arg.getType()->isPointerTy() && Arg.hasByValAttr()) in runOnDeviceFunction()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp266 if (V->getType()->isPointerTy()) in getRandomPointerValue()
378 if (Val0->getType()->isPointerTy() || in Act()
379 Val1->getType()->isPointerTy()) in Act()
555 if (VTy->isPointerTy()) { in Act()
556 if (!DestTy->isPointerTy()) in Act()
647 if (Val0->getType()->isPointerTy()) return; in Act()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DFunctionPropertiesAnalysis.cpp153 else if (Call->getType()->isPointerTy()) in updateForBB()
160 else if (Call->getType()->getScalarType()->isPointerTy()) in updateForBB()
168 if (Arg->getType()->isPointerTy()) { in updateForBB()
H A DAliasAnalysis.cpp245 if (!Arg->getType()->isPointerTy()) in getModRefInfo()
311 if (!Arg->getType()->isPointerTy()) in getModRefInfo()
349 if (!Arg->getType()->isPointerTy()) in getModRefInfo()
677 if (!(*CI)->getType()->isPointerTy() || in callCapturesBefore()
H A DLoads.cpp42 assert(V->getType()->isPointerTy() && "Base must be pointer"); in isDereferenceableAndAlignedPointer()
80 if (BC->getSrcTy()->isPointerTy()) in isDereferenceableAndAlignedPointer()
761 if (!To->getType()->isPointerTy()) in canReplacePointersInUseIfEqual()
773 if (!From->getType()->isPointerTy()) in canReplacePointersIfEqual()
H A DScalarEvolution.cpp526 assert(getOperand()->getType()->isPointerTy() && Ty->isIntegerTy() && in SCEVPtrToIntExpr()
609 bool LIsPointer = LV->getType()->isPointerTy(), in CompareValueComplexity()
610 RIsPointer = RV->getType()->isPointerTy(); in CompareValueComplexity()
1008 if (!Op->getType()->isPointerTy()) in getLosslessPtrToIntExpr()
1084 if (!STy->isPointerTy()) in getLosslessPtrToIntExpr()
1111 assert(Expr->getType()->isPointerTy() && in getLosslessPtrToIntExpr()
1141 assert(!Op->getType()->isPointerTy() && "Can't truncate pointer!"); in getTruncateExpr()
1556 assert(!Op->getType()->isPointerTy() && "Can't extend pointer!"); in getZeroExtendExpr()
1575 assert(!Op->getType()->isPointerTy() && "Can't extend pointer!"); in getZeroExtendExprImpl()
1891 assert(!Op->getType()->isPointerTy() && "Can't extend pointer!"); in getSignExtendExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp90 !ETy->getTypeAtIndex(1U)->isPointerTy() || in runImpl()
91 !ETy->getTypeAtIndex(2U)->isPointerTy()) in runImpl()
H A DScalarEvolutionExpander.cpp469 if (LHS.second->getType()->isPointerTy() != in operator ()()
470 RHS.second->getType()->isPointerTy()) in operator ()()
471 return LHS.second->getType()->isPointerTy(); in operator ()()
529 assert(!Op->getType()->isPointerTy() && "Only first op can be pointer"); in visitAddExpr()
856 if (PN->getType()->isPointerTy()) { in expandIVInc()
876 if (PhiTy->isPointerTy() || RequestedTy->isPointerTy()) in canBeCheaplyTransformed()
1058 bool useSubtract = !ExpandTy->isPointerTy() && Step->isNonConstantNegative(); in getAddRecExprPHILiterally()
1174 !S->getType()->isPointerTy() && Step->isNonConstantNegative(); in expandAddRecExprLiterally()
1229 !S->getType()->isPointerTy()) { in visitAddRecExpr()
1750 if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy()) in replaceCongruentIVs()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kCallingConv.h62 bool IsPtr = I != End && (*I)->isPointerTy(); in CC_M68k_Any_AssignToReg()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuthInfo.h44 Discriminator->getType()->isPointerTy()); in CGPointerAuthInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h152 return V->getType()->isPointerTy() && !V->isSwiftError(); in anyPtrType()
169 return V->getType()->isPointerTy(); in sizedPtrType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp891 if (A.getType()->isPointerTy() && !A.hasNoCaptureAttr()) { in addArgumentAttrs()
901 if (!A.getType()->isPointerTy()) in addArgumentAttrs()
1136 if (!F->getReturnType()->isPointerTy()) in addNoAliasAttrs()
1145 !F->getReturnType()->isPointerTy()) in addNoAliasAttrs()
1163 assert(F->getReturnType()->isPointerTy() && in isReturnNonNull()
1253 if (!F->getReturnType()->isPointerTy()) in addNonNullAttrs()
1277 !F->getReturnType()->isPointerTy()) in addNonNullAttrs()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVETargetTransformInfo.h41 if (ElemTy.isPointerTy()) { in isVectorLaneType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp348 IsPointer = V->getType()->isPointerTy(); in Scatterer()
548 if (NumElems == 1 || ElemTy->isPointerTy() || in getVectorSplit()
887 const bool isPointerTy = DstVS->VecTy->getElementType()->isPointerTy(); in visitBitCastInst() local
890 assert(!isPointerTy || (DstVS->NumPacked == 1 && SrcVS->NumPacked == 1)); in visitBitCastInst()
900 if (isPointerTy || DstSplitBits == SrcSplitBits) { in visitBitCastInst()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp534 FTy->getParamType(1)->isPointerTy() && in runFunction()
535 FTy->getParamType(2)->isPointerTy()) { in runFunction()
549 FTy->getParamType(1)->isPointerTy()) { in runFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h216 assert(I.getType()->isPointerTy()); in visitPtr()

1234567