Home
last modified time | relevance | path

Searched refs:RValue (Results 1 – 25 of 50) sorted by relevance

12

/external/swiftshader/src/Reactor/
Dx86.hpp21 RValue<Int> cvtss2si(RValue<Float> val);
22 RValue<Int2> cvtps2pi(RValue<Float4> val);
23 RValue<Int2> cvttps2pi(RValue<Float4> val);
24 RValue<Int4> cvtps2dq(RValue<Float4> val);
26 RValue<Float> rcpss(RValue<Float> val);
27 RValue<Float> sqrtss(RValue<Float> val);
28 RValue<Float> rsqrtss(RValue<Float> val);
30 RValue<Float4> rcpps(RValue<Float4> val);
31 RValue<Float4> sqrtps(RValue<Float4> val);
32 RValue<Float4> rsqrtps(RValue<Float4> val);
[all …]
DNucleus.hpp270 class RValue;
299 RValue<Pointer<T>> operator&();
308 RValue<T> operator=(RValue<T> rhs) const;
309 RValue<T> operator=(const Reference<T> &ref) const;
311 RValue<T> operator+=(RValue<T> rhs) const;
359 class RValue class
362 explicit RValue(llvm::Value *rvalue);
364 RValue(const T &lvalue);
365 RValue(typename IntLiteral<T>::type i);
366 RValue(typename FloatLiteral<T>::type f);
[all …]
DNucleus.cpp868 Bool::Bool(RValue<Bool> rhs) in Bool()
885 RValue<Bool> Bool::operator=(RValue<Bool> rhs) const in operator =()
892 RValue<Bool> Bool::operator=(const Bool &rhs) const in operator =()
897 return RValue<Bool>(value); in operator =()
900 RValue<Bool> Bool::operator=(const Reference<Bool> &rhs) const in operator =()
905 return RValue<Bool>(value); in operator =()
908 RValue<Bool> operator!(RValue<Bool> val) in operator !()
910 return RValue<Bool>(Nucleus::createNot(val.value)); in operator !()
913 RValue<Bool> operator&&(RValue<Bool> lhs, RValue<Bool> rhs) in operator &&()
915 return RValue<Bool>(Nucleus::createAnd(lhs.value, rhs.value)); in operator &&()
[all …]
/external/clang/lib/CodeGen/
DCGAtomic.cpp186 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;
[all …]
DCGValue.h38 class RValue {
80 static RValue getIgnored() { in getIgnored()
85 static RValue get(llvm::Value *V) { in get()
86 RValue ER; in get()
92 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex()
93 RValue ER; in getComplex()
100 static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { in getComplex()
106 static RValue getAggregate(Address addr, bool isVolatile = false) {
107 RValue ER;
435 RValue asAggregateRValue() const { in asAggregateRValue()
[all …]
DCGExprCXX.cpp49 Args.add(RValue::get(This), MD->getThisType(CGF.getContext())); in commonEmitCXXMemberOrOperatorCall()
53 Args.add(RValue::get(ImplicitParam), ImplicitParamTy); in commonEmitCXXMemberOrOperatorCall()
73 RValue CodeGenFunction::EmitCXXMemberOrOperatorCall( in EmitCXXMemberOrOperatorCall()
85 RValue CodeGenFunction::EmitCXXDestructorCall( in EmitCXXDestructorCall()
106 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr()
132 RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr( in EmitCXXMemberOrOperatorMemberCallExpr()
177 if (isa<CXXDestructorDecl>(MD)) return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
180 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
190 return RValue::get(This.getPointer()); in EmitCXXMemberOrOperatorMemberCallExpr()
199 return RValue::get(This.getPointer()); in EmitCXXMemberOrOperatorMemberCallExpr()
[all …]
DCodeGenFunction.h849 const RValue &rv) { in bind()
912 RValue rvalue) in OpaqueValueMapping()
1018 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues;
1753 RValue EmitAnyExpr(const Expr *E,
1768 RValue EmitAnyExprToTemp(const Expr *E);
1838 const RValue &getOpaqueRValueMapping(const OpaqueValueExpr *e) { in getOpaqueRValueMapping()
1841 llvm::DenseMap<const OpaqueValueExpr*,RValue>::iterator in getOpaqueRValueMapping()
2027 RValue EmitBuiltinNewDeleteCall(const FunctionProtoType *Type,
2229 PeepholeProtection protectFromPeepholes(RValue rvalue);
2345 void emitOMPSimpleStore(LValue LVal, RValue RVal, QualType RValTy,
[all …]
DCGObjC.cpp34 static RValue AdjustObjCObjectType(CodeGenFunction &CGF,
36 RValue Result);
89 Args.add(RValue::get(BitCast.getPointer()), ArgQT); in EmitObjCBoxedExpr()
101 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr()
106 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr()
154 EmitStoreThroughLValue(RValue::get(value), LV, true); in EmitObjCCollectionLiteral()
165 EmitStoreThroughLValue(RValue::get(keyValue), KeyLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
173 EmitStoreThroughLValue(RValue::get(valueValue), ValueLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
186 Args.add(RValue::get(Objects.getPointer()), ArgQT); in EmitObjCCollectionLiteral()
190 Args.add(RValue::get(Keys.getPointer()), ArgQT); in EmitObjCCollectionLiteral()
[all …]
DCGCUDABuiltin.cpp69 RValue
90 return RValue::get(llvm::ConstantInt::get(IntTy, 0)); in EmitCUDADevicePrintfCallExpr()
115 return RValue::get( in EmitCUDADevicePrintfCallExpr()
DCGBuiltin.cpp136 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic()
139 return RValue::get(MakeBinaryAtomicValue(CGF, Kind, E)); in EmitBinaryAtomic()
145 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost()
177 return RValue::get(Result); in EmitBinaryAtomicPost()
305 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn, in emitLibraryCall()
465 RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, in EmitBuiltinExpr()
473 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
476 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
484 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), nullptr)); in EmitBuiltinExpr()
489 return RValue::get( in EmitBuiltinExpr()
[all …]
DCGCall.h46 RValue RV;
49 CallArg(RValue rv, QualType ty, bool needscopy) in CallArg()
81 void add(RValue rvalue, QualType type, bool needscopy = false) {
DCGCUDARuntime.h34 class RValue; variable
50 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
54 return RValue::get(nullptr); in EmitCUDAKernelCallExpr()
DCGExprAgg.cpp81 void EmitFinalDestCopy(QualType type, RValue src);
85 void EmitMoveFromReturnSlot(const Expr *E, RValue Src);
203 RValue Res = CGF.EmitAtomicExpr(E); in VisitAtomicExpr()
255 void AggExprEmitter::EmitMoveFromReturnSlot(const Expr *E, RValue src) { in EmitMoveFromReturnSlot()
269 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src) { in EmitFinalDestCopy()
351 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr()
368 CGF.EmitStoreThroughLValue(RValue::get(ArrayEnd), EndOrLength); in VisitCXXStdInitializerListExpr()
371 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr()
683 RValue rvalue = RValue::getAggregate(valueAddr, atomicSlot.isVolatile()); in VisitCastExpr()
763 RValue RV = CGF.EmitCallExpr(E, getReturnValueSlot()); in VisitCallExpr()
[all …]
DCGExpr.cpp140 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
145 return RValue::get(EmitScalarExpr(E, ignoreResult)); in EmitAnyExpr()
147 return RValue::getComplex(EmitComplexExpr(E, ignoreResult, ignoreResult)); in EmitAnyExpr()
159 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
189 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
484 RValue
501 return RValue::get(Value); in EmitReferenceBindingToExpr()
903 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
905 return RValue::get(nullptr); in GetUndefRValue()
912 return RValue::getComplex(std::make_pair(U, U)); in GetUndefRValue()
[all …]
DCGCleanup.cpp27 bool DominatingValue<RValue>::saved_type::needsSaving(RValue rv) { in needsSaving()
35 DominatingValue<RValue>::saved_type
36 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save()
82 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
89 return RValue::get(Value); in restore()
91 return RValue::get(CGF.Builder.CreateLoad(getSavingAddress(Value))); in restore()
93 return RValue::getAggregate(Address(Value, CharUnits::fromQuantity(Align))); in restore()
96 return RValue::getAggregate(Address(addr, CharUnits::fromQuantity(Align))); in restore()
106 return RValue::getComplex(real, imag); in restore()
DCGStmtOpenMP.cpp159 EmitStoreThroughLValue(RValue::get(CV), SrcLV); in GenerateOpenMPCapturedVars()
417 RValue Func = RValue::get(Reduction.second); in emitInitWithReductionInitializer()
426 RValue InitRVal; in emitInitWithReductionInitializer()
433 RValue::getComplex(CGF.EmitLoadOfComplex(LV, SourceLocation())); in emitInitWithReductionInitializer()
436 InitRVal = RValue::getAggregate(LV.getAddress()); in emitInitWithReductionInitializer()
985 RValue::get(Size)); in EmitOMPReductionClauseInit()
1074 RValue::get( in EmitOMPReductionClauseInit()
1514 RValue Len = CGF.EmitAnyExpr(C->getSimdlen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause()
1524 RValue Len = CGF.EmitAnyExpr(C->getSafelen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause()
2781 static llvm::Value *convertToScalarValue(CodeGenFunction &CGF, RValue Val, in convertToScalarValue()
[all …]
DCGExprComplex.cpp230 RValue &Val);
348 return CGF.EmitAtomicStore(RValue::getComplex(Val), lvalue, isInit); in EmitStoreOfComplex()
577 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall()
579 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall()
581 Args.add(RValue::get(Op.RHS.first), in EmitComplexBinOpLibCall()
583 Args.add(RValue::get(Op.RHS.second), in EmitComplexBinOpLibCall()
605 RValue Res = CGF.EmitCall(FuncInfo, Func, ReturnValueSlot(), Args, in EmitComplexBinOpLibCall()
826 RValue &Val) { in EmitCompoundAssignLValue()
881 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue()
886 Val = RValue::get(ResVal); in EmitCompoundAssignLValue()
[all …]
DCGVTables.cpp83 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment()
84 QualType ResultType, RValue RV, in PerformReturnAdjustment()
124 return RValue::get(ReturnValue); in PerformReturnAdjustment()
195 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk()
281 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk()
323 RValue RV = EmitCall(*CurFnInfo, Callee, Slot, CallArgs, MD, &CallOrInvoke); in EmitCallAndReturnForThunk()
/external/swiftshader/src/Shader/
DShaderCore.hpp88 Float4 exponential2(RValue<Float4> x, bool pp = false);
89 Float4 logarithm2(RValue<Float4> x, bool abs, bool pp = false);
90 Float4 exponential(RValue<Float4> x, bool pp = false);
91 Float4 logarithm(RValue<Float4> x, bool abs, bool pp = false);
92 Float4 power(RValue<Float4> x, RValue<Float4> y, bool pp = false);
93 …Float4 reciprocal(RValue<Float4> x, bool pp = false, bool finite = false, bool exactAtPow2 = false…
94 Float4 reciprocalSquareRoot(RValue<Float4> x, bool abs, bool pp = false);
95 Float4 modulo(RValue<Float4> x, RValue<Float4> y);
96 Float4 sine_pi(RValue<Float4> x, bool pp = false); // limited to [-pi, pi] range
97 Float4 cosine_pi(RValue<Float4> x, bool pp = false); // limited to [-pi, pi] range
[all …]
DShaderCore.cpp201 Float4 exponential2(RValue<Float4> x, bool pp) in exponential2()
234 Float4 logarithm2(RValue<Float4> x, bool absolute, bool pp) in logarithm2()
258 Float4 exponential(RValue<Float4> x, bool pp) in exponential()
264 Float4 logarithm(RValue<Float4> x, bool absolute, bool pp) in logarithm()
270 Float4 power(RValue<Float4> x, RValue<Float4> y, bool pp) in power()
277 Float4 reciprocal(RValue<Float4> x, bool pp, bool finite, bool exactAtPow2) in reciprocal()
304 Float4 reciprocalSquareRoot(RValue<Float4> x, bool absolute, bool pp) in reciprocalSquareRoot()
335 Float4 modulo(RValue<Float4> x, RValue<Float4> y) in modulo()
340 Float4 sine_pi(RValue<Float4> x, bool pp) in sine_pi()
359 Float4 cosine_pi(RValue<Float4> x, bool pp) in cosine_pi()
[all …]
DVertexProgram.hpp71 RValue<Pointer<Byte>> uniformAddress(int bufferIndex, unsigned int index);
72 RValue<Pointer<Byte>> uniformAddress(int bufferIndex, unsigned int index, Int& offset);
/external/clang/test/CXX/special/class.copy/
Dp11.0x.move.cpp135 struct RValue { struct
137 RValue(RValue&&);
139 RValue::RValue(RValue&&) = default;
Dp11.0x.copy.cpp124 struct RValue { struct
128 RValue RVa;
129 RValue RVb(RVa); // expected-error{{call to implicitly-deleted copy constructor}}
/external/libcxx/test/libcxx/utilities/function.objects/func.require/
Dbullet_1_2_3.pass.cpp139 bool RValue = false, bool ArgRValue = false>
163 Bool<!RValue> NotRValue; in doTest()
213 typedef Caster<Q_None, RValue> SCast; in runTest()
223 typedef Caster<Q_None, RValue> SCast; in runTest()
233 typedef Caster<Q_None, RValue> SCast; in runTest()
246 template <class Sig, int Arity, class CV, bool RValue = false>
247 struct TestCase11 : public TestCaseImp<MemFun11, Sig, Arity, CV, RValue, true> {};

12