Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 1196) sorted by relevance

12345678910>>...48

/llvm-project/polly/lib/External/isl/
H A Disl_vec.c18 isl_ctx *isl_vec_get_ctx(__isl_keep isl_vec *vec) in isl_vec_get_ctx() argument
20 return vec ? vec->ctx : NULL; in isl_vec_get_ctx()
25 uint32_t isl_vec_get_hash(__isl_keep isl_vec *vec) in isl_vec_get_hash() argument
27 if (!vec) in isl_vec_get_hash()
30 return isl_seq_get_hash(vec->el, vec->size); in isl_vec_get_hash()
35 struct isl_vec *vec; in isl_vec_alloc() local
37 vec = isl_alloc_type(ctx, struct isl_vec); in isl_vec_alloc()
38 if (!vec) in isl_vec_alloc()
41 vec->block = isl_blk_alloc(ctx, size); in isl_vec_alloc()
42 if (isl_blk_is_error(vec->block)) in isl_vec_alloc()
[all …]
H A Disl_point.c67 __isl_take isl_vec *vec) in isl_point_alloc() argument
73 if (dim < 0 || !vec) in isl_point_alloc()
76 if (vec->size > 1 + dim) { in isl_point_alloc()
77 vec = isl_vec_cow(vec); in isl_point_alloc()
78 if (!vec) in isl_point_alloc()
80 vec->size = 1 + dim; in isl_point_alloc()
89 pnt->vec = vec; in isl_point_alloc()
94 isl_vec_free(vec); in isl_point_alloc()
100 isl_vec *vec; in isl_point_zero() local
106 vec = isl_vec_alloc(space->ctx, 1 + dim); in isl_point_zero()
[all …]
H A Dpolyhedron_minimize.c24 static __isl_give isl_vec *isl_vec_lin_to_aff(__isl_take isl_vec *vec) in isl_vec_lin_to_aff() argument
28 if (!vec) in isl_vec_lin_to_aff()
30 aff = isl_vec_alloc(vec->ctx, 1 + vec->size); in isl_vec_lin_to_aff()
34 isl_seq_cpy(aff->el + 1, vec->el, vec->size); in isl_vec_lin_to_aff()
35 isl_vec_free(vec); in isl_vec_lin_to_aff()
38 isl_vec_free(vec); in isl_vec_lin_to_aff()
46 static __isl_give isl_vec *vec_ror(__isl_take isl_vec *vec) in vec_ror() argument
50 if (!vec) in vec_ror()
52 for (i = vec->size - 2; i >= 0; --i) in vec_ror()
53 isl_int_swap(vec->el[i], vec->el[i + 1]); in vec_ror()
[all …]
/llvm-project/llvm/test/CodeGen/AArch64/
H A Darm64_32-neon.ll3 define <2 x double> @test_insert_elt(<2 x double> %vec, double %val) {
6 %res = insertelement <2 x double> %vec, double %val, i32 0
21 %vec.tmp0 = insertelement <4 x i32> undef, i32 42, i32 0
22 %vec.tmp1 = insertelement <4 x i32> %vec.tmp0, i32 42, i32 1
23 %vec.tmp2 = insertelement <4 x i32> %vec.tmp1, i32 42, i32 2
24 %vec = insertelement <4 x i32> %vec.tmp2, i32 42, i32 3
26 store <4 x i32> %vec, ptr %addr, align 8
31 %vec = type <2 x double>
33 declare {%vec, %vec} @llvm.aarch64.neon.ld2r.v2f64.p0(ptr)
34 define {%vec, %vec} @test_neon_load(ptr %addr) {
[all …]
H A Dsve-int-pred-reduce.ll6 define i1 @reduce_and_nxv16i1(<vscale x 16 x i1> %vec) {
13 %res = call i1 @llvm.vector.reduce.and.i1.nxv16i1(<vscale x 16 x i1> %vec)
17 define i1 @reduce_and_nxv8i1(<vscale x 8 x i1> %vec) {
24 %res = call i1 @llvm.vector.reduce.and.i1.nxv8i1(<vscale x 8 x i1> %vec)
28 define i1 @reduce_and_nxv4i1(<vscale x 4 x i1> %vec) {
35 %res = call i1 @llvm.vector.reduce.and.i1.nxv4i1(<vscale x 4 x i1> %vec)
39 define i1 @reduce_and_nxv2i1(<vscale x 2 x i1> %vec) {
46 %res = call i1 @llvm.vector.reduce.and.i1.nxv2i1(<vscale x 2 x i1> %vec)
50 define i1 @reduce_and_nxv1i1(<vscale x 1 x i1> %vec) {
59 %res = call i1 @llvm.vector.reduce.and.i1.nxv1i1(<vscale x 1 x i1> %vec)
[all …]
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Ddeduct.pass.cpp41 std::vector vec(std::begin(arr), std::end(arr)); in tests() local
43 static_assert(std::is_same_v<decltype(vec), std::vector<int>>, ""); in tests()
44 assert(std::equal(vec.begin(), vec.end(), std::begin(arr), std::end(arr))); in tests()
49 std::vector vec(std::begin(arr), std::end(arr), std::allocator<long>()); in tests()
50 static_assert(std::is_same_v<decltype(vec)::value_type, long>, ""); in tests()
51 assert(vec.size() == 4); in tests()
52 assert(vec[0] == INT_MAX); in tests()
53 assert(vec[1] == 1L); in tests()
54 assert(vec[2] == 2L); in tests()
65 std::vector vec(1, A{}); // vector (size_type, T) in tests() local
[all …]
H A Dexceptions.pass.cpp29 AllocVec vec;
57 std::vector<throwing_t> vec(1, std::allocator<throwing_t>());
66 std::vector<throwing_t> vec(1, v, std::allocator<throwing_t>());
72 std::vector<int> vec(
79 std::vector<int> vec( in operator *()
87 AllocVec vec(cpp17_input_iterator<int*>(a), cpp17_input_iterator<int*>(a + 2)); in operator ++()
94 std::vector<int> vec( in operator ++()
102 std::vector<int> vec(throwing_iterator<int, std::forward_iterator_tag>(), in check_new_delete_called()
112 AllocVec vec(cpp17_input_iterator<int*>(a), cpp17_input_iterator<int*>(a + 2), alloc); in main()
120 AllocVec vec(forward_iterato in main()
108 AllocVec vec; main() local
136 std::vector<ThrowingT> vec(1, std::allocator<ThrowingT>()); main() local
143 std::vector<int> vec((Iterator<std::input_iterator_tag>()), Iterator<std::input_iterator_tag>(2)); main() local
149 std::vector<int> vec((Iterator<std::forward_iterator_tag>()), Iterator<std::forward_iterator_tag>(2)); main() local
163 std::vector<int> vec(Iterator<std::input_iterator_tag>(), Iterator<std::input_iterator_tag>(2), alloc); main() local
170 std::vector<int> vec(Iterator<std::forward_iterator_tag>(), Iterator<std::forward_iterator_tag>(2), alloc); main() local
194 std::vector<ThrowingT> vec; main() local
203 std::vector<ThrowingT> vec; main() local
212 std::vector<ThrowingT, Allocator<ThrowingT> > vec(Allocator<ThrowingT>(false)); main() local
223 std::vector<ThrowingT> vec({ThrowingT(throw_after)}); main() local
230 std::vector<ThrowingT> vec({ThrowingT(throw_after)}, std::allocator<ThrowingT>()); main() local
[all...]
/llvm-project/libcxx/test/std/containers/sequences/vector.bool/reference/
H A Dassign_copy.pass.cpp20 std::vector<bool> vec; in test() local
22 vec.push_back(true); in test()
23 vec.push_back(false); in test()
24 Ref ref1 = vec[0]; in test()
25 Ref ref2 = vec[1]; in test()
29 vec[0] = false; in test()
30 vec[1] = true; in test()
32 assert(vec[0]); in test()
33 assert(vec[1]); in test()
36 vec[0] = true; in test()
[all …]
H A Dassign_bool.pass.cpp19 std::vector<bool> vec; in test() local
21 vec.push_back(true); in test()
22 vec.push_back(false); in test()
23 Ref ref = vec[0]; in test()
24 const Ref cref = vec[0]; in test()
28 assert(!vec[0]); in test()
29 assert(!vec[1]); in test()
31 assert(vec[0]); in test()
32 assert(!vec[1]); in test()
38 assert(!vec[0]); in test()
[all …]
/llvm-project/llvm/test/Assembler/
H A Dfast-math-flags.ll7 @vec = external global <3 x float>
14 ; CHECK: %vec = load <3 x float>, ptr @vec
15 %vec = load <3 x float>, ptr @vec
20 ; CHECK: %scalable = load <vscale x 3 x float>, ptr @vec
21 %scalable = load <vscale x 3 x float>, ptr @vec
25 ; CHECK: %a_vec = fadd <3 x float> %vec, %vec
26 %a_vec = fadd <3 x float> %vec,
[all...]
/llvm-project/clang/test/Sema/
H A Dext_vector_comparisons.c6 int4 vec, rv; in test1() local
9 return vec == vec; // expected-warning{{self-comparison always evaluates to true}} in test1()
10 return vec != vec; // expected-warning{{self-comparison always evaluates to false}} in test1()
11 return vec < vec; // expected-warning{{self-comparison always evaluates to false}} in test1()
12 return vec <= vec; // expected-warning{{self-comparison always evaluates to true}} in test1()
13 return vec > vec; // expected-warning{{self-comparison always evaluates to false}} in test1()
14 return vec >= vec; // expected-warning{{self-comparison always evaluates to true}} in test1()
21 float4 vec, rv; in test2() local
24 return vec == vec; // no-warning in test2()
25 return vec != vec; // no-warning in test2()
[all …]
/llvm-project/clang/test/CodeGen/X86/
H A Dx86_64-floatvectors.c11 vec3f vec = __builtin_va_arg(ap, vec3f); in Vec3FTest() local
12 return vec.x + vec.y + vec.z; in Vec3FTest()
28 vec4f vec = __builtin_va_arg(ap, vec4f); in Vec4FTest() local
29 return vec.x + vec.y + vec.z + vec.q; in Vec4FTest()
44 vec2d vec in Vec2DTest() local
63 vec2f1d vec = __builtin_va_arg(ap, vec2f1d); Vec2F1DTest() local
82 vec1d2f vec = __builtin_va_arg(ap, vec1d2f); Vec1D2FTest() local
101 vec1f1d vec = __builtin_va_arg(ap, vec1f1d); Vec1F1DTest() local
120 vec1d1f vec = __builtin_va_arg(ap, vec1d1f); Vec1D1FTest() local
[all...]
/llvm-project/compiler-rt/test/msan/Linux/
H A Dmincore.cpp9 unsigned char vec[20]; in main() local
15 __msan_poison(&vec, sizeof(vec)); in main()
16 res = mincore(addr, 10 * PS, vec); in main()
18 assert(__msan_test_shadow(vec, sizeof(vec)) == 10); in main()
20 __msan_poison(&vec, sizeof(vec)); in main()
21 res = mincore(addr, 10 * PS + 42, vec); in main()
23 assert(__msan_test_shadow(vec, sizeof(vec)) == 11); in main()
25 __msan_poison(&vec, sizeof(vec)); in main()
26 res = mincore(addr, 10 * PS - 1, vec); in main()
28 assert(__msan_test_shadow(vec, sizeof(vec)) == 10); in main()
[all …]
/llvm-project/llvm/test/CodeGen/ARM/
H A Dvldm-sched-a9.ll96 %vec.0 = insertelement <16 x i64> undef, i64 %el.0, i32 0
97 %vec.1 = insertelement <16 x i64> %vec.0, i64 %el.1, i32 1
98 %vec.2 = insertelement <16 x i64> %vec.1, i64 %el.2, i32 2
99 %vec.3 = insertelement <16 x i64> %vec.2, i64 %el.3, i32 3
100 %vec.4 = insertelement <16 x i64> %vec.3, i64 %el.4, i32 4
101 %vec.5 = insertelement <16 x i64> %vec.4, i64 %el.5, i32 5
102 %vec.6 = insertelement <16 x i64> %vec.5, i64 %el.6, i32 6
103 %vec.7 = insertelement <16 x i64> %vec.6, i64 %el.7, i32 7
104 %vec.8 = insertelement <16 x i64> %vec.7, i64 %el.8, i32 8
105 %vec.9 = insertelement <16 x i64> %vec.8, i64 %el.9, i32 9
[all …]
/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrSIMD.td192 foreach vec = AllVecs in {
193 defm : LoadPat<vec.vt, load, "LOAD_V128">;
221 foreach vec = StdVecs in {
222 defvar inst = "LOAD"#vec.lane_bits#"_SPLAT";
223 defm : LoadPat<vec.vt,
224 PatFrag<(ops node:$addr), (splat_vector (vec.lane_vt (vec.lane_load node:$addr)))>,
229 multiclass SIMDLoadExtend<Vec vec, string loadPat, bits<32> simdop> {
230 defvar signed = vec.prefix#".load"#loadPat#"_s";
231 defvar unsigned = vec
[all...]
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.modifiers/
H A Ddestroy_elements.pass.cpp22 TEST_CONSTEXPR_CXX20 DestroyTracker(std::vector<bool>& vec) : vec_(&vec), index_(vec.size()) { vec.push_back(false); }
49 test([](std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) { vec.emplace_back(tracker); }); in test() argument
50 test([](std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) { vec.push_back(tracker); }); in test() argument
51 test([](std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) { vec in test() argument
48 __anond9eab2b40202(std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) test() argument
52 __anond9eab2b40602(std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) test() argument
54 __anond9eab2b40702(std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) test() argument
58 __anond9eab2b40802(std::vector<DestroyTracker>& vec, std::vector<bool>& tracker) test() argument
[all...]
/llvm-project/libcxx/test/std/containers/sequences/vector/
H A Dreverse_iterators.pass.cpp27 Vector vec; in check_vector_reverse_iterators() local
28 assert(vec.rbegin() == vec.rend()); in check_vector_reverse_iterators()
29 assert(vec.crbegin() == vec.crend()); in check_vector_reverse_iterators()
33 Vector vec; in check_vector_reverse_iterators() local
34 const Vector& cvec = vec; in check_vector_reverse_iterators()
35 vec.reserve(n); in check_vector_reverse_iterators()
37 vec.push_back(i); in check_vector_reverse_iterators()
41 … for (typename Vector::const_reverse_iterator it = vec.crbegin(); it != vec.crend(); ++it) { in check_vector_reverse_iterators()
48 assert(cvec.rbegin() == vec.crbegin()); in check_vector_reverse_iterators()
49 assert(cvec.rend() == vec.crend()); in check_vector_reverse_iterators()
[all …]
/llvm-project/polly/lib/External/isl/include/isl/
H A Dvec.h28 __isl_give isl_vec *isl_vec_copy(__isl_keep isl_vec *vec);
29 __isl_null isl_vec *isl_vec_free(__isl_take isl_vec *vec);
31 isl_ctx *isl_vec_get_ctx(__isl_keep isl_vec *vec);
33 isl_size isl_vec_size(__isl_keep isl_vec *vec);
34 __isl_give isl_val *isl_vec_get_element_val(__isl_keep isl_vec *vec, int pos);
35 __isl_give isl_vec *isl_vec_set_element_si(__isl_take isl_vec *vec,
37 __isl_give isl_vec *isl_vec_set_element_val(__isl_take isl_vec *vec,
44 void isl_vec_dump(__isl_keep isl_vec *vec);
46 __isl_keep isl_vec *vec);
48 __isl_give isl_vec *isl_vec_ceil(__isl_take isl_vec *vec);
[all …]
/llvm-project/llvm/test/Transforms/SLPVectorizer/X86/
H A Dinsert-element-multiple-uses.ll
/llvm-project/llvm/test/CodeGen/X86/
H A Dshuffle-strided-with-offset-512.ll37 %vec = load <64 x i8>, ptr %L
38 %strided.vec = shufflevector <64 x i8> %vec, <64 x i8> undef, <32 x i32> <i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13, i32 15, i32 17, i32 19, i32 21, i32 23, i32 25, i32 27, i32 29, i32 31, i32 33, i32 35, i32 37, i32 39, i32 41, i32 43, i32 45, i32 47, i32 49, i32 51, i32 53, i32 55, i32 57, i32 59, i32 61, i32 63>
39 store <32 x i8> %strided.vec, ptr %S
50 %vec = load <32 x i16>, ptr %L
51 %strided.vec = shufflevector <32 x i16> %vec, <32 x i16> undef, <16 x i32> <i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13, i32 15, i32 17, i32 19, i32 21, i32 23, i32 25, i32 27, i32 29, i32 31>
52 store <16 x i16> %strided.vec, ptr %S
82 %vec = load <16 x i32>, ptr %L
83 %strided.vec
[all...]
H A Delementwise-store-of-scalar-splat.ll13 define void @vec16_i8(ptr %in.elt.ptr, ptr %out.vec.ptr) nounwind {
23 %out.elt0.ptr = getelementptr i8, ptr %out.vec.ptr, i64 0
25 %out.elt1.ptr = getelementptr i8, ptr %out.vec.ptr, i64 1
30 define void @vec32_i8(ptr %in.elt.ptr, ptr %out.vec.ptr) nounwind {
42 %out.elt0.ptr = getelementptr i8, ptr %out.vec.ptr, i64 0
44 %out.elt1.ptr = getelementptr i8, ptr %out.vec.ptr, i64 1
46 %out.elt2.ptr = getelementptr i8, ptr %out.vec.ptr, i64 2
48 %out.elt3.ptr = getelementptr i8, ptr %out.vec.ptr, i64 3
53 define void @vec32_i16(ptr %in.elt.ptr, ptr %out.vec.ptr) nounwind {
63 %out.elt0.ptr = getelementptr i16, ptr %out.vec.ptr, i64 0
[all …]
H A Dzero_extend_vector_inreg.ll13 define void @vec16_v2i8_to_v1i16_factor2(ptr %in.vec.base.ptr, ptr %in.vec.bias.ptr, ptr %out.vec.bias.ptr, ptr %out.vec.ptr) nounwind {
73 %in.vec.base = load <64 x i8>, ptr %in.vec.base.ptr, align 64
74 %in.vec.bias = load <64 x i8>, ptr %in.vec.bias.ptr, align 64
75 %in.vec = add <64 x i8> %in.vec
[all...]
H A Dany_extend_vector_inreg_of_broadcast.ll17 define void @vec32_i8_widen_to_i16_factor2_broadcast_to_v2i16_factor2(ptr %in.vec.base.ptr, ptr %in.vec.bias.ptr, ptr %out.vec.bias.ptr, ptr %out.vec.ptr) nounwind {
89 %in.vec.base = load <64 x i8>, ptr %in.vec.base.ptr, align 64
90 %in.vec.bias = load <64 x i8>, ptr %in.vec.bias.ptr, align 64
91 %in.vec = add <64 x i8> %in.vec
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dreplace-random-shuffle.cpp34 std::vector<int> vec; in main() local
36 std::random_shuffle(vec.begin(), vec.end()); in main()
40 std::shuffle(vec.begin(), vec.end()); in main()
42 random_shuffle(vec.begin(), vec.end()); in main()
46 std::random_shuffle(vec.begin(), vec.end(), myrandom); in main()
50 random_shuffle(vec.begin(), vec.end(), myrandom); in main()
54 shuffle(vec.begin(), vec.end()); in main()
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Dfmac.sdwa.ll43 %vec.A.0 = extractelement <4 x half> %tmp21, i32 0
44 %vec.B.0 = extractelement <4 x half> %tmp28, i32 0
45 %vec.C.0 = extractelement <4 x half> %tmp15, i32 0
46 %vec.res.0 = tail call half @llvm.fmuladd.f16(half %vec.A.0, half %vec.B.0, half %vec.C.0)
47 %vec.A.1 = extractelement <4 x half> %tmp21, i32 1
48 %vec.B.1 = extractelement <4 x half> %tmp28, i32 1
49 %vec.C.1 = extractelement <4 x half> %tmp15, i32 1
50 %vec.res.1 = tail call half @llvm.fmuladd.f16(half %vec.A.1, half %vec.B.1, half %vec.C.1)
51 %vec.A.2 = extractelement <4 x half> %tmp21, i32 2
52 %vec.B.2 = extractelement <4 x half> %tmp28, i32 2
[all …]

12345678910>>...48