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