/external/eigen/unsupported/test/ |
D | cxx11_tensor_contraction.cpp | 19 template<int DataLayout> 22 Tensor<float, 2, DataLayout> mat1(2, 3); in test_evals() 23 Tensor<float, 2, DataLayout> mat2(2, 3); in test_evals() 24 Tensor<float, 2, DataLayout> mat3(3, 2); in test_evals() 30 Tensor<float, 2, DataLayout> mat4(3,3); in test_evals() 50 Tensor<float, 2, DataLayout> mat5(2,2); in test_evals() 65 Tensor<float, 2, DataLayout> mat6(2,2); in test_evals() 81 template<int DataLayout> 84 Tensor<float, 1, DataLayout> vec1({6}); in test_scalar() 85 Tensor<float, 1, DataLayout> vec2({6}); in test_scalar() [all …]
|
D | cxx11_tensor_argmax.cpp | 19 template <int DataLayout> 22 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_index_tuples() 26 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_simple_index_tuples() 36 template <int DataLayout> 39 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_index_tuples_dim() 43 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_index_tuples_dim() 54 template <int DataLayout> 57 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_argmax_tuple_reducer() 61 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_argmax_tuple_reducer() 64 Tensor<Tuple<DenseIndex, float>, 0, DataLayout> reduced; in test_argmax_tuple_reducer() [all …]
|
D | cxx11_tensor_reduction.cpp | 17 template <int DataLayout> 20 Tensor<float, 0, DataLayout> tensor; in test_trivial_reductions() 24 Tensor<float, 0, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions() 29 Tensor<float, 1, DataLayout> tensor(7); in test_trivial_reductions() 33 Tensor<float, 1, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions() 41 Tensor<float, 2, DataLayout> tensor(2, 3); in test_trivial_reductions() 45 Tensor<float, 2, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions() 56 template <int DataLayout> 58 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_simple_reductions() 64 Tensor<float, 2, DataLayout> result = tensor.sum(reduction_axis2); in test_simple_reductions() [all …]
|
D | cxx11_tensor_io.cpp | 16 template<int DataLayout> 19 Tensor<int, 0, DataLayout> tensor; in test_output_0d() 30 template<int DataLayout> 33 Tensor<int, 1, DataLayout> tensor(5); in test_output_1d() 44 Eigen::Tensor<double,1,DataLayout> empty_tensor(0); in test_output_1d() 52 template<int DataLayout> 55 Tensor<int, 2, DataLayout> tensor(5, 3); in test_output_2d() 70 template<int DataLayout> 73 Tensor<int, 1, DataLayout> tensor1(5); in test_output_expr() 74 Tensor<int, 1, DataLayout> tensor2(5); in test_output_expr() [all …]
|
D | cxx11_tensor_convolution.cpp | 17 template <int DataLayout> 20 Tensor<float, 2, DataLayout> input(3, 3); in test_evals() 21 Tensor<float, 1, DataLayout> kernel(2); in test_evals() 26 Tensor<float, 2, DataLayout> result(2,3); in test_evals() 45 template <int DataLayout> 48 Tensor<float, 2, DataLayout> input(3, 3); in test_expr() 49 Tensor<float, 2, DataLayout> kernel(2, 2); in test_expr() 53 Tensor<float, 2, DataLayout> result(2,2); in test_expr() 69 template <int DataLayout> 71 Tensor<float, 1, DataLayout> input(3); in test_modes() [all …]
|
D | cxx11_tensor_contract_cuda.cu | 26 template<int DataLayout> 33 Tensor<float, 2, DataLayout> t_left(m_size, k_size); in test_cuda_contraction() 34 Tensor<float, 2, DataLayout> t_right(k_size, n_size); in test_cuda_contraction() 35 Tensor<float, 2, DataLayout> t_result(m_size, n_size); in test_cuda_contraction() 36 Tensor<float, 2, DataLayout> t_result_gpu(m_size, n_size); in test_cuda_contraction() 60 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction() 62 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction() 64 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction() 90 template<int DataLayout> 97 Tensor<float, 2, DataLayout> t_left(m_size, k_size); in test_scalar() [all …]
|
D | cxx11_tensor_reduction_cuda.cu | 22 template<typename Type, int DataLayout> 31 Tensor<Type, 2, DataLayout> in(num_rows, num_cols); in test_full_reductions() 34 Tensor<Type, 0, DataLayout> full_redux; in test_full_reductions() 43 TensorMap<Tensor<Type, 2, DataLayout> > in_gpu(gpu_in_ptr, num_rows, num_cols); in test_full_reductions() 44 TensorMap<Tensor<Type, 0, DataLayout> > out_gpu(gpu_out_ptr); in test_full_reductions() 48 Tensor<Type, 0, DataLayout> full_redux_gpu; in test_full_reductions() 59 template<typename Type, int DataLayout> 65 Tensor<Type, 3, DataLayout> in(dim_x, dim_y, dim_z); in test_first_dim_reductions() 70 Tensor<Type, 2, DataLayout> redux = in.sum(red_axis); in test_first_dim_reductions() 79 Eigen::TensorMap<Eigen::Tensor<Type, 3, DataLayout> > gpu_in(in_data, dim_x, dim_y, dim_z); in test_first_dim_reductions() [all …]
|
D | cxx11_tensor_concatenation.cpp | 16 template<int DataLayout> 19 Tensor<int, 3, DataLayout> left(2, 3, 1); in test_dimension_failures() 20 Tensor<int, 3, DataLayout> right(3, 3, 1); in test_dimension_failures() 25 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_dimension_failures() 36 template<int DataLayout> 39 Tensor<int, 2, DataLayout> left(2, 3); in test_static_dimension_failure() 40 Tensor<int, 3, DataLayout> right(2, 3, 1); in test_static_dimension_failure() 45 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_static_dimension_failure() 49 Tensor<int, 3, DataLayout> concatenation = left in test_static_dimension_failure() 52 Tensor<int, 2, DataLayout> alternative = left in test_static_dimension_failure() [all …]
|
D | cxx11_tensor_broadcasting.cpp | 16 template <int DataLayout> 19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_broadcasting() 27 Tensor<float, 4, DataLayout> no_broadcast; in test_simple_broadcasting() 49 Tensor<float, 4, DataLayout> broadcast; in test_simple_broadcasting() 69 template <int DataLayout> 72 Tensor<float, 3, DataLayout> tensor(8,3,5); in test_vectorized_broadcasting() 79 Tensor<float, 3, DataLayout> broadcast; in test_vectorized_broadcasting() 112 template <int DataLayout> 115 Tensor<float, 3, DataLayout> tensor(8,3,5); in test_static_broadcasting() 127 Tensor<float, 3, DataLayout> broadcast; in test_static_broadcasting() [all …]
|
D | cxx11_tensor_ifft.cpp | 17 template <int DataLayout> 19 Tensor<double, 1, DataLayout> tensor(sequence_length); in test_1D_fft_ifft_invariant() 25 Tensor<std::complex<double>, 1, DataLayout> tensor_after_fft; in test_1D_fft_ifft_invariant() 26 Tensor<std::complex<double>, 1, DataLayout> tensor_after_fft_ifft; in test_1D_fft_ifft_invariant() 39 template <int DataLayout> 41 Tensor<double, 2, DataLayout> tensor(dim0, dim1); in test_2D_fft_ifft_invariant() 48 Tensor<std::complex<double>, 2, DataLayout> tensor_after_fft; in test_2D_fft_ifft_invariant() 49 Tensor<std::complex<double>, 2, DataLayout> tensor_after_fft_ifft; in test_2D_fft_ifft_invariant() 67 template <int DataLayout> 69 Tensor<double, 3, DataLayout> tensor(dim0, dim1, dim2); in test_3D_fft_ifft_invariant() [all …]
|
D | cxx11_tensor_thread_pool.cpp | 66 template<int DataLayout> 69 Tensor<float, 4, DataLayout> t_left(30, 50, 37, 31); in test_multithread_contraction() 70 Tensor<float, 5, DataLayout> t_right(37, 31, 70, 2, 10); in test_multithread_contraction() 71 Tensor<float, 5, DataLayout> t_result(30, 50, 70, 2, 10); in test_multithread_contraction() 80 typedef Map<Matrix<float, Dynamic, Dynamic, DataLayout>> MapXf; in test_multithread_contraction() 83 Matrix<float, Dynamic, Dynamic, DataLayout> m_result(1500, 1400); in test_multithread_contraction() 106 template<int DataLayout> 109 Tensor<float, 2, DataLayout> t_left(32, 500); in test_contraction_corner_cases() 110 Tensor<float, 2, DataLayout> t_right(32, 28*28); in test_contraction_corner_cases() 111 Tensor<float, 2, DataLayout> t_result(500, 28*28); in test_contraction_corner_cases() [all …]
|
D | cxx11_tensor_patch.cpp | 16 template<int DataLayout> 19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_patch() 28 Tensor<float, 5, DataLayout> no_patch; in test_simple_patch() 31 if (DataLayout == ColMajor) { in test_simple_patch() 53 Tensor<float, 5, DataLayout> single_patch; in test_simple_patch() 56 if (DataLayout == ColMajor) { in test_simple_patch() 78 Tensor<float, 5, DataLayout> twod_patch; in test_simple_patch() 81 if (DataLayout == ColMajor) { in test_simple_patch() 100 if (DataLayout == ColMajor) { in test_simple_patch() 107 if (DataLayout == ColMajor) { in test_simple_patch() [all …]
|
D | cxx11_tensor_morphing.cpp | 93 template<int DataLayout> 96 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_simple_slice() 99 Tensor<float, 5, DataLayout> slice1(1,1,1,1,1); in test_simple_slice() 105 Tensor<float, 5, DataLayout> slice2(1,1,2,2,3); in test_simple_slice() 129 template<int DataLayout> 131 typedef Matrix<float, Dynamic, Dynamic, DataLayout> Mtx; in test_slice_in_expr() 139 TensorMap<Tensor<float, 2, DataLayout>> tensor1(m1.data(), 7, 7); in test_slice_in_expr() 140 TensorMap<Tensor<float, 2, DataLayout>> tensor2(m2.data(), 3, 3); in test_slice_in_expr() 141 Tensor<float, 2, DataLayout> tensor3(3,1); in test_slice_in_expr() 159 TensorMap<Tensor<const float, 2, DataLayout>> tensor4(m1.data(), 7, 7); in test_slice_in_expr() [all …]
|
D | cxx11_tensor_chipping.cpp | 16 template<int DataLayout> 19 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_simple_chip() 22 Tensor<float, 4, DataLayout> chip1; in test_simple_chip() 40 Tensor<float, 4, DataLayout> chip2 = tensor.template chip<1>(1); in test_simple_chip() 55 Tensor<float, 4, DataLayout> chip3 = tensor.template chip<2>(2); in test_simple_chip() 70 Tensor<float, 4, DataLayout> chip4(tensor.template chip<3>(5)); in test_simple_chip() 85 Tensor<float, 4, DataLayout> chip5(tensor.template chip<4>(7)); in test_simple_chip() 101 template<int DataLayout> 104 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_dynamic_chip() 107 Tensor<float, 4, DataLayout> chip1; in test_dynamic_chip() [all …]
|
D | cxx11_tensor_shuffling.cpp | 17 template <int DataLayout> 20 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_shuffling() 28 Tensor<float, 4, DataLayout> no_shuffle; in test_simple_shuffling() 50 Tensor<float, 4, DataLayout> shuffle; in test_simple_shuffling() 70 template <int DataLayout> 73 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_expr_shuffling() 81 Tensor<float, 4, DataLayout> expected; in test_expr_shuffling() 84 Tensor<float, 4, DataLayout> result(5,7,3,2); in test_expr_shuffling() 133 template <int DataLayout> 136 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_shuffling_as_value() [all …]
|
D | cxx11_tensor_custom_index.cpp | 20 template <int DataLayout> 24 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_map_as_index() 42 template <int DataLayout> 46 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_matrix_as_index() 60 template <int DataLayout> 64 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_varlist_as_index() 75 template <int DataLayout> 79 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_sizes_as_index()
|
D | cxx11_tensor_scan.cpp | 17 template <int DataLayout, typename Type=float, bool Exclusive = false> 21 Tensor<Type, 1, DataLayout> tensor(size); in test_1d_scan() 23 Tensor<Type, 1, DataLayout> result = tensor.cumsum(0, Exclusive); in test_1d_scan() 51 template <int DataLayout, typename Type=float> 55 Tensor<Type, 4, DataLayout> tensor(size, size, size, size); in test_4d_scan() 58 Tensor<Type, 4, DataLayout> result(size, size, size, size); in test_4d_scan() 86 template <int DataLayout> 89 TensorMap<Tensor<int, 1, DataLayout> > tensor_map(inputs, 20); in test_tensor_maps() 92 Tensor<int, 1, DataLayout> result = tensor_map.cumsum(0); in test_tensor_maps()
|
D | cxx11_tensor_striding.cpp | 16 template<int DataLayout> 19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_striding() 27 Tensor<float, 4, DataLayout> no_stride; in test_simple_striding() 49 Tensor<float, 4, DataLayout> stride; in test_simple_striding() 69 template<int DataLayout> 72 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_striding_as_lvalue() 80 Tensor<float, 4, DataLayout> result(3, 12, 10, 21); in test_striding_as_lvalue() 98 Tensor<float, 4, DataLayout> result2(3, 12, 10, 21); in test_striding_as_lvalue()
|
D | cxx11_tensor_padding.cpp | 16 template<int DataLayout> 19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_padding() 28 Tensor<float, 4, DataLayout> padded; in test_simple_padding() 51 template<int DataLayout> 54 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_padded_expr() 67 Tensor<float, 2, DataLayout> result; in test_padded_expr() 74 const float result_value = DataLayout == ColMajor ? in test_padded_expr()
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 43 class DataLayout; variable 52 const DataLayout &DL, 61 const DataLayout &DL, 70 const DataLayout &DL, 79 const DataLayout &DL, 88 const DataLayout &DL, 96 Value *SimplifyMulInst(Value *LHS, Value *RHS, const DataLayout &DL, 104 Value *SimplifySDivInst(Value *LHS, Value *RHS, const DataLayout &DL, 112 Value *SimplifyUDivInst(Value *LHS, Value *RHS, const DataLayout &DL, 121 const DataLayout &DL, [all …]
|
D | ValueTracking.h | 29 class DataLayout; variable 53 const DataLayout &DL, unsigned Depth = 0, 63 bool haveNoCommonBitsSet(Value *LHS, Value *RHS, const DataLayout &DL, 71 const DataLayout &DL, unsigned Depth = 0, 81 bool isKnownToBeAPowerOfTwo(Value *V, const DataLayout &DL, 91 bool isKnownNonZero(Value *V, const DataLayout &DL, unsigned Depth = 0, 97 bool isKnownNonNegative(Value *V, const DataLayout &DL, unsigned Depth = 0, 104 bool isKnownPositive(Value *V, const DataLayout &DL, unsigned Depth = 0, 111 bool isKnownNegative(Value *V, const DataLayout &DL, unsigned Depth = 0, 118 bool isKnownNonEqual(Value *V1, Value *V2, const DataLayout &DL, [all …]
|
D | ConstantFolding.h | 28 class DataLayout; variable 38 const DataLayout &DL); 45 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL, 52 ConstantFoldConstantExpression(const ConstantExpr *CE, const DataLayout &DL, 62 const DataLayout &DL, 75 const DataLayout &DL, 84 Constant *RHS, const DataLayout &DL, 91 Constant *RHS, const DataLayout &DL); 96 const DataLayout &DL); 118 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, const DataLayout &DL);
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 40 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout() 122 DataLayout::InvalidAlignmentElem = { INVALID_ALIGN, 0, 0, 0 }; 149 DataLayout::InvalidPointerElem = { 0U, 0U, 0U, ~0U }; 155 const char *DataLayout::getManglingComponent(const Triple &T) { in getManglingComponent() 178 void DataLayout::reset(StringRef Desc) { in reset() 223 void DataLayout::parseSpecifier(StringRef Desc) { in parseSpecifier() 381 DataLayout::DataLayout(const Module *M) : LayoutMap(nullptr) { in DataLayout() function in DataLayout 385 void DataLayout::init(const Module *M) { *this = M->getDataLayout(); } in init() 387 bool DataLayout::operator==(const DataLayout &Other) const { in operator ==() 398 DataLayout::setAlignment(AlignTypeEnum align_type, unsigned abi_align, in setAlignment() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DataLayout.h | 101 class DataLayout { 131 return const_cast<DataLayout *>(this)->findPointerLowerBound(AddressSpace); in findPointerLowerBound() 182 explicit DataLayout(StringRef LayoutDescription) : LayoutMap(nullptr) { in DataLayout() function 187 explicit DataLayout(const Module *M); 191 DataLayout(const DataLayout &DL) : LayoutMap(nullptr) { *this = DL; } in DataLayout() function 193 DataLayout &operator=(const DataLayout &DL) { 205 bool operator==(const DataLayout &Other) const; 206 bool operator!=(const DataLayout &Other) const { return !(*this == Other); } 208 ~DataLayout(); // Not virtual, do not subclass this class 463 inline DataLayout *unwrap(LLVMTargetDataRef P) { in unwrap() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 22 class DataLayout; variable 38 Value *emitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL, 45 const DataLayout &DL, const TargetLibraryInfo *TLI); 55 const DataLayout &DL, const TargetLibraryInfo *TLI); 70 IRBuilder<> &B, const DataLayout &DL, 76 const DataLayout &DL, const TargetLibraryInfo *TLI); 80 const DataLayout &DL, const TargetLibraryInfo *TLI); 115 const DataLayout &DL, const TargetLibraryInfo *TLI);
|