Lines Matching defs:ArgValue
335 Value *CodeGenFunction::EmitVAStartEnd(Value *ArgValue, bool IsStart) {
337 if (ArgValue->getType() != DestType)
338 ArgValue =
339 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data());
342 return Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue);
453 Value *ArgValue = EmitScalarExpr(E->getArg(0));
455 Value *NegOp = Builder.CreateNeg(ArgValue, "neg");
457 Builder.CreateICmpSGE(ArgValue,
458 llvm::Constant::getNullValue(ArgValue->getType()),
461 Builder.CreateSelect(CmpResult, ArgValue, NegOp, "abs");
519 Value *ArgValue = EmitScalarExpr(E->getArg(0));
521 llvm::Type *ArgType = ArgValue->getType();
526 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef});
536 Value *ArgValue = EmitScalarExpr(E->getArg(0));
538 llvm::Type *ArgType = ArgValue->getType();
543 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef});
553 Value *ArgValue = EmitScalarExpr(E->getArg(0));
555 llvm::Type *ArgType = ArgValue->getType();
560 Builder.CreateAdd(Builder.CreateCall(F, {ArgValue, Builder.getTrue()}),
563 Value *IsZero = Builder.CreateICmpEQ(ArgValue, Zero, "iszero");
574 Value *ArgValue = EmitScalarExpr(E->getArg(0));
576 llvm::Type *ArgType = ArgValue->getType();
580 Value *Tmp = Builder.CreateCall(F, ArgValue);
590 Value *ArgValue = EmitScalarExpr(E->getArg(0));
592 llvm::Type *ArgType = ArgValue->getType();
596 Value *Result = Builder.CreateCall(F, ArgValue);
609 Value *ArgValue = EmitScalarExpr(E->getArg(0));
610 llvm::Type *ArgType = ArgValue->getType();
617 return RValue::get(ArgValue);
621 Builder.CreateCall(FnExpect, {ArgValue, ExpectedValue}, "expval");
641 Value *ArgValue = EmitScalarExpr(E->getArg(0));
643 return RValue::get(Builder.CreateCall(FnAssume, ArgValue));
648 Value *ArgValue = EmitScalarExpr(E->getArg(0));
649 llvm::Type *ArgType = ArgValue->getType();
651 return RValue::get(Builder.CreateCall(F, ArgValue));
2014 Value *ArgValue;
2017 ArgValue = EmitScalarExpr(E->getArg(i));
2025 ArgValue = llvm::ConstantInt::get(getLLVMContext(), Result);
2031 if (PTy != ArgValue->getType()) {
2034 ArgValue = Builder.CreateBitCast(ArgValue, PTy);
2037 Args.push_back(ArgValue);
3493 llvm::Value *ArgValue = CGF.EmitScalarExpr(E->getArg(1));
3496 ArgValue = Builder.CreateZExt(ArgValue, RegisterType);
3497 return Builder.CreateCall(F, { Metadata, ArgValue });
3501 // Have VoidPtrTy ArgValue but want to return an i32/i64.
3502 ArgValue = Builder.CreatePtrToInt(ArgValue, RegisterType);
3503 return Builder.CreateCall(F, { Metadata, ArgValue });
3506 return Builder.CreateCall(F, { Metadata, ArgValue });