Searched refs:UseCall (Results 1 – 3 of 3) sorted by relevance
1892 auto *UseCall = cast<CallBase>(User); in RemovePreallocated() local1893 assert(UseCall->getCalledFunction()->getIntrinsicID() == in RemovePreallocated()1897 cast<ConstantInt>(UseCall->getArgOperand(1))->getZExtValue(); in RemovePreallocated()1900 auto AddressSpace = UseCall->getType()->getPointerAddressSpace(); in RemovePreallocated()1902 UseCall->getFnAttr(Attribute::Preallocated).getValueAsType(); in RemovePreallocated()1911 UseCall->replaceAllUsesWith(AllocaReplacement); in RemovePreallocated()1912 UseCall->eraseFromParent(); in RemovePreallocated()
5501 auto *UseCall = dyn_cast<CallBase>(U); in visitIntrinsicCall() local5502 Check(UseCall != nullptr, in visitIntrinsicCall()5504 const Function *Fn = UseCall->getCalledFunction(); in visitIntrinsicCall()5506 auto *AllocArgIndex = dyn_cast<ConstantInt>(UseCall->getArgOperand(1)); in visitIntrinsicCall()5523 for (unsigned i = 0; i < UseCall->arg_size(); i++) { in visitIntrinsicCall()5524 if (UseCall->paramHasAttr(i, Attribute::Preallocated)) { in visitIntrinsicCall()5535 Call, *UseCall); in visitIntrinsicCall()5539 if (UseCall->countOperandBundlesOfType(LLVMContext::OB_preallocated) > in visitIntrinsicCall()5544 UseCall->getOperandBundle(LLVMContext::OB_preallocated); in visitIntrinsicCall()
6265 auto *UseCall = cast<CallBase>(U); in FindPreallocatedCall() local6266 const Function *Fn = UseCall->getCalledFunction(); in FindPreallocatedCall()6268 return UseCall; in FindPreallocatedCall()