Lines Matching defs:ObjectSize
589 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize,
593 return lowerObjectSizeCall(ObjectSize, DL, TLI, /*AAResults=*/nullptr,
598 IntrinsicInst *ObjectSize, const DataLayout &DL,
601 assert(ObjectSize->getIntrinsicID() == Intrinsic::objectsize &&
602 "ObjectSize must be a call to llvm.objectsize!");
604 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero();
617 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne();
619 auto *ResultType = cast<IntegerType>(ObjectSize->getType());
620 bool StaticOnly = cast<ConstantInt>(ObjectSize->getArgOperand(3))->isZero();
625 if (getObjectSize(ObjectSize->getArgOperand(0), Size, DL, TLI, EvalOptions) &&
629 LLVMContext &Ctx = ObjectSize->getFunction()->getContext();
631 SizeOffsetValue SizeOffsetPair = Eval.compute(ObjectSize->getArgOperand(0));
639 Builder.SetInsertPoint(ObjectSize);