Lines Matching defs:Result
35 RValue Result);
70 // messaged (avoids pulling it out of the result type).
81 RValue result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
84 return Builder.CreateBitCast(result.getScalarVal(),
169 RValue result
175 return Builder.CreateBitCast(result.getScalarVal(),
202 /// \brief Adjust the type of the result of an Objective-C message send
203 /// expression when the method has a related result type.
207 RValue Result) {
209 return Result;
213 !Result.isScalar())
214 return Result;
216 // We have applied a related result type. Cast the rvalue appropriately.
217 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(),
368 RValue result;
373 result = Runtime.GenerateMessageSendSuper(*this, Return, ResultType,
382 result = Runtime.GenerateMessageSend(*this, Return, ResultType,
388 // For delegate init calls in ARC, implicitly store the result of
393 llvm::Value *newSelf = result.getScalarVal();
404 return AdjustRelatedResultType(*this, E->getType(), method, result);
736 // reference, in which case the result will be a gl-value. We should
1743 // Cast the result back to the original type.
1768 // Cast the result back to a dereference of the original type.
1769 llvm::Value *result = call;
1771 result = CGF.Builder.CreateBitCast(result,
1774 return result;
1801 llvm::CallInst *result = CGF.Builder.CreateCall2(fn, addr, value);
1802 result->setDoesNotThrow();
1806 return CGF.Builder.CreateBitCast(result, origType);
1828 llvm::CallInst *result = CGF.Builder.CreateCall2(fn, dst, src);
1829 result->setDoesNotThrow();
1858 llvm::Value *result
1867 if (!mandatory && isa<llvm::Instruction>(result)) {
1869 = cast<llvm::CallInst>(result->stripPointerCasts());
1877 return result;
1880 /// Retain the given object which is the result of a function call.
2309 llvm::Value *result = CGF.EmitLoadOfLValue(lv).getScalarVal();
2314 return TryEmitResult(result, true);
2318 // result of a non-volatile assignment, do a simple retain of the
2319 // result of the call to objc_storeWeak instead of reloading.
2363 // Bitcasts can arise because of related-result returns. Rewrite
2380 /// objc_retain_block on the result of the given expression, or
2422 // Find the result expression.
2425 TryEmitResult result;
2432 // to the result of its source expression.
2437 // If this semantic is the result of the pseudo-object
2441 result = tryEmitARCRetainScalarExpr(CGF, ov->getSourceExpr());
2442 opaqueData = OVMA::bind(CGF, ov, RValue::get(result.getPointer()));
2450 // Otherwise, if the expression is the result, evaluate it
2451 // and remember the result.
2453 result = tryEmitARCRetainScalarExpr(CGF, semantic);
2465 return result;
2477 // The desired result type, if it differs from the type of the
2520 llvm::Value *result = CGF.EmitScalarExpr(ce->getSubExpr());
2521 if (resultType) result = CGF.Builder.CreateBitCast(result, resultType);
2522 return TryEmitResult(result, true);
2529 llvm::Value *result; // will be a +0 value
2534 result = CGF.EmitScalarExpr(ce->getSubExpr());
2540 result = subresult.getPointer();
2546 result = CGF.Builder.CreateBitCast(result, resultType);
2547 return TryEmitResult(result, true);
2554 result = CGF.EmitARCRetainBlock(result, /*mandatory*/ true);
2555 if (resultType) result = CGF.Builder.CreateBitCast(result, resultType);
2556 return TryEmitResult(result, true);
2562 llvm::Value *result = emitARCRetainCall(CGF, ce->getSubExpr());
2563 if (resultType) result = CGF.Builder.CreateBitCast(result, resultType);
2564 return TryEmitResult(result, true);
2585 llvm::Value *result = emitARCRetainCall(CGF, e);
2586 if (resultType) result = CGF.Builder.CreateBitCast(result, resultType);
2587 return TryEmitResult(result, true);
2591 TryEmitResult result
2594 llvm::Value *value = result.getPointer();
2596 result.setPointer(value);
2598 return result;
2607 llvm::Value *result = CGF.EmitScalarExpr(e);
2608 if (resultType) result = CGF.Builder.CreateBitCast(result, resultType);
2609 return TryEmitResult(result, false);
2615 TryEmitResult result = tryEmitARCRetainLoadOfScalar(CGF, lvalue, type);
2616 llvm::Value *value = result.getPointer();
2617 if (!result.getInt())
2627 TryEmitResult result = tryEmitARCRetainScalarExpr(*this, e);
2628 llvm::Value *value = result.getPointer();
2629 if (!result.getInt())
2636 TryEmitResult result = tryEmitARCRetainScalarExpr(*this, e);
2637 llvm::Value *value = result.getPointer();
2638 if (result.getInt())
2646 llvm::Value *result;
2650 result = EmitScalarExpr(e);
2654 result = subresult.getPointer();
2659 result = EmitARCRetainBlock(result, /*mandatory*/ true);
2660 return EmitObjCConsumeObject(e->getType(), result);
2693 TryEmitResult result = tryEmitARCRetainScalarExpr(*this, e->getRHS());
2694 llvm::Value *value = result.getPointer();
2696 bool hasImmediateRetain = result.getInt();
2990 RValue Result;
2991 Result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
2994 Val = Result.getScalarVal();
2995 Result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
2998 Val = Result.getScalarVal();