Lines Matching refs:ArgValue
218 Value *ArgValue = EmitVAListRef(E->getArg(0)); in EmitBuiltinExpr() local
220 if (ArgValue->getType() != DestType) in EmitBuiltinExpr()
221 ArgValue = Builder.CreateBitCast(ArgValue, DestType, in EmitBuiltinExpr()
222 ArgValue->getName().data()); in EmitBuiltinExpr()
226 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue)); in EmitBuiltinExpr()
242 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
244 Value *NegOp = Builder.CreateNeg(ArgValue, "neg"); in EmitBuiltinExpr()
246 Builder.CreateICmpSGE(ArgValue, in EmitBuiltinExpr()
247 llvm::Constant::getNullValue(ArgValue->getType()), in EmitBuiltinExpr()
250 Builder.CreateSelect(CmpResult, ArgValue, NegOp, "abs"); in EmitBuiltinExpr()
293 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
295 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
300 Value *Result = Builder.CreateCall2(F, ArgValue, ZeroUndef); in EmitBuiltinExpr()
310 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
312 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
317 Value *Result = Builder.CreateCall2(F, ArgValue, ZeroUndef); in EmitBuiltinExpr()
327 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
329 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
333 Value *Tmp = Builder.CreateAdd(Builder.CreateCall2(F, ArgValue, in EmitBuiltinExpr()
337 Value *IsZero = Builder.CreateICmpEQ(ArgValue, Zero, "iszero"); in EmitBuiltinExpr()
348 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
350 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
354 Value *Tmp = Builder.CreateCall(F, ArgValue); in EmitBuiltinExpr()
364 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
366 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
370 Value *Result = Builder.CreateCall(F, ArgValue); in EmitBuiltinExpr()
377 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
378 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
383 Value *Result = Builder.CreateCall2(FnExpect, ArgValue, ExpectedValue, in EmitBuiltinExpr()
390 Value *ArgValue = EmitScalarExpr(E->getArg(0)); in EmitBuiltinExpr() local
391 llvm::Type *ArgType = ArgValue->getType(); in EmitBuiltinExpr()
393 return RValue::get(Builder.CreateCall(F, ArgValue)); in EmitBuiltinExpr()
1450 Value *ArgValue; in EmitBuiltinExpr() local
1453 ArgValue = EmitScalarExpr(E->getArg(i)); in EmitBuiltinExpr()
1461 ArgValue = llvm::ConstantInt::get(getLLVMContext(), Result); in EmitBuiltinExpr()
1467 if (PTy != ArgValue->getType()) { in EmitBuiltinExpr()
1470 ArgValue = Builder.CreateBitCast(ArgValue, PTy); in EmitBuiltinExpr()
1473 Args.push_back(ArgValue); in EmitBuiltinExpr()