Home
last modified time | relevance | path

Searched refs:DataLayout (Results 1 – 25 of 1211) sorted by relevance

12345678910>>...49

/external/llvm-project/llvm/unittests/IR/
DDataLayoutTest.cpp21 EXPECT_EQ(MaybeAlign(0), DataLayout("").getFunctionPtrAlign()); in TEST()
22 EXPECT_EQ(MaybeAlign(1), DataLayout("Fi8").getFunctionPtrAlign()); in TEST()
23 EXPECT_EQ(MaybeAlign(2), DataLayout("Fi16").getFunctionPtrAlign()); in TEST()
24 EXPECT_EQ(MaybeAlign(4), DataLayout("Fi32").getFunctionPtrAlign()); in TEST()
25 EXPECT_EQ(MaybeAlign(8), DataLayout("Fi64").getFunctionPtrAlign()); in TEST()
26 EXPECT_EQ(MaybeAlign(1), DataLayout("Fn8").getFunctionPtrAlign()); in TEST()
27 EXPECT_EQ(MaybeAlign(2), DataLayout("Fn16").getFunctionPtrAlign()); in TEST()
28 EXPECT_EQ(MaybeAlign(4), DataLayout("Fn32").getFunctionPtrAlign()); in TEST()
29 EXPECT_EQ(MaybeAlign(8), DataLayout("Fn64").getFunctionPtrAlign()); in TEST()
30 EXPECT_EQ(DataLayout::FunctionPtrAlignType::Independent, \ in TEST()
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_contraction.cpp19 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 …]
Dcxx11_tensor_argmax.cpp19 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 …]
Dcxx11_tensor_reduction.cpp17 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 …]
Dcxx11_tensor_io.cpp16 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 …]
Dcxx11_tensor_convolution.cpp17 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 …]
Dcxx11_tensor_contract_cuda.cu26 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 …]
Dcxx11_tensor_reduction_cuda.cu22 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 …]
Dcxx11_tensor_concatenation.cpp16 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 …]
Dcxx11_tensor_broadcasting.cpp16 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 …]
Dcxx11_tensor_ifft.cpp17 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 …]
Dcxx11_tensor_thread_pool.cpp66 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 …]
Dcxx11_tensor_patch.cpp16 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 …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtensor_type_util.cc37 DataLayout ToDataLayout(TensorStorageType type) { in ToDataLayout()
40 return DataLayout::DHWC4; in ToDataLayout()
42 return DataLayout::DHWC4; in ToDataLayout()
44 return DataLayout::BHWC; in ToDataLayout()
46 return DataLayout::HDWC4; in ToDataLayout()
48 return DataLayout::DHWC4; in ToDataLayout()
50 return DataLayout::DHWC4; in ToDataLayout()
52 return DataLayout::UNKNOWN; in ToDataLayout()
57 DataLayout data_layout) { in ToTensorStorageType()
63 case DataLayout::BHWC: in ToTensorStorageType()
[all …]
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h43 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 …]
DValueTracking.h29 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 …]
DConstantFolding.h28 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h33 class DataLayout; variable
38 const DataLayout &DL);
47 IRBuilder<> &IRB, const DataLayout &DL);
55 StoreInst *DepSI, const DataLayout &DL);
63 const DataLayout &DL);
71 MemIntrinsic *DepMI, const DataLayout &DL);
77 Instruction *InsertPt, const DataLayout &DL);
81 Type *LoadTy, const DataLayout &DL);
88 Instruction *InsertPt, const DataLayout &DL);
92 Type *LoadTy, const DataLayout &DL);
[all …]
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h33 class DataLayout; variable
38 const DataLayout &DL);
47 IRBuilderBase &IRB, const DataLayout &DL);
55 StoreInst *DepSI, const DataLayout &DL);
63 const DataLayout &DL);
71 MemIntrinsic *DepMI, const DataLayout &DL);
77 Instruction *InsertPt, const DataLayout &DL);
81 Type *LoadTy, const DataLayout &DL);
88 Instruction *InsertPt, const DataLayout &DL);
92 Type *LoadTy, const DataLayout &DL);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueTracking.h55 const DataLayout &DL, unsigned Depth = 0,
63 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
78 const DataLayout &DL,
89 bool isKnownToBeAPowerOfTwo(const Value *V, const DataLayout &DL,
104 bool isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth = 0,
117 bool isKnownNonNegative(const Value *V, const DataLayout &DL,
126 bool isKnownPositive(const Value *V, const DataLayout &DL, unsigned Depth = 0,
134 bool isKnownNegative(const Value *V, const DataLayout &DL, unsigned Depth = 0,
142 bool isKnownNonEqual(const Value *V1, const Value *V2, const DataLayout &DL,
158 const DataLayout &DL,
[all …]
DConstantFolding.h29 class DataLayout; variable
39 const DataLayout &DL);
46 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
52 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
62 const DataLayout &DL,
71 Constant *RHS, const DataLayout &DL,
78 const DataLayout &DL);
84 Constant *RHS, const DataLayout &DL);
95 const DataLayout &DL);
130 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, const DataLayout &DL);
[all …]
/external/llvm/lib/IR/
DDataLayout.cpp40 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-project/llvm/include/llvm/Analysis/
DValueTracking.h59 const DataLayout &DL, unsigned Depth = 0,
75 KnownBits &Known, const DataLayout &DL,
83 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
92 const DataLayout &DL, unsigned Depth = 0,
107 const DataLayout &DL,
118 bool isKnownToBeAPowerOfTwo(const Value *V, const DataLayout &DL,
133 bool isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth = 0,
146 bool isKnownNonNegative(const Value *V, const DataLayout &DL,
155 bool isKnownPositive(const Value *V, const DataLayout &DL, unsigned Depth = 0,
163 bool isKnownNegative(const Value *V, const DataLayout &DL, unsigned Depth = 0,
[all …]
DConstantFolding.h29 class DataLayout; variable
41 const DataLayout &DL,
49 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
55 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
65 const DataLayout &DL,
74 Constant *RHS, const DataLayout &DL,
81 const DataLayout &DL);
87 Constant *RHS, const DataLayout &DL);
98 const DataLayout &DL);
134 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, const DataLayout &DL);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDataLayout.cpp46 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
151 const char *DataLayout::getManglingComponent(const Triple &T) { in getManglingComponent()
174 void DataLayout::reset(StringRef Desc) { in reset()
231 void DataLayout::parseSpecifier(StringRef Desc) { in parseSpecifier()
456 DataLayout::DataLayout(const Module *M) { in DataLayout() function in DataLayout
460 void DataLayout::init(const Module *M) { *this = M->getDataLayout(); } in init()
462 bool DataLayout::operator==(const DataLayout &Other) const { in operator ==()
476 DataLayout::AlignmentsTy::iterator
477 DataLayout::findAlignmentLowerBound(AlignTypeEnum AlignType, in findAlignmentLowerBound()
485 void DataLayout::setAlignment(AlignTypeEnum align_type, Align abi_align, in setAlignment()
[all …]

12345678910>>...49