Lines Matching refs:RValue
186 RValue convertAtomicTempToRValue(Address addr, AggValueSlot resultSlot,
190 llvm::Value *convertRValueToInt(RValue RVal) const;
192 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal,
197 void emitCopyIntoMemory(RValue rvalue) const;
212 RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
224 std::pair<RValue, llvm::Value *>
225 EmitAtomicCompareExchange(RValue Expected, RValue Desired,
236 const llvm::function_ref<RValue(RValue)> &UpdateOp,
240 void EmitAtomicUpdate(llvm::AtomicOrdering AO, RValue UpdateRVal,
244 Address materializeRValue(RValue rvalue) const;
275 const llvm::function_ref<RValue(RValue)> &UpdateOp,
279 const llvm::function_ref<RValue(RValue)> &UpdateOp,
282 void EmitAtomicUpdateLibcall(llvm::AtomicOrdering AO, RValue UpdateRVal,
285 void EmitAtomicUpdateOp(llvm::AtomicOrdering AO, RValue UpdateRal,
303 static RValue emitAtomicLibcall(CodeGenFunction &CGF, in emitAtomicLibcall()
653 Args.add(RValue::get(Val), ValTy); in AddDirectArgument()
656 Args.add(RValue::get(CGF.EmitCastToVoidPtr(Val)), in AddDirectArgument()
661 RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) { in EmitAtomicExpr()
683 return RValue::get(nullptr); in EmitAtomicExpr()
832 Args.add(RValue::get(llvm::ConstantInt::get(SizeTy, Size)), in EmitAtomicExpr()
836 Args.add(RValue::get(EmitCastToVoidPtr(Ptr.getPointer())), in EmitAtomicExpr()
863 Args.add(RValue::get(EmitCastToVoidPtr(Val1.getPointer())), in EmitAtomicExpr()
867 Args.add(RValue::get(Order), getContext().IntTy); in EmitAtomicExpr()
978 Args.add(RValue::get(EmitCastToVoidPtr(Dest.getPointer())), in EmitAtomicExpr()
983 Args.add(RValue::get(Order), in EmitAtomicExpr()
991 RValue Res = emitAtomicLibcall(*this, LibCallName, RetTy, Args); in EmitAtomicExpr()
1013 return RValue::get(nullptr); in EmitAtomicExpr()
1062 return RValue::get(nullptr); in EmitAtomicExpr()
1133 return RValue::get(nullptr); in EmitAtomicExpr()
1162 RValue AtomicInfo::convertAtomicTempToRValue(Address addr, in convertAtomicTempToRValue()
1180 return RValue::get(CGF.Builder.CreateLoad(addr)); in convertAtomicTempToRValue()
1195 RValue AtomicInfo::ConvertIntToValueOrAtomic(llvm::Value *IntVal, in ConvertIntToValueOrAtomic()
1211 return RValue::get(CGF.EmitFromMemory(IntVal, ValueTy)); in ConvertIntToValueOrAtomic()
1213 return RValue::get(CGF.Builder.CreateIntToPtr(IntVal, ValTy)); in ConvertIntToValueOrAtomic()
1215 return RValue::get(CGF.Builder.CreateBitCast(IntVal, ValTy)); in ConvertIntToValueOrAtomic()
1242 Args.add(RValue::get(getAtomicSizeValue()), CGF.getContext().getSizeType()); in EmitAtomicLoadLibcall()
1243 Args.add(RValue::get(CGF.EmitCastToVoidPtr(getAtomicPointer())), in EmitAtomicLoadLibcall()
1245 Args.add(RValue::get(CGF.EmitCastToVoidPtr(AddForLoaded)), in EmitAtomicLoadLibcall()
1248 RValue::get(llvm::ConstantInt::get(CGF.IntTy, (int)llvm::toCABI(AO))), in EmitAtomicLoadLibcall()
1284 RValue CodeGenFunction::EmitAtomicLoad(LValue LV, SourceLocation SL, in EmitAtomicLoad()
1297 RValue AtomicInfo::EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc, in EmitAtomicLoad()
1321 return RValue::getAggregate(Address::invalid(), false); in EmitAtomicLoad()
1330 RValue CodeGenFunction::EmitAtomicLoad(LValue src, SourceLocation loc, in EmitAtomicLoad()
1340 void AtomicInfo::emitCopyIntoMemory(RValue rvalue) const { in emitCopyIntoMemory()
1373 Address AtomicInfo::materializeRValue(RValue rvalue) const { in materializeRValue()
1386 llvm::Value *AtomicInfo::convertRValueToInt(RValue RVal) const { in convertRValueToInt()
1438 Args.add(RValue::get(getAtomicSizeValue()), CGF.getContext().getSizeType()); in EmitAtomicCompareExchangeLibcall()
1439 Args.add(RValue::get(CGF.EmitCastToVoidPtr(getAtomicPointer())), in EmitAtomicCompareExchangeLibcall()
1441 Args.add(RValue::get(CGF.EmitCastToVoidPtr(ExpectedAddr)), in EmitAtomicCompareExchangeLibcall()
1443 Args.add(RValue::get(CGF.EmitCastToVoidPtr(DesiredAddr)), in EmitAtomicCompareExchangeLibcall()
1445 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall()
1448 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall()
1457 std::pair<RValue, llvm::Value *> AtomicInfo::EmitAtomicCompareExchange( in EmitAtomicCompareExchange()
1458 RValue Expected, RValue Desired, llvm::AtomicOrdering Success, in EmitAtomicCompareExchange()
1492 EmitAtomicUpdateValue(CodeGenFunction &CGF, AtomicInfo &Atomics, RValue OldRVal, in EmitAtomicUpdateValue()
1493 const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdateValue()
1495 RValue UpRVal; in EmitAtomicUpdateValue()
1535 RValue NewRVal = UpdateOp(UpRVal); in EmitAtomicUpdateValue()
1546 llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdateLibcall()
1575 llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdateOp()
1607 RValue UpdateRVal, Address DesiredAddr) { in EmitAtomicUpdateValue()
1634 RValue UpdateRVal, bool IsVolatile) { in EmitAtomicUpdateLibcall()
1658 void AtomicInfo::EmitAtomicUpdateOp(llvm::AtomicOrdering AO, RValue UpdateRVal, in EmitAtomicUpdateOp()
1688 llvm::AtomicOrdering AO, const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdate()
1697 void AtomicInfo::EmitAtomicUpdate(llvm::AtomicOrdering AO, RValue UpdateRVal, in EmitAtomicUpdate()
1706 void CodeGenFunction::EmitAtomicStore(RValue rvalue, LValue lvalue, in EmitAtomicStore()
1724 void CodeGenFunction::EmitAtomicStore(RValue rvalue, LValue dest, in EmitAtomicStore()
1750 args.add(RValue::get(atomics.getAtomicSizeValue()), in EmitAtomicStore()
1752 args.add(RValue::get(EmitCastToVoidPtr(atomics.getAtomicPointer())), in EmitAtomicStore()
1754 args.add(RValue::get(EmitCastToVoidPtr(srcAddr.getPointer())), in EmitAtomicStore()
1757 RValue::get(llvm::ConstantInt::get(IntTy, (int)llvm::toCABI(AO))), in EmitAtomicStore()
1791 std::pair<RValue, llvm::Value *> CodeGenFunction::EmitAtomicCompareExchange( in EmitAtomicCompareExchange()
1792 LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, in EmitAtomicCompareExchange()
1811 const llvm::function_ref<RValue(RValue)> &UpdateOp, bool IsVolatile) { in EmitAtomicUpdate()
1822 atomics.emitCopyIntoMemory(RValue::get(value)); in EmitAtomicInit()
1828 atomics.emitCopyIntoMemory(RValue::getComplex(value)); in EmitAtomicInit()