Home
last modified time | relevance | path

Searched refs:shuffles (Results 1 – 25 of 56) sorted by relevance

123

/external/eigen/unsupported/test/
Dcxx11_tensor_shuffling.cpp22 array<ptrdiff_t, 4> shuffles; in test_simple_shuffling() local
23 shuffles[0] = 0; in test_simple_shuffling()
24 shuffles[1] = 1; in test_simple_shuffling()
25 shuffles[2] = 2; in test_simple_shuffling()
26 shuffles[3] = 3; in test_simple_shuffling()
29 no_shuffle = tensor.shuffle(shuffles); in test_simple_shuffling()
46 shuffles[0] = 2; in test_simple_shuffling()
47 shuffles[1] = 3; in test_simple_shuffling()
48 shuffles[2] = 1; in test_simple_shuffling()
49 shuffles[3] = 0; in test_simple_shuffling()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c179 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_scalar_aos() local
183 shuffles[j + i] = LLVMConstInt(elem_type, j + channel, 0); in lp_build_swizzle_scalar_aos()
185 return LLVMBuildShuffleVector(builder, a, bld->undef, LLVMConstVector(shuffles, n), ""); in lp_build_swizzle_scalar_aos()
335 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDTH]; in lp_build_swizzle_aos_n() local
344 shuffles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); in lp_build_swizzle_aos_n()
346 shuffles[i] = lp_build_const_int32(gallivm, swizzle); in lp_build_swizzle_aos_n()
350 …ShuffleVector(builder, src, LLVMGetUndef(LLVMTypeOf(src)), LLVMConstVector(shuffles, dst_len), ""); in lp_build_swizzle_aos_n()
399 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_aos() local
416 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
420 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
[all …]
Dlp_bld_format_soa.c493 LLVMValueRef packed[4], dst[4], output[4], shuffles[LP_MAX_VECTOR_WIDTH/32]; in lp_build_fetch_rgba_soa() local
528 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa()
530 shuf_vec = LLVMConstVector(shuffles, gather_type.length); in lp_build_fetch_rgba_soa()
538 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa()
540 shuf_vec = LLVMConstVector(shuffles, gather_type.length); in lp_build_fetch_rgba_soa()
629 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa()
632 LLVMConstVector(shuffles, type.length), ""); in lp_build_fetch_rgba_soa()
Dlp_bld_arit.c700 LLVMValueRef shuffles[4]; in lp_build_horizontal_add4x4f() local
705 shuffles[0] = lp_build_const_int32(gallivm, 0); in lp_build_horizontal_add4x4f()
706 shuffles[1] = lp_build_const_int32(gallivm, 1); in lp_build_horizontal_add4x4f()
707 shuffles[2] = lp_build_const_int32(gallivm, 4); in lp_build_horizontal_add4x4f()
708 shuffles[3] = lp_build_const_int32(gallivm, 5); in lp_build_horizontal_add4x4f()
710 LLVMConstVector(shuffles, 4), ""); in lp_build_horizontal_add4x4f()
712 LLVMConstVector(shuffles, 4), ""); in lp_build_horizontal_add4x4f()
715 shuffles[0] = lp_build_const_int32(gallivm, 2); in lp_build_horizontal_add4x4f()
716 shuffles[1] = lp_build_const_int32(gallivm, 3); in lp_build_horizontal_add4x4f()
717 shuffles[2] = lp_build_const_int32(gallivm, 6); in lp_build_horizontal_add4x4f()
[all …]
Dlp_bld_logic.c464 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_select_aos() local
468 shuffles[j + i] = LLVMConstInt(elem_type, in lp_build_select_aos()
472 return LLVMBuildShuffleVector(builder, a, b, LLVMConstVector(shuffles, n), ""); in lp_build_select_aos()
Dlp_bld_tgsi_aos.c153 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_fetch_constant() local
157 shuffles[chan] = lp_build_const_int32(bld->bld_base.base.gallivm, chan); in emit_fetch_constant()
161 shuffles[i] = shuffles[i % 4]; in emit_fetch_constant()
166 LLVMConstVector(shuffles, type.length), in emit_fetch_constant()
Dlp_bld_pack.c194 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_concat() local
196 assert(src_type.length * num_vectors <= ARRAY_SIZE(shuffles)); in lp_build_concat()
208 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_concat()
212 LLVMConstVector(shuffles, new_length), ""); in lp_build_concat()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_setup.c221 LLVMValueRef shuffles[4]; in lp_do_offset_tri() local
229 shuffles[0] = twoi; in lp_do_offset_tri()
230 shuffles[1] = zeroi; in lp_do_offset_tri()
231 shuffles[2] = onei; in lp_do_offset_tri()
232 shuffles[3] = twoi; in lp_do_offset_tri()
233 dzxyz20 = LLVMBuildShuffleVector(b, dxyz20, dxyz20, LLVMConstVector(shuffles, 4), ""); in lp_do_offset_tri()
235 shuffles[0] = onei; in lp_do_offset_tri()
236 shuffles[1] = twoi; in lp_do_offset_tri()
237 shuffles[2] = twoi; in lp_do_offset_tri()
238 shuffles[3] = zeroi; in lp_do_offset_tri()
[all …]
Dlp_bld_depth.c466 LLVMValueRef shuffles[16]; in lp_build_occlusion_count() local
472 shuffles[i] = lp_build_const_int32(gallivm, 4*i); in lp_build_occlusion_count()
475 shufflev = LLVMConstVector(shuffles, type.length); in lp_build_occlusion_count()
539 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_depth_stencil_load_swizzled() local
565 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_depth_stencil_load_swizzled()
579 shuffles[i] = lp_build_const_int32(gallivm, (i&1) + (i&2) * 2 + (i&4) / 2); in lp_build_depth_stencil_load_swizzled()
599 LLVMConstVector(shuffles, zs_type.length), ""); in lp_build_depth_stencil_load_swizzled()
675 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_depth_stencil_write_swizzled() local
720 shuffles[i] = lp_build_const_int32(gallivm, (i&1) + (i&2) * 2 + (i&4) / 2); in lp_build_depth_stencil_write_swizzled()
758 LLVMConstVector(&shuffles[0], in lp_build_depth_stencil_write_swizzled()
[all …]
Dlp_state_fs.c1292 LLVMValueRef shuffles[8]; in convert_to_blend_type() local
1301 shuffles[j] = lp_build_const_int32(gallivm, j * 2); in convert_to_blend_type()
1302 shuffles[j + 4] = lp_build_const_int32(gallivm, j * 2 + 1); in convert_to_blend_type()
1305 LLVMConstVector(shuffles, 8), ""); in convert_to_blend_type()
1454 LLVMValueRef tmpaos, shuffles[8]; in convert_from_blend_type() local
1461 shuffles[j * 2] = lp_build_const_int32(gallivm, j); in convert_from_blend_type()
1462 shuffles[j * 2 + 1] = lp_build_const_int32(gallivm, j + 4); in convert_from_blend_type()
1465 LLVMConstVector(shuffles, 8), ""); in convert_from_blend_type()
1651 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in convert_alpha() local
1661 shuffles[j] = lp_build_const_int32(gallivm, j / channels); in convert_alpha()
[all …]
/external/llvm/utils/
Dshuffle_fuzz.py114 for i, shuffles in enumerate(shuffle_tree):
116 for j, s in enumerate(shuffles):
125 for shuffles in shuffle_tree:
129 for i, s in enumerate(shuffles)]
160 for i, shuffles in enumerate(shuffle_tree):
161 for j, s in enumerate(shuffles):
/external/llvm/test/CodeGen/X86/
Dshuffle-combine-crash.ll4 ; safe to fold the shuffles in function @sample_test according to rule
7 ; The DAGCombiner avoids folding shuffles if
Dsplat-const.ll5 ; doesn't use redundant shuffles. (fixes PR22276)
/external/llvm/test/Transforms/InstCombine/
Dx86-avx2.ll5 ; Verify that instcombine is able to fold identity shuffles.
44 ; Verify that instcombine is able to fold constant shuffles.
64 ; Verify that instcombine is able to fold constant shuffles with undef mask elements.
Dvec_shuffle.ll77 ; Test fold of two shuffles where the first shuffle vectors inputs are a
89 ; mask values of 2*N, where N is the mask length. These shuffles should not
101 ; Test fold of two shuffles where the first shuffle vectors inputs are a
122 ; Test fold of two shuffles where the two shufflevector inputs's op1 are
134 ; Test fold of two shuffles where the first shufflevector's inputs are
145 ; Test fold of two shuffles where the first shufflevector's inputs are
249 ; If composition of two shuffles is identity, shuffles can be removed.
367 ; Do not reorder shuffle and binop if LHS of shuffles are of different size
Dx86-avx.ll5 ; Verify that instcombine is able to fold identity shuffles.
78 ; Verify that instcombine is able to fold constant shuffles.
116 ; Verify that instcombine is able to fold constant shuffles with undef mask elements.
/external/swiftshader/third_party/LLVM/test/CodeGen/CellSPU/useful-harnesses/
DREADME.txt4 vecoperations.c: Various vector operation sanity checks, e.g., shuffles,
/external/webp/src/dsp/
Denc_neon.c854 uint8x8x4_t shuffles; in QuantizeBlock() local
861 INIT_VECTOR4(shuffles, in QuantizeBlock()
873 INIT_VECTOR4(shuffles, in QuantizeBlock()
880 vst1_u8((uint8_t*)(out + 0), shuffles.val[0]); in QuantizeBlock()
881 vst1_u8((uint8_t*)(out + 4), shuffles.val[1]); in QuantizeBlock()
882 vst1_u8((uint8_t*)(out + 8), shuffles.val[2]); in QuantizeBlock()
883 vst1_u8((uint8_t*)(out + 12), shuffles.val[3]); in QuantizeBlock()
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
Dvec_shuffle-28.ll7 ; Pack various elements via shuffles.
Dsse1.ll22 ; This should not emit shuffles to populate the top 2 elements of the 4-element
/external/llvm/test/CodeGen/ARM/
Dvector-DAGCombine.ll145 ; Test that we are generating vrev and vext for reverse shuffles of v8i16
146 ; shuffles.
158 ; Test that we are generating vrev and vext for reverse shuffles of v16i8
159 ; shuffles.
/external/llvm/test/CodeGen/SystemZ/
Dvec-perm-13.ll1 ; Test vector shuffles on vectors with implicitly extended elements
/external/swiftshader/third_party/LLVM/test/Transforms/InstCombine/
Dvec_shuffle.ll77 ; Test fold of two shuffles where the first shuffle vectors inputs are a
89 ; mask values of 2*N, where N is the mask length. These shuffles should not
/external/llvm/test/Analysis/CostModel/X86/
Dalternate-shuffle-cost.ll8 ; Verify the cost model for alternate shuffles.
59 ; Test shuffles on packed vectors of two elements.
107 ; Test shuffles on packed vectors of four elements.
204 ; Test shuffles on packed vectors of eight elements.
277 ; Test shuffles on packed vectors of sixteen elements.
/external/llvm/test/Analysis/CostModel/ARM/
Dshuffle.ll9 ;; Reverse shuffles should be lowered to vrev and possibly a vext (for

123