Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 12304) sorted by relevance

12345678910>>...493

/external/clang/lib/Headers/
Dvecintrin.h60 vec_extract(vector signed char __vec, int __index) { in vec_extract()
65 vec_extract(vector bool char __vec, int __index) { in vec_extract()
70 vec_extract(vector unsigned char __vec, int __index) { in vec_extract()
75 vec_extract(vector signed short __vec, int __index) { in vec_extract()
80 vec_extract(vector bool short __vec, int __index) { in vec_extract()
85 vec_extract(vector unsigned short __vec, int __index) { in vec_extract()
90 vec_extract(vector signed int __vec, int __index) { in vec_extract()
95 vec_extract(vector bool int __vec, int __index) { in vec_extract()
100 vec_extract(vector unsigned int __vec, int __index) { in vec_extract()
105 vec_extract(vector signed long long __vec, int __index) { in vec_extract()
[all …]
Daltivec.h39 static __inline__ vector signed char __ATTRS_o_ai vec_perm(
40 vector signed char __a, vector signed char __b, vector unsigned char __c);
42 static __inline__ vector unsigned char __ATTRS_o_ai
43 vec_perm(vector unsigned char __a, vector unsigned char __b,
44 vector unsigned char __c);
46 static __inline__ vector bool char __ATTRS_o_ai
47 vec_perm(vector bool char __a, vector bool char __b, vector unsigned char __c);
49 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
50 vector signed short __b,
51 vector unsigned char __c);
[all …]
/external/llvm-project/clang/lib/Headers/
Daltivec.h48 static __inline__ vector signed char __ATTRS_o_ai vec_perm(
49 vector signed char __a, vector signed char __b, vector unsigned char __c);
51 static __inline__ vector unsigned char __ATTRS_o_ai
52 vec_perm(vector unsigned char __a, vector unsigned char __b,
53 vector unsigned char __c);
55 static __inline__ vector bool char __ATTRS_o_ai
56 vec_perm(vector bool char __a, vector bool char __b, vector unsigned char __c);
58 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
59 vector signed short __b,
60 vector unsigned char __c);
[all …]
/external/llvm-project/mlir/test/Dialect/Vector/
Dvector-transforms.mlir1 // RUN: mlir-opt %s -test-vector-to-vector-conversion | FileCheck %s
2 // RUN: mlir-opt %s -test-vector-unrolling-patterns | FileCheck %s
7 … CHECK: %[[ES1:.*]] = vector.extract_slices %{{.*}}, [2, 2], [1, 1] : vector<4x2xf32> into tu…
8 … CHECK-NEXT: %[[ES2:.*]] = vector.extract_slices %{{.*}}, [2, 2], [1, 1] : vector<4x2xf32> into tu…
9 // CHECK-NEXT: %[[TG1:.*]] = vector.tuple_get %[[ES1]], 0 : tuple<vector<2x2xf32>, vector<2x2xf32>>
10 // CHECK-NEXT: %[[TG2:.*]] = vector.tuple_get %[[ES2]], 0 : tuple<vector<2x2xf32>, vector<2x2xf32>>
11 // CHECK-NEXT: %[[A1:.*]] = addf %[[TG1]], %[[TG2]] : vector<2x2xf32>
12 // CHECK-NEXT: %[[TG3:.*]] = vector.tuple_get %[[ES1]], 1 : tuple<vector<2x2xf32>, vector<2x2xf32>>
13 // CHECK-NEXT: %[[TG4:.*]] = vector.tuple_get %[[ES2]], 1 : tuple<vector<2x2xf32>, vector<2x2xf32>>
14 // CHECK-NEXT: %[[A2:.*]] = addf %[[TG3]], %[[TG4]] : vector<2x2xf32>
[all …]
Dops.mlir12 %vf0 = splat %f0 : vector<4x3xf32>
13 %v0 = splat %c0 : vector<4x3xi32>
16 // CHECK: vector.transfer_read
17 …%0 = vector.transfer_read %arg0[%c3, %c3], %f0 {permutation_map = affine_map<(d0, d1)->(d0)>} : me…
18 // CHECK: vector.transfer_read
19 …%1 = vector.transfer_read %arg0[%c3, %c3], %f0 {permutation_map = affine_map<(d0, d1)->(d1, d0)>} …
20 // CHECK: vector.transfer_read
21 …%2 = vector.transfer_read %arg0[%c3, %c3], %cst {permutation_map = affine_map<(d0, d1)->(d0)>} : m…
22 // CHECK: vector.transfer_read
23 …%3 = vector.transfer_read %arg0[%c3, %c3], %cst {permutation_map = affine_map<(d0, d1)->(d1)>} : m…
[all …]
Dcanonicalize.mlir6 func @create_vector_mask_to_constant_mask() -> (vector<4x3xi1>) {
9 // CHECK: vector.constant_mask [3, 2] : vector<4x3xi1>
10 %0 = vector.create_mask %c3, %c2 : vector<4x3xi1>
11 return %0 : vector<4x3xi1>
16 func @extract_strided_slice_of_constant_mask() -> (vector<2x2xi1>) {
17 %0 = vector.constant_mask [2, 2] : vector<4x3xi1>
18 %1 = vector.extract_strided_slice %0
20 : vector<4x3xi1> to vector<2x2xi1>
21 // CHECK: vector.constant_mask [2, 2] : vector<2x2xi1>
22 return %1 : vector<2x2xi1>
[all …]
Dvector-contract-transforms.mlir1 // RUN: mlir-opt %s -test-vector-contraction-conversion | FileCheck %s
2 // RUN: mlir-opt %s -test-vector-contraction-conversion=vector-lower-matrix-intrinsics=1 | FileChec…
3 // RUN: mlir-opt %s -test-vector-contraction-conversion=vector-outerproduct=1 | FileCheck %s --chec…
4 // RUN: mlir-opt %s -test-vector-contraction-conversion=vector-filter-outerproduct=1 | FileCheck %s…
17 // CHECK-SAME: %[[A:.*0]]: vector<4xf32>,
18 // CHECK-SAME: %[[B:.*1]]: vector<4xf32>,
20 // CHECK: %[[F:.*]] = mulf %[[A]], %[[B]] : vector<4xf32>
21 // CHECK: %[[R:.*]] = vector.reduction "add", %[[F]], %[[C]] : vector<4xf32> into f32
24 func @extract_contract1(%arg0: vector<4xf32>, %arg1: vector<4xf32>, %arg2: f32) -> f32 {
25 %0 = vector.contract #dotp_trait %arg0, %arg1, %arg2
[all …]
Dvector-unroll-options.mlir1 // RUN: mlir-opt %s -test-vector-unrolling-patterns=unroll-based-on-type | FileCheck %s
3 func @vector_contract_f32(%lhs : vector<8x8xf32>, %rhs : vector<8x8xf32>,
4 %init : vector<8x8xf32>) -> vector<8x8xf32> {
5 %0 = vector.contract
10 %lhs, %rhs, %init : vector<8x8xf32>, vector<8x8xf32> into vector<8x8xf32>
11 return %0 : vector<8x8xf32>
14 // CHECK: vector.contract {
15 // CHECK-SAME: vector<4x2xf32>, vector<4x2xf32> into vector<4x4xf32>
16 // CHECK: vector.contract {
17 // CHECK-SAME: vector<4x2xf32>, vector<4x2xf32> into vector<4x4xf32>
[all …]
Dvector-mem-transforms.mlir1 // RUN: mlir-opt %s -test-vector-to-vector-conversion | FileCheck %s
8 // CHECK-SAME: %[[A1:.*]]: vector<16xf32>)
9 // CHECK-NEXT: %[[M:.*]] = vector.constant_mask
10 …/ CHECK-NEXT: %[[T:.*]] = vector.maskedload %[[A0]], %[[M]], %[[A1]] : memref<?xf32>, vector<16xi1…
11 // CHECK-NEXT: return %[[T]] : vector<16xf32>
13 func @maskedload0(%base: memref<?xf32>, %pass_thru: vector<16xf32>) -> vector<16xf32> {
14 %mask = vector.constant_mask [16] : vector<16xi1>
15 %ld = vector.maskedload %base, %mask, %pass_thru
16 : memref<?xf32>, vector<16xi1>, vector<16xf32> into vector<16xf32>
17 return %ld : vector<16xf32>
[all …]
Dinvalid.mlir6 …// expected-error@+1 {{'vector.broadcast' op result #0 must be vector of any type values, but got …
7 %0 = vector.broadcast %arg0 : f32 to f32
12 func @broadcast_rank_too_high(%arg0: vector<4x4xf32>) {
13 // expected-error@+1 {{'vector.broadcast' op source rank higher than destination rank}}
14 %1 = vector.broadcast %arg0 : vector<4x4xf32> to vector<4xf32>
19 func @broadcast_dim1_mismatch(%arg0: vector<7xf32>) {
20 // expected-error@+1 {{'vector.broadcast' op dimension mismatch (7 vs. 3)}}
21 %1 = vector.broadcast %arg0 : vector<7xf32> to vector<3xf32>
26 func @broadcast_dim2_mismatch(%arg0: vector<4x8xf32>) {
27 // expected-error@+1 {{'vector.broadcast' op dimension mismatch (4 vs. 1)}}
[all …]
Dvector-contract-matvec-transforms.mlir1 // RUN: mlir-opt %s -test-vector-contraction-conversion=vector-outerproduct=1 | FileCheck %s
44 // CHECK-SAME: %[[A:.*0]]: memref<vector<2x2xf32>>
45 // CHECK-SAME: %[[B:.*1]]: memref<vector<2xf32>>
46 // CHECK-SAME: %[[C:.*2]]: memref<vector<2xf32>>
47 // CHECK: %[[T0:.*]] = load %[[A]][] : memref<vector<2x2xf32>>
48 // CHECK: %[[T1:.*]] = load %[[B]][] : memref<vector<2xf32>>
49 // CHECK: %[[T2:.*]] = load %[[C]][] : memref<vector<2xf32>>
50 // CHECK: %[[T3:.*]] = vector.transpose %[[T0]], [1, 0] : vector<2x2xf32> to vector<2x2xf32>
51 // CHECK: %[[T4:.*]] = vector.extract %[[T3]][0] : vector<2x2xf32>
52 // CHECK: %[[T5:.*]] = vector.extract %[[T1]][0] : vector<2xf32>
[all …]
Dvector-slices-transforms.mlir1 // RUN: mlir-opt %s -test-vector-slices-conversion | FileCheck %s
3 // CHECK-LABEL: func @extract_slices(%arg0: vector<3x3xf32>)
4 // CHECK: %[[SS:.*]] = vector.extract_strided_slice %arg0 {offsets = [0, 0], sizes = [2, 2], …
7 func @extract_slices(%arg0: vector<3x3xf32>) -> vector<2x2xf32> {
8 %0 = vector.extract_slices %arg0, [2, 2], [1, 1]
9 : vector<3x3xf32> into tuple<vector<2x2xf32>, vector<2x1xf32>, vector<1x2xf32>, vector<1x1xf32>>
10 …%1 = vector.tuple_get %0, 0 : tuple<vector<2x2xf32>, vector<2x1xf32>, vector<1x2xf32>, vector<1x1x…
11 return %1 : vector<2x2xf32>
14 …CK-LABEL: func @insert_slices(%arg0: vector<2x2xf32>, %arg1: vector<2x1xf32>, %arg2: vector<1x2xf3…
15 // CHECK: %[[C0:.*]] = constant dense<0.000000e+00> : vector<3x3xf32>
[all …]
/external/llvm-project/clang/test/CodeGen/
Dbuiltins-ppc-crypto.c28 vector unsigned char test_vpmsumb(void) in test_vpmsumb()
30 vector unsigned char a = B_INIT1 in test_vpmsumb()
31 vector unsigned char b = B_INIT2 in test_vpmsumb()
37 vector unsigned short test_vpmsumh(void) in test_vpmsumh()
39 vector unsigned short a = H_INIT1 in test_vpmsumh()
40 vector unsigned short b = H_INIT2 in test_vpmsumh()
46 vector unsigned int test_vpmsumw(void) in test_vpmsumw()
48 vector unsigned int a = W_INIT1 in test_vpmsumw()
49 vector unsigned int b = W_INIT2 in test_vpmsumw()
55 vector unsigned long long test_vpmsumd(void) in test_vpmsumd()
[all …]
Dbuiltins-ppc-p10vector.c11 vector signed __int128 vi128a;
12 vector signed char vsca, vscb;
13 vector unsigned char vuca, vucb, vucc;
14 vector signed short vssa, vssb;
15 vector unsigned short vusa, vusb, vusc;
16 vector signed int vsia, vsib;
17 vector unsigned int vuia, vuib, vuic;
18 vector signed long long vslla, vsllb;
19 vector unsigned long long vulla, vullb, vullc;
20 vector signed __int128 vsi128a, vsi128b, vsi128c;
[all …]
/external/llvm-project/mlir/integration_test/Dialect/Vector/CPU/
Dtest-transpose.mlir1 // RUN: mlir-opt %s -convert-scf-to-std -convert-vector-to-llvm -convert-std-to-llvm | \
18 %0 = vector.broadcast %f1 : f32 to vector<2xf32>
19 %a = vector.insert %f2, %0[1] : f32 into vector<2xf32>
20 %1 = vector.broadcast %f3 : f32 to vector<2xf32>
21 %b = vector.insert %f4, %1[1] : f32 into vector<2xf32>
22 %2 = vector.broadcast %f5 : f32 to vector<2xf32>
23 %c = vector.insert %f6, %2[1] : f32 into vector<2xf32>
24 %3 = vector.broadcast %f7 : f32 to vector<2xf32>
25 %d = vector.insert %f8, %3[1] : f32 into vector<2xf32>
26 %4 = vector.broadcast %f0 : f32 to vector<2x2xf32>
[all …]
Dtest-contraction.mlir1 // RUN: mlir-opt %s -convert-scf-to-std -convert-vector-to-llvm -convert-std-to-llvm | \
148 %z1 = vector.broadcast %f0 : f32 to vector<2xf32>
149 %z2 = vector.broadcast %f0 : f32 to vector<2x2xf32>
150 %z3 = vector.broadcast %f0 : f32 to vector<3x4xf32>
153 %0 = vector.broadcast %f1 : f32 to vector<2xf32>
154 %a = vector.insert %f2, %0[1] : f32 into vector<2xf32>
155 %1 = vector.broadcast %f3 : f32 to vector<2xf32>
156 %b = vector.insert %f4, %1[1] : f32 into vector<2xf32>
157 %2 = vector.broadcast %f5 : f32 to vector<2xf32>
158 %c = vector.insert %f6, %2[1] : f32 into vector<2xf32>
[all …]
Dtest-broadcast.mlir1 // RUN: mlir-opt %s -convert-scf-to-std -convert-vector-to-llvm -convert-std-to-llvm | \
18 %vi = vector.broadcast %i : i32 to vector<2xi32>
19 %vl = vector.broadcast %l : i64 to vector<2xi64>
20 %vf = vector.broadcast %f1 : f32 to vector<2x2x2xf32>
21 vector.print %vi : vector<2xi32>
22 vector.print %vl : vector<2xi64>
23 vector.print %vf : vector<2x2x2xf32>
29 %v0 = vector.broadcast %f1 : f32 to vector<4xf32>
30 %v1 = vector.insert %f2, %v0[1] : f32 into vector<4xf32>
31 %v2 = vector.insert %f3, %v1[2] : f32 into vector<4xf32>
[all …]
Dtest-extract-slices.mlir1 // RUN: mlir-opt %s -convert-scf-to-std -convert-vector-to-llvm -convert-std-to-llvm | \
24 %a0 = vector.broadcast %f0 : f32 to vector<4x4xf32>
25 %a1 = vector.insert %f0, %a0[0, 0] : f32 into vector<4x4xf32>
26 %a2 = vector.insert %f1, %a1[0, 1] : f32 into vector<4x4xf32>
27 %a3 = vector.insert %f2, %a2[0, 2] : f32 into vector<4x4xf32>
28 %a4 = vector.insert %f3, %a3[0, 3] : f32 into vector<4x4xf32>
29 %a5 = vector.insert %f4, %a4[1, 0] : f32 into vector<4x4xf32>
30 %a6 = vector.insert %f5, %a5[1, 1] : f32 into vector<4x4xf32>
31 %a7 = vector.insert %f6, %a6[1, 2] : f32 into vector<4x4xf32>
32 %a8 = vector.insert %f7, %a7[1, 3] : f32 into vector<4x4xf32>
[all …]
/external/clang/test/CodeGen/
Dbuiltins-ppc-crypto.c28 vector unsigned char test_vpmsumb(void) in test_vpmsumb()
30 vector unsigned char a = B_INIT1 in test_vpmsumb()
31 vector unsigned char b = B_INIT2 in test_vpmsumb()
37 vector unsigned short test_vpmsumh(void) in test_vpmsumh()
39 vector unsigned short a = H_INIT1 in test_vpmsumh()
40 vector unsigned short b = H_INIT2 in test_vpmsumh()
46 vector unsigned int test_vpmsumw(void) in test_vpmsumw()
48 vector unsigned int a = W_INIT1 in test_vpmsumw()
49 vector unsigned int b = W_INIT2 in test_vpmsumw()
55 vector unsigned long long test_vpmsumd(void) in test_vpmsumd()
[all …]
/external/libaom/libaom/third_party/vector/
Dvector.c34 static bool _vector_should_grow(Vector *vector) { in _vector_should_grow() argument
35 assert(vector->size <= vector->capacity); in _vector_should_grow()
36 return vector->size == vector->capacity; in _vector_should_grow()
39 static bool _vector_should_shrink(Vector *vector) { in _vector_should_shrink() argument
40 assert(vector->size <= vector->capacity); in _vector_should_shrink()
41 return vector->size == vector->capacity * VECTOR_SHRINK_THRESHOLD; in _vector_should_shrink()
44 static void *_vector_offset(Vector *vector, size_t index) { in _vector_offset() argument
46 return (unsigned char *)vector->data + (index * vector->element_size); in _vector_offset()
49 static const void *_vector_const_offset(const Vector *vector, size_t index) { in _vector_const_offset() argument
51 return (unsigned char *)vector->data + (index * vector->element_size); in _vector_const_offset()
[all …]
/external/clang/include/clang/Basic/
DBuiltinsSystemZ.def36 TARGET_BUILTIN(__builtin_s390_lcbb, "UivC*Ii", "nc", "vector")
37 TARGET_BUILTIN(__builtin_s390_vlbb, "V16ScvC*Ii", "", "vector")
38 TARGET_BUILTIN(__builtin_s390_vll, "V16ScUivC*", "", "vector")
39 TARGET_BUILTIN(__builtin_s390_vstl, "vV16ScUiv*", "", "vector")
40 TARGET_BUILTIN(__builtin_s390_vperm, "V16UcV16UcV16UcV16Uc", "nc", "vector")
41 TARGET_BUILTIN(__builtin_s390_vpdi, "V2ULLiV2ULLiV2ULLiIi", "nc", "vector")
42 TARGET_BUILTIN(__builtin_s390_vpksh, "V16ScV8SsV8Ss", "nc", "vector")
43 TARGET_BUILTIN(__builtin_s390_vpkshs, "V16ScV8SsV8Ssi*", "nc", "vector")
44 TARGET_BUILTIN(__builtin_s390_vpksf, "V8SsV4SiV4Si", "nc", "vector")
45 TARGET_BUILTIN(__builtin_s390_vpksfs, "V8SsV4SiV4Sii*", "nc", "vector")
[all …]
/external/llvm-project/clang/include/clang/Basic/
DBuiltinsSystemZ.def35 TARGET_BUILTIN(__builtin_s390_lcbb, "UivC*Ii", "nc", "vector")
36 TARGET_BUILTIN(__builtin_s390_vlbb, "V16ScvC*Ii", "", "vector")
37 TARGET_BUILTIN(__builtin_s390_vll, "V16ScUivC*", "", "vector")
38 TARGET_BUILTIN(__builtin_s390_vstl, "vV16ScUiv*", "", "vector")
39 TARGET_BUILTIN(__builtin_s390_vperm, "V16UcV16UcV16UcV16Uc", "nc", "vector")
40 TARGET_BUILTIN(__builtin_s390_vpdi, "V2ULLiV2ULLiV2ULLiIi", "nc", "vector")
41 TARGET_BUILTIN(__builtin_s390_vpksh, "V16ScV8SsV8Ss", "nc", "vector")
42 TARGET_BUILTIN(__builtin_s390_vpkshs, "V16ScV8SsV8Ssi*", "nc", "vector")
43 TARGET_BUILTIN(__builtin_s390_vpksf, "V8SsV4SiV4Si", "nc", "vector")
44 TARGET_BUILTIN(__builtin_s390_vpksfs, "V8SsV4SiV4Sii*", "nc", "vector")
[all …]
/external/llvm-project/clang/test/Parser/
Daltivec.c32 vector char v_c;
33 vector signed char v_sc;
34 vector unsigned char v_uc;
35 vector short v_s;
36 vector signed short v_ss;
37 vector unsigned short v_us;
38 vector short int v_si;
39 vector signed short int v_ssi;
40 vector unsigned short int v_usi;
41 vector int v_i;
[all …]
/external/clang/test/Parser/
Daltivec.c30 vector char v_c;
31 vector signed char v_sc;
32 vector unsigned char v_uc;
33 vector short v_s;
34 vector signed short v_ss;
35 vector unsigned short v_us;
36 vector short int v_si;
37 vector signed short int v_ssi;
38 vector unsigned short int v_usi;
39 vector int v_i;
[all …]
Dcxx-altivec.cpp31 vector char v_c;
32 vector signed char v_sc;
33 vector unsigned char v_uc;
34 vector short v_s;
35 vector signed short v_ss;
36 vector unsigned short v_us;
37 vector short int v_si;
38 vector signed short int v_ssi;
39 vector unsigned short int v_usi;
40 vector int v_i;
[all …]

12345678910>>...493