Lines Matching defs:CI
209 static Value *computeArraySize(const CallInst *CI, const DataLayout *DL,
212 if (!CI)
216 Type *T = getMallocAllocatedType(CI, TLI);
226 Value *MallocArg = CI->getArgOperand(0);
241 const CallInst *CI = extractMallocCall(I, TLI);
242 Value *ArraySize = computeArraySize(CI, DL, TLI);
246 return CI;
248 // CI is a non-array malloc or we can't figure out that it is an array malloc.
257 PointerType *llvm::getMallocType(const CallInst *CI,
259 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
265 for (Value::const_user_iterator UI = CI->user_begin(), E = CI->user_end();
278 return cast<PointerType>(CI->getType());
289 Type *llvm::getMallocAllocatedType(const CallInst *CI,
291 PointerType *PT = getMallocType(CI, TLI);
300 Value *llvm::getMallocArraySize(CallInst *CI, const DataLayout *DL,
303 assert(isMallocLikeFn(CI, TLI) && "getMallocArraySize and not malloc call");
304 return computeArraySize(CI, DL, TLI, LookThroughSExt);
318 const CallInst *CI = dyn_cast<CallInst>(I);
319 if (!CI || isa<IntrinsicInst>(CI))
321 Function *Callee = CI->getCalledFunction();
352 return CI;