Lines Matching refs:ObjectSize
619 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize, in lowerObjectSizeCall() argument
623 return lowerObjectSizeCall(ObjectSize, DL, TLI, /*AAResults=*/nullptr, in lowerObjectSizeCall()
627 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize, in lowerObjectSizeCall() argument
631 assert(ObjectSize->getIntrinsicID() == Intrinsic::objectsize && in lowerObjectSizeCall()
634 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero(); in lowerObjectSizeCall()
647 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne(); in lowerObjectSizeCall()
649 auto *ResultType = cast<IntegerType>(ObjectSize->getType()); in lowerObjectSizeCall()
650 bool StaticOnly = cast<ConstantInt>(ObjectSize->getArgOperand(3))->isZero(); in lowerObjectSizeCall()
655 if (getObjectSize(ObjectSize->getArgOperand(0), Size, DL, TLI, EvalOptions) && in lowerObjectSizeCall()
659 LLVMContext &Ctx = ObjectSize->getFunction()->getContext(); in lowerObjectSizeCall()
662 Eval.compute(ObjectSize->getArgOperand(0)); in lowerObjectSizeCall()
666 Builder.SetInsertPoint(ObjectSize); in lowerObjectSizeCall()