Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp927 for (Argument *PtrArg : PointerArgs) { in promoteArguments()
932 if (PtrArg->hasStructRetAttr()) { in promoteArguments()
933 unsigned ArgNo = PtrArg->getArgNo(); in promoteArguments()
949 bool isSafeToPromote = PtrArg->hasByValAttr() && PtrArg->getParamAlign() && in promoteArguments()
951 !canPaddingBeAccessed(PtrArg)); in promoteArguments()
956 << PtrArg->getName() in promoteArguments()
976 ByValArgsToTransform.insert(PtrArg); in promoteArguments()
987 llvm::is_contained(STy->elements(), PtrArg->getType()); in promoteArguments()
995 PtrArg->hasByValAttr() ? PtrArg->getParamByValType() : nullptr; in promoteArguments()
996 if (isSafeToPromoteArgument(PtrArg, ByValTy, AAR, MaxElements)) in promoteArguments()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp1202 for (Value *PtrArg : CB->args()) { in adjustInliningThreshold()
1203 PointerType *Ty = dyn_cast<PointerType>(PtrArg->getType()); in adjustInliningThreshold()
1208 PtrArg = getUnderlyingObject(PtrArg); in adjustInliningThreshold()
1209 if (const AllocaInst *AI = dyn_cast<AllocaInst>(PtrArg)) { in adjustInliningThreshold()
H A DAMDGPULibCalls.cpp588 auto PtrArg = CI->getArgOperand(PtrArgLoc); in fold_read_write_pipe() local
589 unsigned PtrArgAS = PtrArg->getType()->getPointerAddressSpace(); in fold_read_write_pipe()
605 auto *BCast = B.CreatePointerCast(PtrArg, PtrTy); in fold_read_write_pipe()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp535 Value *PtrArg = getVal(II->getArgOperand(1)); in EvaluateBlock() local
536 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp2501 Value *PtrArg = *CAI; in analyze() local
2502 if (ConstantInt *C = stripAndComputeInBoundsConstantOffsets(PtrArg)) { in analyze()
2503 ConstantOffsetPtrs[&FAI] = std::make_pair(PtrArg, C->getValue()); in analyze()
2506 if (auto *SROAArg = dyn_cast<AllocaInst>(PtrArg)) { in analyze()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp1767 const Expr *PtrArg = TheCall->getArg(0)->IgnoreParenImpCasts(); in CheckBuiltinFunctionCall() local
1768 const QualType PtrArgType = PtrArg->getType(); in CheckBuiltinFunctionCall()
1771 Diag(PtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible) in CheckBuiltinFunctionCall()