Home
last modified time | relevance | path

Searched refs:same (Results 1 – 25 of 3196) sorted by relevance

12345678910>>...128

/llvm-project/clang/test/CXX/dcl.decl/dcl.decomp/
H A Dp4.cpp3 template<typename T, typename U> struct same;
4 template<typename T> struct same<T, T> { ~same(); }; struct
84 same<decltype(m), int>(); in test()
98 same<decltype(i), int>(); in e()
99 same<decltype(r), int&>(); in e()
100 same<decltype(f), const float>(); in e()
101 same<decltype(mvi), volatile int>(); in e()
103 same<decltype((i)), int&>(); in e()
104 same<decltype((r)), int&>(); in e()
105 same<decltype((f)), const float&>(); in e()
[all …]
/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp2-1z.cpp3 template<typename T, typename U> constexpr bool same = false; variable
4 template<typename T> constexpr bool same<T, T> = true;
10 static_assert(same<decltype(a()), void>);
18 static_assert(same<decltype(b()), double>);
39 static_assert(same<decltype(d<0>()), int>);
40 static_assert(same<decltype(d<1>()), const char *>);
41 static_assert(same<decltype(d<2>()), double>);
42 static_assert(same<decltype(d<3>()), void>);
47 static_assert(same<decltype(e), int>);
H A Dp3.cpp36 template<typename T, typename U> struct same;
37 template<typename T> struct same<T, T> {}; struct
47 same<__typeof(x), int> xHasTypeInt; in p3example()
48 same<__typeof(v), const int*> vHasTypeConstIntPtr; in p3example()
49 same<__typeof(u), const int> uHasTypeConstInt; in p3example()
50 same<__typeof(y), double> yHasTypeDouble; in p3example()
/llvm-project/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/
H A Dp8-2a.cpp23 constexpr bool same(A, A) { return true; } in same() function
24 constexpr bool same(B, B) { return true; } in same() function
25 constexpr bool same(int a, int b) { return a == b; } in same() function
27 constexpr bool same(Op<T, U> x, Op<T, U> y) { in same() function
28 return same(x.l, y.l) && __builtin_strcmp(x.op, y.op) == 0 && same(x.r, y.r); in same()
34 static_assert(same(x < y, (x <=> y) < 0)); in f()
35 static_assert(same(x <= y, (x <=> y) <= 0)); in f()
36 static_assert(same(x > y, (x <=> y) > 0)); in f()
37 static_assert(same(x >= y, (x <=> y) >= 0)); in f()
38 static_assert(same(x <=> y, x <=> y)); // (not rewritten) in f()
[all …]
/llvm-project/clang/test/Modules/
H A Dresolution-change.m4 … -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
6 // Use the PCH with the same header search options; should be fine
7 … -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
10 … -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
17 … -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -in…
21 … -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
22 …n directory '{{.*Inputs.modules-with-same-name.path1.A}}' but now resides in directory '{{.*Inputs…
24 … -fmodules-cache-path=%t -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
H A Dmodules-with-same-name.m4 …es-ignore-macro=DIRECT -fsyntax-only %s -verify -I %S/Inputs/modules-with-same-name/path1/A -DDIRE…
7 …es-ignore-macro=DIRECT -fsyntax-only %s -verify -I %S/Inputs/modules-with-same-name/path2/A -DDIRE…
13 …-fsyntax-only %s -verify -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
19 …-fsyntax-only %s -verify -I %S/Inputs/modules-with-same-name/DependsOnA -I %S/Inputs/modules-with-
/llvm-project/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVLogicalOps.td58 floating-point type. They must have the same type, and they must have
59 the same number of components as Result Type.
84 floating-point type. They must have the same type, and they must have
85 the same number of components as Result Type.
110 floating-point type. They must have the same type, and they must have
111 the same number of components as Result Type.
136 floating-point type. They must have the same type, and they must have
137 the same number of components as Result Type.
162 floating-point type. They must have the same type, and they must have
163 the same numbe
[all...]
H A DSPIRVAtomicOps.td76 accesses within Scope to the same location:
90 The type of Value must be the same as Result Type. The type of the
91 value pointed to by Pointer must be the same as Result Type.
115 accesses within Scope to the same location:
139 The type of Value must be the same as Result Type. The type of the
140 value pointed to by Pointer must be the same as Result Type. This type
188 Has the same semantics as OpAtomicCompareExchange.
240 accesses within Scope to the same location:
254 The type of Value must be the same as Result Type. The type of the
255 value pointed to by Pointer must be the same as Result Type.
[all …]
H A DSPIRVArithmeticOps.td23 // Operands type same as result type.
42 // Operand type same as result type.
91 The types of Operand 1 and Operand 2 both must be the same as Result
113 The types of Operand 1 and Operand 2 both must be the same as Result
138 The types of Operand 1 and Operand 2 both must be the same as Result
143 1 divided by Operand 2 where if r ≠ 0, the sign of r is the same as the
163 The types of Operand 1 and Operand 2 both must be the same as Result
190 The type of Operand must be the same as Result Type.
213 The types of Operand 1 and Operand 2 both must be the same as Result
218 1 divided by Operand 2 where if r ≠ 0, the sign of r is the same as the
[all …]
H A DSPIRVGLOps.td116 Result Type and the type of x must be the same type. Results are computed
138 types. Result Type and operand types must have the same number of components
139 with the same component width. Results are computed per component.
162 Result Type and the type of x must be the same type. Results are computed
185 Result Type and the type of x must be the same type. Results are computed
208 Result Type and the type of x must be the same type. Results are computed
231 Result Type and the type of x must be the same type. Results are computed
257 Result Type and the type of x must be the same type. Results are computed
283 Result Type and the type of x must be the same type. Results are computed
309 Result Type and the type of x must be the same typ
[all...]
H A DSPIRVCLOps.td126 same type.
149 same type.
172 same type.
195 same type.
218 same type.
241 same type.
264 same type.
288 same type.
309 same type.
330 same typ
[all...]
H A DSPIRVBitOps.td77 Base must be a scalar or vector of integer type. It must have the same
106 The type of Base and Insert must be the same as Result Type.
167 The type of Base must be the same as Result Type.
171 result. The remaining bits of the result will all be the same as bit
207 The semantics are the same as with OpBitFieldSExtract with the exception
236 The type of Base must be the same as Result Type.
271 They must have the same number of components as Result Type. They must
272 have the same component width as Result Type.
299 They must have the same number of components as Result Type. They must
300 have the same component width as Result Type.
[all …]
/llvm-project/clang/test/CXX/over/over.match/over.match.funcs/over.match.class.deduct/
H A Dp3.cpp33 template<typename T, typename U> constexpr bool same = false; variable
34 template<typename T> constexpr bool same<T, T> = true;
36 static_assert(same<decltype(a2), A<int>>);
37 static_assert(same<decltype(a3), A<int>>);
38 static_assert(same<decltype(a4), A<int>>);
39 static_assert(same<decltype(a6), A<int>>);
40 static_assert(same<decltype(b), B<char*>>);
/llvm-project/llvm/test/tools/llvm-profdata/
H A Dsame-filename.test4 RUN: cp %S/Inputs/same-name-1.proftext %t.0.proftext
7 RUN: llvm-profdata show -counts -all-functions %S/Inputs/same-name-2.proftext -o %t_show_1
9 RUN: llvm-profdata merge -o %t.1.profdata %S/Inputs/same-name-1.proftext
16 CHECK: llvm-profdata{{.*}} show: Input file name cannot be the same as the output file name!
19 RUN: cp %S/Inputs/same-name-3.proftext %t.3.proftext
22 RUN: llvm-profdata show --sample -counts -all-functions %S/Inputs/same-name-4.proftext -o %t_show_4
24 RUN: llvm-profdata merge --sample -o %t.5.profdata %S/Inputs/same-name-3.proftext
/llvm-project/mlir/test/Dialect/Arith/
H A Dinvalid.mlir4 // expected-error @+1 {{'arith.index_cast' op failed to verify that input and output have the same tensor dimensions}}
12 // expected-error @+1 {{'arith.index_cast' op failed to verify that input and output have the same tensor dimensions}}
20 // expected-error @+1 {{'arith.index_cast' op requires the same shape for all operands and results}}
36 // expected-error @+1 {{'arith.constant' op failed to verify that all of {value, result} have same type}}
61 %x = "arith.constant"(){value = "xyz"} : () -> i32 // expected-error {{'arith.constant' op failed to verify that all of {value, result} have same type}}
69 %x = "arith.constant"(){value = 100} : () -> i1 // expected-error {{'arith.constant' op failed to verify that all of {value, result} have same type}}
95 %x = "arith.constant"(){value = 10.} : () -> f32 // expected-error {{'arith.constant' op failed to verify that all of {value, result} have same type}}
164 // expected-error@+1 {{'arith.addui_extended' op all non-scalar operands/results must have the same shape and base type}}
186 // Comparison are defined for arguments of the same type.
229 // expected-error@+1 {{op failed to verify that result type has i1 element type and same shap
[all...]
/llvm-project/mlir/include/mlir/Dialect/Math/IR/
H A DMathOps.td27 // and result of the same type. This type can be an integer type, vector or
38 // operand and result of the same type. This type can be a floating point type,
54 // operands and one result of the same type. This type can be an integer
65 // operands and one result of the same type. This type can be a floating point
81 // one result of the same type. This type can be a floating point type, vector
105 of the same type.
126 same type.
153 one result of the same type. It has no standard attributes.
180 one result of the same type. It has no standard attributes.
207 one result of the same typ
[all...]
/llvm-project/llvm/test/Transforms/NewGVN/
H A Dcondprop-xfail.ll66 br i1 %cmp, label %same, label %different
68 same:
82 br i1 %cmp, label %same, label %different
84 same:
97 br i1 %cmp, label %same, label %different
99 same:
113 br i1 %cmp, label %same, label %different
115 same:
/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
H A Dupdate-section.test5 # RUN: echo -n 11112222 > %t.same
11 ## Update the segment section with a regular chunk of data the same size as the section.
12 # RUN: llvm-objcopy --update-section=.in_segment=%t.same %t %t.same.o
13 # RUN: llvm-readobj --section-headers --section-data --program-headers %t.same.o | \
17 ## back (from the second `--update-section`), then it should be the exact same as the
20 # RUN: llvm-objcopy --update-section=.in_segment=%t.same --update-section=.in_segment=%t.zeros %t %…
25 ## of any subsequent sections in the same segment as this.
48 # RUN: not llvm-objcopy --update-section=.nosection=%t.same %t %t-err1 2>&1 | \
52 # RUN: not llvm-objcopy --update-section=.nobits_type=%t.same %t %t-err2 2>&1 | \
54 # RUN: not llvm-objcopy --update-section=.null_type=%t.same %t %t-err2 2>&1 | \
[all …]
/llvm-project/clang/tools/scan-build-py/tests/unit/
H A Dtest_compilation.py84 def same(expected): function
90 same([])
91 same(["-I", "/opt/me/include", "-DNDEBUG", "-ULIMITS"])
92 same(["-O", "-O2"])
93 same(["-m32", "-mmms"])
94 same(["-Wall", "-Wno-unused", "-g", "-funroll-loops"])
/llvm-project/bolt/test/X86/
H A Ddwarf5-df-output-dir-same-name.test7 ; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-output-dir-same-name-main.s \
9 ; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-output-dir-same-name-helper.s \
17 ;; Tests that BOLT handles correctly writing out .dwo files to the same directory when input has input where part of path
18 ;; is in DW_AT_dwo_name and the .dwo file names are the same.
33 ;; Tests that BOLT handles correctly writing out .dwo files to the same directory when input has input where part of path
34 ;; is in DW_AT_dwo_name and the .dwo file names are the same.
/llvm-project/llvm/test/DebugInfo/PDB/
H A Dobj-globalhash.test14 ; char**. Both the local and global hashes should be the same, since the only
21 ; int**. Same as char**, both the local and global hashes should be the same.
28 ; same TypeIndex in both streams. Same global hash, since they represent the
29 ; same record.
37 ; global hash, since the global hash of all referenced types is the same in
49 ; int** (char**, int***). For the same logic as described in previous records,
50 ; these two records have the same global hash but different local hashes.
/llvm-project/lld/test/MachO/
H A Dlto-common-symbol-coalescing.ll9 ; RUN: opt -module-summary %t/same-size.ll -o %t/same-size.o
11 ; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/same-size.s -o %t/same-size-asm.o
27 ; RUN: %lld -dylib %t/test.o %t/same-size.o -order_file %t/order -o %t/test
30 ; RUN: %lld -dylib %t/same-size.o %t/test.o -order_file %t/order -o %t/test
42 ; RUN: %lld -dylib %t/test.o %t/same-size-asm.o -order_file %t/order -o %t/test
44 ; RUN: %lld -dylib %t/same-size-asm.o %t/test.o -order_file %t/order -o %t/test
70 ;--- same-size.ll
81 ;--- same-size.s
/llvm-project/clang/test/SemaHLSL/BuiltIns/
H A Ddot-errors.hlsl25 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
41 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
46 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
51 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
57 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
62 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
67 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
73 // expected-error@-1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
/llvm-project/llvm/utils/lit/tests/Inputs/shtest-shell/
H A Ddiff-r.txt7 # Create same files in both of the dirs.
11 # Create same subdirectories with same contents.
18 # Create empty subdirectories with same names.
/llvm-project/llvm/test/tools/llvm-ar/
H A Dreplace-update.test70 ## Replace same member with newer files:
71 # RUN: llvm-ar rcuU %t/same.a %t/1.o %t/2.o %t/3.o
72 # RUN: llvm-ar ruU %t/same.a %t/new/1.o %t/new/other/1.o
73 # RUN: llvm-ar t %t/same.a \
81 # RUN: llvm-nm --print-armap %t/same.a \
98 ## Replace same member with an older file and a newer file:
99 # RUN: llvm-ar rcuU %t/old-new-same.a %t/new/1.o %t/2.o %t/3.o
100 # RUN: llvm-ar ruU %t/old-new-same.a %t/1.o %t/new/other/1.o
101 # RUN: llvm-ar t %t/old-new-same.a \
104 # RUN: llvm-nm --print-armap %t/same.a \

12345678910>>...128