Lines Matching defs:ObjectSize
603 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize,
607 return lowerObjectSizeCall(ObjectSize, DL, TLI, /*AAResults=*/nullptr,
612 IntrinsicInst *ObjectSize, const DataLayout &DL,
615 assert(ObjectSize->getIntrinsicID() == Intrinsic::objectsize &&
616 "ObjectSize must be a call to llvm.objectsize!");
618 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero();
631 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne();
633 auto *ResultType = cast<IntegerType>(ObjectSize->getType());
634 bool StaticOnly = cast<ConstantInt>(ObjectSize->getArgOperand(3))->isZero();
639 if (getObjectSize(ObjectSize->getArgOperand(0), Size, DL, TLI, EvalOptions) &&
643 LLVMContext &Ctx = ObjectSize->getFunction()->getContext();
645 SizeOffsetValue SizeOffsetPair = Eval.compute(ObjectSize->getArgOperand(0));
653 Builder.SetInsertPoint(ObjectSize);