Home
last modified time | relevance | path

Searched refs:elem_type (Results 1 – 25 of 84) sorted by relevance

1234

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_type.c64 LLVMTypeRef elem_type = lp_build_elem_type(gallivm, type); in lp_build_vec_type() local
66 return elem_type; in lp_build_vec_type()
68 return LLVMVectorType(elem_type, type.length); in lp_build_vec_type()
79 lp_check_elem_type(struct lp_type type, LLVMTypeRef elem_type) in lp_check_elem_type() argument
83 assert(elem_type); in lp_check_elem_type()
84 if(!elem_type) in lp_check_elem_type()
87 elem_kind = LLVMGetTypeKind(elem_type); in lp_check_elem_type()
112 if(LLVMGetIntTypeWidth(elem_type) != type.width) in lp_check_elem_type()
123 LLVMTypeRef elem_type; in lp_check_vec_type() local
138 elem_type = LLVMGetElementType(vec_type); in lp_check_vec_type()
[all …]
Dlp_bld_const.c251 LLVMTypeRef elem_type; in lp_build_one() local
257 elem_type = lp_build_elem_type(gallivm, type); in lp_build_one()
260 elems[0] = LLVMConstInt(elem_type, _mesa_float_to_half(1.0f), 0); in lp_build_one()
262 elems[0] = LLVMConstReal(elem_type, 1.0); in lp_build_one()
264 elems[0] = LLVMConstInt(elem_type, 1LL << (type.width/2), 0); in lp_build_one()
266 elems[0] = LLVMConstInt(elem_type, 1, 0); in lp_build_one()
268 elems[0] = LLVMConstInt(elem_type, (1LL << (type.width - 1)) - 1, 0); in lp_build_one()
303 LLVMTypeRef elem_type = lp_build_elem_type(gallivm, type); in lp_build_const_elem() local
307 elem = LLVMConstInt(elem_type, _mesa_float_to_half((float)val), 0); in lp_build_const_elem()
309 elem = LLVMConstReal(elem_type, val); in lp_build_const_elem()
[all …]
Dlp_bld_intr.c333 LLVMTypeRef elem_type = lp_build_elem_type(gallivm, intrin_type); in lp_build_intrinsic_binary_anylength() local
334 a = LLVMBuildBitCast(builder, a, LLVMVectorType(elem_type, 1), ""); in lp_build_intrinsic_binary_anylength()
335 b = LLVMBuildBitCast(builder, b, LLVMVectorType(elem_type, 1), ""); in lp_build_intrinsic_binary_anylength()
Dlp_bld_nir_soa.c667 … reg_storage = LLVMBuildBitCast(builder, reg_storage, LLVMPointerType(reg_bld->elem_type, 0), ""); in emit_load_reg()
702 … reg_storage = LLVMBuildBitCast(builder, reg_storage, LLVMPointerType(reg_bld->elem_type, 0), ""); in emit_store_reg()
739 LLVMTypeRef ptr_type = LLVMPointerType(bld_broad->elem_type, 0); in emit_load_kernel_arg()
903 cas_src_ptr = LLVMBuildBitCast(gallivm->builder, cas_src_ptr, uint_bld->elem_type, ""); in emit_atomic_global()
980 LLVMTypeRef dptr_type = LLVMPointerType(bld_base->dbl_bld.elem_type, 0); in emit_load_ubo()
1061 …ueRef ssbo_ptr2 = LLVMBuildBitCast(builder, ssbo_ptr, LLVMPointerType(load_bld->elem_type, 0), ""); in emit_load_mem()
1132 value_ptr = LLVMBuildBitCast(gallivm->builder, value_ptr, store_bld->elem_type, ""); in emit_store_mem()
1142 …eRef ssbo_ptr2 = LLVMBuildBitCast(builder, ssbo_ptr, LLVMPointerType(store_bld->elem_type, 0), ""); in emit_store_mem()
1188 value_ptr = LLVMBuildBitCast(gallivm->builder, value_ptr, uint_bld->elem_type, ""); in emit_atomic_mem()
1206 cas_src_ptr = LLVMBuildBitCast(gallivm->builder, cas_src_ptr, uint_bld->elem_type, ""); in emit_atomic_mem()
[all …]
Dlp_bld_type.h151 LLVMTypeRef elem_type; member
352 lp_check_elem_type(struct lp_type type, LLVMTypeRef elem_type);
/external/flatbuffers/include/flatbuffers/
Dreflection.h208 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemI() argument
209 return GetAnyValueI(elem_type, vec->Data() + GetTypeSize(elem_type) * i); in GetAnyVectorElemI()
214 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemF() argument
215 return GetAnyValueF(elem_type, vec->Data() + GetTypeSize(elem_type) * i); in GetAnyVectorElemF()
220 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemS() argument
221 return GetAnyValueS(elem_type, vec->Data() + GetTypeSize(elem_type) * i, in GetAnyVectorElemS()
332 inline void SetAnyVectorElemI(VectorOfAny *vec, reflection::BaseType elem_type, in SetAnyVectorElemI() argument
334 SetAnyValueI(elem_type, vec->Data() + GetTypeSize(elem_type) * i, val); in SetAnyVectorElemI()
338 inline void SetAnyVectorElemF(VectorOfAny *vec, reflection::BaseType elem_type, in SetAnyVectorElemF() argument
340 SetAnyValueF(elem_type, vec->Data() + GetTypeSize(elem_type) * i, val); in SetAnyVectorElemF()
[all …]
/external/OpenCSD/decoder/include/common/
Dtrc_gen_elem.h93 const ocsd_gen_trc_elem_t getType() const { return elem_type; }; in getType()
108 elem_type = type; in OcsdTraceElement()
113 elem_type = OCSD_GEN_TRC_ELEM_UNKNOWN; in OcsdTraceElement()
146 elem_type = type; in setType()
153 elem_type = type; in updateType()
Docsd_gen_elem_stack.h57 ocsd_err_t addElemType(const ocsd_trc_index_t trc_pkt_idx, ocsd_gen_trc_elem_t elem_type);
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc204 mlir::Type elem_type = ConvertElementType(tensor.type, builder); in GetTensorType() local
208 TF_ASSIGN_OR_RETURN(elem_type, in GetTensorType()
213 return RankedTensorType::get({}, elem_type); in GetTensorType()
219 return RankedTensorType::get(shape, elem_type); in GetTensorType()
222 return UnrankedTensorType::get(elem_type); in GetTensorType()
343 mlir::RankedTensorType shaped_type, mlir::FloatType elem_type, in ConvertFloatBuffer() argument
348 switch (elem_type.getWidth()) { in ConvertFloatBuffer()
356 auto& semantics = elem_type.getFloatSemantics(); in ConvertFloatBuffer()
385 return errors::InvalidArgument("unsupported bit width", elem_type.getWidth()); in ConvertFloatBuffer()
389 mlir::RankedTensorType shaped_type, mlir::Type elem_type, in ConvertIntBuffer() argument
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dstack_ops_test.py39 -1, elem_type=dtypes.float32, stack_name="foo")
55 -1, elem_type=dtypes.float32, stack_name="foo")
70 -1, elem_type=dtypes.float32, stack_name="foo")
107 -1, elem_type=dtypes.float32, stack_name="foo")
112 -1, elem_type=dtypes.float32, stack_name="bar")
128 -1, elem_type=dtypes.float32, stack_name="foo")
130 -1, elem_type=dtypes.float32, stack_name="foo")
151 -1, elem_type=dtypes.float32, stack_name="foo")
163 -1, elem_type=dtypes.float32, stack_name="foo")
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DStackPop.pbtxt10 type_attr: "elem_type"
13 name: "elem_type"
DStackPopV2.pbtxt9 type_attr: "elem_type"
12 name: "elem_type"
DStack.pbtxt9 name: "elem_type"
DStackV2.pbtxt12 name: "elem_type"
/external/OpenCSD/decoder/source/
Docsd_gen_elem_list.cpp85 ocsd_gen_trc_elem_t elem_type = OCSD_GEN_TRC_ELEM_UNKNOWN; in getElemType() local
89 elem_type = m_pElemArray[idx].pElem->getType(); in getElemType()
91 return elem_type; in getElemType()
Docsd_gen_elem_stack.cpp83 …_t OcsdGenElemStack::addElemType(const ocsd_trc_index_t trc_pkt_idx, ocsd_gen_trc_elem_t elem_type) in addElemType() argument
87 getCurrElem().setType(elem_type); in addElemType()
Dtrc_gen_elem.cpp113 int typeIdx = (int)this->elem_type; in toString()
117 switch(elem_type) in toString()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_tf.cc275 auto elem_type = filter_type.getElementType(); in rewrite() local
278 auto bias_type = RankedTensorType::get({bias_dim}, elem_type); in rewrite()
339 auto elem_type = filter_type.getElementType(); in legalizeFilter() local
340 auto result_type = RankedTensorType::get(result_shape, elem_type); in legalizeFilter()
396 auto elem_type = filter_type.getElementType(); in legalizeFilter() local
397 auto result_type = RankedTensorType::get(result_shape, elem_type); in legalizeFilter()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/
Drx-scheduler.hpp892 typedef std::pair<item_type, int64_t> elem_type; typedef in rxcpp::schedulers::detail::schedulable_queue
893 typedef std::vector<elem_type> container_type;
899 bool operator()(const elem_type& lhs, const elem_type& rhs) const { in operator ()()
910 elem_type,
938 q.push(elem_type(value, ordinal++)); in push()
942 q.push(elem_type(std::move(value), ordinal++)); in push()
/external/mesa3d/src/compiler/nir/
Dnir_opt_memcpy.c99 const struct glsl_type *elem_type = glsl_get_array_element(type); in type_is_tightly_packed() local
102 if (!type_is_tightly_packed(elem_type, &elem_size)) in type_is_tightly_packed()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_StackPopV2.pbtxt17 name: "elem_type"
Dapi_def_StackV2.pbtxt18 name: "elem_type"
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp102 TypeInfo( TypeInfo* elem_type, int num_elem ) : in TypeInfo() argument
107 m_elem_type(elem_type), in TypeInfo()
111 snprintf(the_name,sizeof(the_name),"%s%d",elem_type->get_name_c_str(),m_num_elem); in TypeInfo()
114 this->m_value_size = num_elem * elem_type->get_size(); in TypeInfo()
116 this->m_size = 4 * elem_type->get_size(); in TypeInfo()
118 this->m_size = num_elem * elem_type->get_size(); in TypeInfo()
135 const TypeInfo* elem_type(void) const { return m_elem_type; } in elem_type() function in TypeInfo
556 TypeInfo* elem_type = type_info + num_type_info++; in l_build_type_table() local
557 *elem_type = TypeInfo( vecbase[iscalar] ).set_vecbase().set_size( vecbase_size[iscalar] ); in l_build_type_table()
561 type_info[ num_type_info++ ] = TypeInfo( elem_type, vecsizes[ivecsize] ); in l_build_type_table()
/external/OpenCSD/decoder/include/opencsd/
Dtrc_gen_elem_types.h90 …ocsd_gen_trc_elem_t elem_type; /**< Element type - remaining data interpreted according to this … member
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dcontrol_flow_ops_test.py777 s = data_flow_ops.stack_v2(max_size=4, elem_type=dtypes.int32)
782 e2 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
784 e1 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
793 s = data_flow_ops.stack_v2(max_size=4, elem_type=dtypes.int32)
798 e2 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
800 e1 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
807 s = data_flow_ops.stack_v2(max_size=4, elem_type=dtypes.int32)
815 e1 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
817 e2 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
823 e3 = data_flow_ops.stack_pop_v2(s, elem_type=dtypes.int32)
[all …]

1234