Lines Matching refs:CI
343 static Value *computeArraySize(const CallInst *CI, const DataLayout &DL,
346 if (!CI)
350 Type *T = getMallocAllocatedType(CI, TLI);
360 Value *MallocArg = CI->getArgOperand(0);
373 PointerType *llvm::getMallocType(const CallInst *CI,
375 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
381 for (Value::const_user_iterator UI = CI->user_begin(), E = CI->user_end();
394 return cast<PointerType>(CI->getType());
405 Type *llvm::getMallocAllocatedType(const CallInst *CI,
407 PointerType *PT = getMallocType(CI, TLI);
416 Value *llvm::getMallocArraySize(CallInst *CI, const DataLayout &DL,
419 assert(isMallocLikeFn(CI, TLI) && "getMallocArraySize and not malloc call");
420 return computeArraySize(CI, DL, TLI, LookThroughSExt);