Home
last modified time | relevance | path

Searched refs:lvalue (Results 1 – 25 of 110) sorted by relevance

12345

/llvm-project/clang/test/CXX/over/over.match/over.match.funcs/
H A Dp4-0x.cpp3 template<typename T> T &lvalue();
30 void lvalue() &; // expected-note 2 {{'lvalue' declared here}}
52 int &ir1 = lvalue<X0>().f(); in test_ref_qualifier_binding()
55 int &ir2 = lvalue<X0>().ft(1); in test_ref_qualifier_binding()
61 int &ir1 = lvalue<X0>()(); in test_ref_qualifier_binding_with_surrogates()
67 int &ir1 = lvalue<X0>() + prvalue<X0>(); in test_ref_qualifier_binding_operators()
70 int &ir2 = lvalue<X0>() + 1; in test_ref_qualifier_binding_operators()
76 int &ir1 = lvalue<X0>().h(); in test_ref_qualifier_overloading()
79 int &ir2 = lvalue<X0>().h2(); in test_ref_qualifier_overloading()
94 lvalue<X0>().lvalue(); in test_diagnostics()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.modifiers/
H A Dinsert_iter_lvalue.pass.cpp26 const int lvalue = 1; in test() local
27 std::vector<int>::iterator i = v.insert(v.cbegin() + 10, lvalue); in test()
42 const int lvalue = 1; in test() local
45 std::vector<int>::iterator it = v.insert(v.cbegin() + n, lvalue); in test()
53 assert(v[n] == lvalue); in test()
59 const int lvalue = 1; in test() local
60 std::vector<int>::iterator i = v.insert(v.cbegin() + 10, lvalue); in test()
76 const int lvalue = 1; in test() local
77 std::vector<int>::iterator i = v.insert(v.cbegin() + 10, lvalue); in test()
90 const int lvalue = 1; in test() local
[all …]
/llvm-project/clang/test/AST/HLSL/
H A Dthis-reference.hlsl41 // CHECK-NEXT:`-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:11, col:16> 'int' lvalue .First 0x{{[0-9A-Fa-f]+…
42 // CHECK-NEXT:`-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:11> 'Pair' lvalue this
47 // CHECK-NEXT:`-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'int' lvalue .Second 0x{{[0-9A-Fa-f]+}}
48 // CHECK-NEXT:`-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'Pair' lvalue implicit this
56 // CHECK-NEXT:`-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:12, col:17> 'int' lvalue .First 0x{{[0-9A-Fa-f]+…
57 // CHECK-NEXT:`-ImplicitCastExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'Pair' lvalue <UncheckedDerivedToBase …
58 // CHECK-NEXT:`-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'PairInfo' lvalue this
60 // CHECK-NEXT:`-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:25> 'int' lvalue .Second 0x{{[0-9A-Fa-f]+}}
61 // CHECK-NEXT:`-ImplicitCastExpr 0x{{[0-9A-Fa-f]+}} <col:25> 'Pair' lvalue <UncheckedDerivedToBase …
62 // CHECK-NEXT:`-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:25> 'PairInfo' lvalue implicit this
H A Dthis-reference-template.hlsl27 // CHECK-NEXT:-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:11, col:16> 'K' lvalue .First 0x{{[0-9A-Fa-f]+}}
28 // CHECK-NEXT:-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:11> 'Pair<K, V>' lvalue this
32 // CHECK-NEXT:-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'V' lvalue .Second 0x{{[0-9A-Fa-f]+}}
33 // CHECK-NEXT:-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'Pair<K, V>' lvalue implicit this
39 // CHECK-NEXT:-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:11, col:16> 'int' lvalue .First 0x{{[0-9A-Fa-f]+}}
40 // CHECK-NEXT:-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:11> 'Pair<int, float>' lvalue this
45 // CHECK-NEXT:-MemberExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'float' lvalue .Second 0x{{[0-9A-Fa-f]+}}
46 // CHECK-NEXT:-CXXThisExpr 0x{{[0-9A-Fa-f]+}} <col:12> 'Pair<int, float>' lvalue implicit this
H A Dvector-constructors.hlsl29 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
30 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float2':'vector<float, 2>' lvalue Var 0x{{[0-9a-fA-F]+}} 'Vec2' 'float2':'vector<float, 2>'
33 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
34 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float2':'vector<float, 2>' lvalue Var 0x{{[0-9a-fA-F]+}} 'Vec2' 'float2':'vector<float, 2>'
56 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float' lvalue Var 0x{{[0-9a-fA-F]+}} 'f' 'float'
58 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float' lvalue Var 0x{{[0-9a-fA-F]+}} 'g' 'float'
78 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'int' lvalue Var 0x{{[0-9a-fA-F]+}} 'i' 'int'
81 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'int' lvalue Var 0x{{[0-9a-fA-F]+}} 'j' 'int'
90 // CHECK-NEXT: MemberExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float' lvalue .f 0x{{[0-9a-fA-F]+}}
91 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'struct S':'S' lvalue Va
[all...]
H A Dgroup_shared.hlsl9 // CHECK:BinaryOperator 0x{{[0-9a-f]+}} <{{.*}}> 'groupshared float' lvalue '='
10 // CHECK:ArraySubscriptExpr 0x{{[0-9a-f]+}} <col:4, col:7> 'groupshared float' lvalue
12 // CHECK:DeclRefExpr 0x{{[0-9a-f]+}} <col:4> 'groupshared float[10]' lvalue Var 0x[[A]] 'a' 'groups…
/llvm-project/clang/test/CXX/expr/expr.post/expr.static.cast/
H A Dp3-p4-0x.cpp17 template<typename T> T& lvalue();
24 A &&ar2 = static_cast<A&&>(lvalue<C>()); in test()
27 A &&ar5 = static_cast<A&&>(lvalue<D>()); in test()
32 …A &&ar9 = static_cast<A&&>(lvalue<const A>()); // expected-error {{cannot cast from lvalue of typ… in test()
37 const A &&ar13 = static_cast<const A&&>(lvalue<C>()); in test()
40 const A &&ar16 = static_cast<const A&&>(lvalue<D>()); in test()
H A Dp3-0x.cpp9 template<typename T> T& lvalue();
15 A &&ar2 = static_cast<A&&>(lvalue<A>()); in test()
16 A &&ar3 = static_cast<A&&>(lvalue<B>()); in test()
21 const A &&ar8 = static_cast<const A&&>(lvalue<A>()); in test()
22 const A &&ar9 = static_cast<const A&&>(lvalue<B>()); in test()
/llvm-project/clang/test/SemaHLSL/
H A DVectorOverloadResolution.hlsl9 // CHECK-NEXT: DeclRefExpr {{.*}}'void (double2)' lvalue Function {{.*}} 'Fn' 'void (double2)'
12 // CHECK-NEXT: DeclRefExpr {{.*}} 'float2':'vector<float, 2>' lvalue ParmVar {{.*}} 'F' 'float2':'vector<float, 2>'
24 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (int64_t2)' lvalue Function {{.*}} 'Fn2' 'void (int64_t2)'
27 // CHECK-NEXT: DeclRefExpr {{.*}} 'int2':'vector<int, 2>' lvalue ParmVar {{.*}} 'I' 'int2':'vector<int, 2>'
38 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (int64_t2)' lvalue Function {{.*}} 'Fn3' 'void (int64_t2)'
41 // CHECK-NEXT: DeclRefExpr {{.*}} 'half2':'vector<half, 2>' lvalue ParmVar {{.*}} 'p0' 'half2':'vector<half, 2>'
51 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (int64_t2)' lvalue Function {{.*}} 'Fn3' 'void (int64_t2)'
54 // CHECK-NEXT: DeclRefExpr {{.*}} 'float2':'vector<float, 2>' lvalue ParmVar {{.*}} 'p0' 'float2':'vector<float, 2>'
66 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float2)' lvalue Function {{.*}} 'Fn4' 'void (float2)'
69 // CHECK-NEXT: DeclRefExpr {{.*}} 'int64_t2':'vector<int64_t, 2>' lvalue ParmVa
[all...]
H A DVectorElementOverloadResolution.hlsl60 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half2)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (half2)'
65 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float2)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (float2)'
70 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double2)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (double2)'
89 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float2)' lvalue Function {{.*}} 'FloatDouble' 'void (float2)'
94 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double2)' lvalue Function {{.*}} 'FloatDouble' 'void (double2)'
110 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half2)' lvalue Function {{.*}} 'HalfDouble' 'void (half2)'
115 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double2)' lvalue Function {{.*}} 'HalfDouble' 'void (double2)'
120 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double2)' lvalue Function {{.*}} 'HalfDouble' 'void (double2)'
135 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half2)' lvalue Function {{.*}} 'HalfFloat' 'void (half2)'
140 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float2)' lvalue Functio
[all...]
H A DScalarOverloadResolution.hlsl61 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (half)'
66 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (float)'
71 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double)' lvalue Function {{.*}} 'HalfFloatDouble' 'void (double)'
91 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float)' lvalue Function {{.*}} 'FloatDouble' 'void (float)'
96 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double)' lvalue Function {{.*}} 'FloatDouble' 'void (double)'
112 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half)' lvalue Function {{.*}} 'HalfDouble' 'void (half)'
117 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double)' lvalue Function {{.*}} 'HalfDouble' 'void (double)'
122 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (double)' lvalue Function {{.*}} 'HalfDouble' 'void (double)'
138 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (half)' lvalue Function {{.*}} 'HalfFloat' 'void (half)'
143 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float)' lvalue Functio
[all...]
H A DArrayTemporary.hlsl7 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float[2])' lvalue Function {{.*}} 'fn' 'void (float[2])'
24 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (Obj[4])' lvalue Function {{.*}} 'fn2' 'void (Obj[4])'
37 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float[2][2])' lvalue Function {{.*}} 'fn3' 'void (float[2][2])'
77 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float[2])' lvalue Function {{.*}} 'template_fn' 'void (float[2])' (FunctionTemplate {{.*}} 'template_fn')
79 // CHECK-NEXT: DeclRefExpr {{.*}} 'float[2]' lvalue ParmVar {{.*}} 'FA2' 'float[2]'
82 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (float[4])' lvalue Function {{.*}} 'template_fn' 'void (float[4])' (FunctionTemplate {{.*}} 'template_fn')
84 // CHECK-NEXT: DeclRefExpr {{.*}} 'float[4]' lvalue ParmVar {{.*}} 'FA4' 'float[4]'
87 // CHECK-NEXT: DeclRefExpr {{.*}} 'void (int[3])' lvalue Function {{.*}} 'template_fn' 'void (int[3])' (FunctionTemplate {{.*}} 'template_fn')
89 // CHECK-NEXT: DeclRefExpr {{.*}} 'int[3]' lvalue ParmVar {{.*}} 'IA3' 'int[3]'
H A Dstandard_conversion_sequences.hlsl15 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<float, 3>' lvalue Var {{.*}} 'f3' 'vector<float, 3>'
21 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<float, 3>' lvalue Var {{.*}} 'f3' 'vector<float, 3>'
29 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<double, 4>' lvalue Var {{.*}} 'd4' 'vector<double, 4>'
37 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<float, 2>' lvalue Var {{.*}} 'f2' 'vector<float, 2>'
45 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<double, 4>' lvalue Var {{.*}} 'd4' 'vector<double, 4>'
54 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<double, 4>' lvalue Var {{.*}} 'd4' 'vector<double, 4>'
62 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<long, 4>' lvalue Var {{.*}} 'i64_4' 'vector<long, 4>'
70 //CHECK-NEXT: DeclRefExpr {{.*}} 'vector<int, 2>' lvalue Var {{.*}} 'i2_3' 'vector<int, 2>'
77 // CHECK-NEXT: DeclRefExpr {{.*}} 'vector<double, 4>' lvalue Var {{.*}} 'd4' 'vector<double, 4>'
88 vector<float,4> f4 = f3; // expected-error{{cannot initialize a variable of type 'vector<[...], 4>' with an lvalue o
[all...]
/llvm-project/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
H A Dp5-0x.cpp7 template<typename T> T& lvalue();
216 …int & ir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference cannot bind to bit-f… in test()
219 int && ir4 = move(lvalue<IntBitfield>()).i; // no-warning in test()
221 …volatile int & vir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference cannot bin… in test()
224 volatile int && vir4 = move(lvalue<IntBitfield>()).i; // no-warning in test()
226 const int & cir1 = (lvalue<IntBitfield>().i); // no-warning in test()
229 const int && cir4 = move(lvalue<IntBitfield>()).i; // no-warning in test()
231 …const volatile int & cvir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference can… in test()
234 const volatile int && cvir4 = move(lvalue<IntBitfield>()).i; // no-warning in test()
/llvm-project/clang/test/AST/Interp/
H A Deval-order.cpp
/llvm-project/clang/test/CXX/expr/expr.mptr.oper/
H A Dp6-0x.cpp5 template<typename T> T& lvalue();
18 (lvalue<X>().*pmf)(17); in test()
24 (lvalue<X>().*l_pmf)(17); in test()
30 …(lvalue<X>().*r_pmf)(17); // expected-error-re{{pointer-to-member function type 'int (X::*)(int){{… in test()
/llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/
H A Dp3-0x.cpp35 // If P is a forwarding reference and the argument is an lvalue, the type
36 // "lvalue reference to A" is used in place of A for type deduction.
45 template<typename T> T& lvalue();
50 X<int&> xi2 = f0(lvalue<int>()); in test_f0()
53 X<Y&> xy2 = f0(lvalue<Y>()); in test_f0()
62 f1(lvalue<int>()); // expected-error{{no matching function for call to 'f1'}} in test_f1()
65 f1(lvalue<Y>()); // expected-error{{no matching function for call to 'f1'}} in test_f1()
/llvm-project/clang/test/OpenMP/
H A Dtarget_update_codegen.cpp329 // CK5-LABEL: lvalue
330 void lvalue(int *B, int l, int e) { in lvalue() function
369 // CK6-LABEL: lvalue
370 void lvalue(int *B, int l, int e) { in lvalue() function
414 // CK7-LABEL: lvalue
415 void lvalue(int *B, int l, int e) { in lvalue() function
462 // CK8-LABEL: lvalue
463 void lvalue(int **B, int l, int e) { in lvalue() function
515 // CK9-LABEL: lvalue
516 void lvalue(struc function
563 void lvalue(struct S *s, int l, int e) { lvalue() function
610 void lvalue(struct S *s, int l, int e) { lvalue() function
659 void lvalue(struct S *s, int l, int e) { lvalue() function
711 void lvalue(int **BB, int a, int b) { lvalue() function
[all...]
/llvm-project/llvm/test/Transforms/DeadStoreElimination/
H A D2011-09-06-EndOfFunction.ll11 %temp.lvalue = alloca %"class.std::auto_ptr", align 8
12 call void @_Z3barv(ptr sret(%"class.std::auto_ptr") %temp.lvalue)
13 %tmp.i.i = load ptr, ptr %temp.lvalue, align 8
15 store ptr null, ptr %temp.lvalue, align 8
/llvm-project/clang/docs/HLSL/
H A DFunctionCalls.rst43 and output, the temporary is initialized from the lvalue argument expression
44 through implicit or explicit casting from the lvalue argument type to the
196 | `-DeclRefExpr 'void (float [4])' lvalue Function 'SizedArray' 'void (float [4])'
198 `-DeclRefExpr 'float [4]' lvalue Var 'arr' 'float [4]'
207 | `-DeclRefExpr 'void (float [])' lvalue Function 'UnsizedArray' 'void (float [])'
209 `-DeclRefExpr 'float [4]' lvalue Var 'arr' 'float [4]'
239 | `-DeclRefExpr 'void (float [])' lvalue Function 'UnsizedArray' 'void (float [])'
241 `-DeclRefExpr 'float [4]' lvalue Var 'arr' 'float [4]'
248 the result of a cast, and stores its value back to an lvalue when the value
276 | `-DeclRefExpr 'void (int &)' lvalue Function 'Init' 'void (int &)'
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dconstant-expression-cxx1z.cpp65 template<typename T> struct lvalue { struct
134 SEQ(B(lvalue<int>().get()) = A(0));
135 SEQ(B(lvalue<UserDefined>().get()) = A(ud));
136 SEQ(B(lvalue<int>().get()) += A(0));
137 SEQ(B(lvalue<UserDefined>().get()) += A(ud));
138 SEQ(B(lvalue<NonMember>().get()) += A(nm));
H A Dexpression-traits.cpp365 Class lvalue; in expr_ref_4() local
366 ASSERT_LVALUE(lvalue.dataMember); in expr_ref_4()
380 ASSERT_RVALUE(lvalue.Enumerator); in expr_ref_4()
507 Class lvalue; in expr_mptr_oper() local
508 ASSERT_LVALUE(lvalue.*(&Class::dataMember)); in expr_mptr_oper()
515 ASSERT_LVALUE((&lvalue)->*(&Class::dataMember)); in expr_mptr_oper()
/llvm-project/clang/test/SemaHLSL/Types/BuiltinVector/
H A DScalarSwizzles.hlsl7 // CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<int, 1>' lvalue <VectorSplat>
8 // CHECK-NEXT: DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'V' 'int'
16 // CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<float, 1>' lvalue <VectorSplat>
17 // CHECK-NEXT: DeclRefExpr {{.*}} 'float' lvalue ParmVar {{.*}} 'V' 'float'
95 // CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<float, 1>' lvalue <VectorSplat>
96 // CHECK-NEXT: DeclRefExpr {{.*}} 'float' lvalue ParmVar {{.*}} 'V' 'float'
/llvm-project/clang/lib/CodeGen/
H A DCGAtomic.cpp42 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue)
45 assert(!lvalue.isGlobalReg()); in AtomicInfo()
47 if (lvalue.isSimple()) { in AtomicInfo()
48 AtomicTy = lvalue.getType(); in AtomicInfo()
70 if (lvalue.getAlignment().isZero()) in AtomicInfo()
71 lvalue.setAlignment(AtomicAlign); in AtomicInfo()
73 LVal = lvalue; in AtomicInfo()
74 } else if (lvalue.isBitField()) { in AtomicInfo()
75 ValueTy = lvalue.getType(); in AtomicInfo()
77 auto &OrigBFI = lvalue in AtomicInfo()
43 AtomicInfo(CodeGenFunction & CGF,LValue & lvalue) AtomicInfo() argument
831 LValue lvalue = MakeAddrLValue(Ptr, AtomicTy); EmitAtomicExpr() local
1929 EmitAtomicStore(RValue rvalue,LValue lvalue,bool isInit) EmitAtomicStore() argument
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dthrow-by-value-catch-by-reference.cpp40 logic_error lvalue("lvalue"); in testThrowFunc() local
41 throw lvalue; in testThrowFunc()
44 throw move(lvalue); in testThrowFunc()

12345