Home
last modified time | relevance | path

Searched refs:PtrArg (Results 1 – 6 of 6) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUInline.cpp126 for (Value *PtrArg : CS.args()) { in getInlineThreshold()
127 Type *Ty = PtrArg->getType(); in getInlineThreshold()
131 PtrArg = GetUnderlyingObject(PtrArg, DL); in getInlineThreshold()
132 if (const AllocaInst *AI = dyn_cast<AllocaInst>(PtrArg)) { in getInlineThreshold()
H A DAMDGPULibCalls.cpp603 auto PtrArg = CI->getArgOperand(PtrArgLoc); in fold_read_write_pipe() local
604 unsigned PtrArgAS = PtrArg->getType()->getPointerAddressSpace(); in fold_read_write_pipe()
620 auto *BCast = B.CreatePointerCast(PtrArg, PtrTy); in fold_read_write_pipe()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp896 for (Argument *PtrArg : PointerArgs) { in promoteArguments()
897 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); in promoteArguments()
901 if (PtrArg->hasStructRetAttr()) { in promoteArguments()
902 unsigned ArgNo = PtrArg->getArgNo(); in promoteArguments()
917 PtrArg->hasByValAttr() && in promoteArguments()
918 (isDenselyPacked(AgTy, DL) || !canPaddingBeAccessed(PtrArg)); in promoteArguments()
923 << PtrArg->getName() in promoteArguments()
943 ByValArgsToTransform.insert(PtrArg); in promoteArguments()
955 if (EltTy == PtrArg->getType()) { in promoteArguments()
966 if (isSafeToPromoteArgument(PtrArg, PtrArg->hasByValOrInAllocaAttr(), AAR, in promoteArguments()
[all …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DInlineCost.cpp1784 Value *PtrArg = *CAI; in analyzeCall() local
1785 if (ConstantInt *C = stripAndComputeInBoundsConstantOffsets(PtrArg)) { in analyzeCall()
1786 ConstantOffsetPtrs[&*FAI] = std::make_pair(PtrArg, C->getValue()); in analyzeCall()
1789 if (isa<AllocaInst>(PtrArg)) { in analyzeCall()
1790 SROAArgValues[&*FAI] = PtrArg; in analyzeCall()
1791 SROAArgCosts[PtrArg] = 0; in analyzeCall()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp501 Value *PtrArg = getVal(II->getArgOperand(1)); in EvaluateBlock() local
502 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaChecking.cpp1254 const Expr *PtrArg = TheCall->getArg(0)->IgnoreParenImpCasts(); in CheckBuiltinFunctionCall() local
1255 const QualType PtrArgType = PtrArg->getType(); in CheckBuiltinFunctionCall()
1258 Diag(PtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible) in CheckBuiltinFunctionCall()