Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp258 Argument *PtrArg = PointerArgs[i]; in PromoteArguments() local
259 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); in PromoteArguments()
263 if (PtrArg->hasStructRetAttr()) { in PromoteArguments()
264 unsigned ArgNo = PtrArg->getArgNo(); in PromoteArguments()
284 PtrArg->hasByValAttr() && in PromoteArguments()
285 (isDenselyPacked(AgTy, DL) || !canPaddingBeAccessed(PtrArg)); in PromoteArguments()
290 << PtrArg->getName() << "' because it would require adding more" in PromoteArguments()
308 ByValArgsToTransform.insert(PtrArg); in PromoteArguments()
320 if (EltTy == PtrArg->getType()) { in PromoteArguments()
331 if (isSafeToPromoteArgument(PtrArg, PtrArg->hasByValOrInAllocaAttr(), AAR)) in PromoteArguments()
[all …]
DGlobalOpt.cpp2625 Value *PtrArg = getVal(II->getArgOperand(1)); in EvaluateBlock() local
2626 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock()
/external/llvm/lib/Analysis/
DInlineCost.cpp1177 Value *PtrArg = *CAI; in analyzeCall() local
1178 if (ConstantInt *C = stripAndComputeInBoundsConstantOffsets(PtrArg)) { in analyzeCall()
1179 ConstantOffsetPtrs[&*FAI] = std::make_pair(PtrArg, C->getValue()); in analyzeCall()
1182 if (isa<AllocaInst>(PtrArg)) { in analyzeCall()
1183 SROAArgValues[&*FAI] = PtrArg; in analyzeCall()
1184 SROAArgCosts[PtrArg] = 0; in analyzeCall()