Lines Matching defs:ArgValue
390 Value *CodeGenFunction::EmitVAStartEnd(Value *ArgValue, bool IsStart) {
392 if (ArgValue->getType() != DestType)
393 ArgValue =
394 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data());
397 return Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue);
508 Value *ArgValue = EmitScalarExpr(E->getArg(0));
510 Value *NegOp = Builder.CreateNeg(ArgValue, "neg");
512 Builder.CreateICmpSGE(ArgValue,
513 llvm::Constant::getNullValue(ArgValue->getType()),
516 Builder.CreateSelect(CmpResult, ArgValue, NegOp, "abs");
616 Value *ArgValue = EmitScalarExpr(E->getArg(0));
618 llvm::Type *ArgType = ArgValue->getType();
623 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef});
633 Value *ArgValue = EmitScalarExpr(E->getArg(0));
635 llvm::Type *ArgType = ArgValue->getType();
640 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef});
650 Value *ArgValue = EmitScalarExpr(E->getArg(0));
652 llvm::Type *ArgType = ArgValue->getType();
657 Builder.CreateAdd(Builder.CreateCall(F, {ArgValue, Builder.getTrue()}),
660 Value *IsZero = Builder.CreateICmpEQ(ArgValue, Zero, "iszero");
671 Value *ArgValue = EmitScalarExpr(E->getArg(0));
673 llvm::Type *ArgType = ArgValue->getType();
677 Value *Tmp = Builder.CreateCall(F, ArgValue);
687 Value *ArgValue = EmitScalarExpr(E->getArg(0));
689 llvm::Type *ArgType = ArgValue->getType();
693 Value *Result = Builder.CreateCall(F, ArgValue);
706 Value *ArgValue = EmitScalarExpr(E->getArg(0));
707 llvm::Type *ArgType = ArgValue->getType();
714 return RValue::get(ArgValue);
718 Builder.CreateCall(FnExpect, {ArgValue, ExpectedValue}, "expval");
738 Value *ArgValue = EmitScalarExpr(E->getArg(0));
740 return RValue::get(Builder.CreateCall(FnAssume, ArgValue));
2423 Value *ArgValue;
2426 ArgValue = EmitScalarExpr(E->getArg(i));
2434 ArgValue = llvm::ConstantInt::get(getLLVMContext(), Result);
2440 if (PTy != ArgValue->getType()) {
2443 ArgValue = Builder.CreateBitCast(ArgValue, PTy);
2446 Args.push_back(ArgValue);
3902 llvm::Value *ArgValue = CGF.EmitScalarExpr(E->getArg(1));
3905 ArgValue = Builder.CreateZExt(ArgValue, RegisterType);
3906 return Builder.CreateCall(F, { Metadata, ArgValue });
3910 // Have VoidPtrTy ArgValue but want to return an i32/i64.
3911 ArgValue = Builder.CreatePtrToInt(ArgValue, RegisterType);
3912 return Builder.CreateCall(F, { Metadata, ArgValue });
3915 return Builder.CreateCall(F, { Metadata, ArgValue });