Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Value

82 static Function *getCalledFunction(const Value *V, bool LookThroughBitCast) {
86 CallSite CS(const_cast<Value*>(V));
99 /// \brief Returns the allocation data for the given value if it is a call to a
101 static const AllocFnsTy *getAllocationData(const Value *V, AllocType AllocTy,
145 static bool hasNoAliasAttr(const Value *V, bool LookThroughBitCast) {
151 /// \brief Tests if a value is a call or invoke to a library function that
154 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI,
159 /// \brief Tests if a value is a call or invoke to a function that returns a
161 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI,
169 /// \brief Tests if a value is a call or invoke to a library function that
171 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
176 /// \brief Tests if a value is a call or invoke to a library function that
178 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
183 /// \brief Tests if a value is a call or invoke to a library function that
185 bool llvm::isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
190 /// \brief Tests if a value is a call or invoke to a library function that
192 bool llvm::isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
197 /// \brief Tests if a value is a call or invoke to a library function that
199 bool llvm::isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI,
207 const CallInst *llvm::extractMallocCall(const Value *I,
212 static Value *computeArraySize(const CallInst *CI, const DataLayout &DL,
229 Value *MallocArg = CI->getArgOperand(0);
230 Value *Multiple = nullptr;
251 for (Value::const_user_iterator UI = CI->user_begin(), E = CI->user_end();
286 Value *llvm::getMallocArraySize(CallInst *CI, const DataLayout &DL,
296 const CallInst *llvm::extractCallocCall(const Value *I,
302 /// isFreeCall - Returns non-null if the value is a call to the builtin free()
303 const CallInst *llvm::isFreeCall(const Value *I, const TargetLibraryInfo *TLI) {
368 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout &DL,
371 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr));
406 SizeOffsetType ObjectSizeOffsetVisitor::compute(Value *V) {
438 DEBUG(dbgs() << "ObjectSizeOffsetVisitor::compute() unhandled value: " << *V
451 Value *ArraySize = I.getArraySize();
600 SizeOffsetEvalType ObjectSizeOffsetEvaluator::compute(Value *V) {
623 SizeOffsetEvalType ObjectSizeOffsetEvaluator::compute_(Value *V) {
663 DEBUG(dbgs() << "ObjectSizeOffsetEvaluator::compute() unhandled value: "
679 Value *ArraySize = I.getArraySize();
680 Value *Size = ConstantInt::get(ArraySize->getType(),
698 Value *FirstArg = CS.getArgument(FnData->FstParam);
703 Value *SecondArg = CS.getArgument(FnData->SndParam);
705 Value *Size = Builder.CreateMul(FirstArg, SecondArg);
733 Value *Offset = EmitGEPOffset(&Builder, DL, &GEP, /*NoAssumptions=*/true);
771 Value *Size = SizePHI, *Offset = OffsetPHI, *Tmp;
794 Value *Size = Builder.CreateSelect(I.getCondition(), TrueSide.first,
796 Value *Offset = Builder.CreateSelect(I.getCondition(), TrueSide.second,