/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_type.c | 64 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 …]
|
D | lp_bld_const.c | 251 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 …]
|
D | lp_bld_nir_soa.c | 668 … reg_storage = LLVMBuildBitCast(builder, reg_storage, LLVMPointerType(reg_bld->elem_type, 0), ""); in emit_load_reg() 703 … reg_storage = LLVMBuildBitCast(builder, reg_storage, LLVMPointerType(reg_bld->elem_type, 0), ""); in emit_store_reg() 740 LLVMTypeRef ptr_type = LLVMPointerType(bld_broad->elem_type, 0); in emit_load_kernel_arg() 906 cas_src_ptr = LLVMBuildBitCast(gallivm->builder, cas_src_ptr, atom_bld->elem_type, ""); in emit_atomic_global() 998 LLVMTypeRef ptr_type = LLVMPointerType(bld_broad->elem_type, 0); in emit_load_ubo() 1094 …alueRef mem_ptr2 = LLVMBuildBitCast(builder, mem_ptr, LLVMPointerType(load_bld->elem_type, 0), ""); in emit_load_mem() 1179 value_ptr = LLVMBuildBitCast(gallivm->builder, value_ptr, store_bld->elem_type, ""); in emit_store_mem() 1186 …lueRef mem_ptr2 = LLVMBuildBitCast(builder, mem_ptr, LLVMPointerType(store_bld->elem_type, 0), ""); in emit_store_mem() 1246 value_ptr = LLVMBuildBitCast(gallivm->builder, value_ptr, atomic_bld->elem_type, ""); in emit_atomic_mem() 1250 …ueRef mem_ptr2 = LLVMBuildBitCast(builder, mem_ptr, LLVMPointerType(atomic_bld->elem_type, 0), ""); in emit_atomic_mem() [all …]
|
/third_party/flatbuffers/include/flatbuffers/ |
D | reflection.h | 233 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemI() argument 234 return GetAnyValueI(elem_type, vec->Data() + GetTypeSize(elem_type) * i); in GetAnyVectorElemI() 239 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemF() argument 240 return GetAnyValueF(elem_type, vec->Data() + GetTypeSize(elem_type) * i); in GetAnyVectorElemF() 245 reflection::BaseType elem_type, size_t i) { in GetAnyVectorElemS() argument 246 return GetAnyValueS(elem_type, vec->Data() + GetTypeSize(elem_type) * i, in GetAnyVectorElemS() 357 inline void SetAnyVectorElemI(VectorOfAny *vec, reflection::BaseType elem_type, in SetAnyVectorElemI() argument 359 SetAnyValueI(elem_type, vec->Data() + GetTypeSize(elem_type) * i, val); in SetAnyVectorElemI() 363 inline void SetAnyVectorElemF(VectorOfAny *vec, reflection::BaseType elem_type, in SetAnyVectorElemF() argument 365 SetAnyValueF(elem_type, vec->Data() + GetTypeSize(elem_type) * i, val); in SetAnyVectorElemF() [all …]
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | constant.h | 107 auto* elem_type = ElementType(); in WithScalarAt() local 108 if (elem_type->Is<I32>()) { in WithScalarAt() 111 if (elem_type->Is<U32>()) { in WithScalarAt() 114 if (elem_type->Is<F32>()) { in WithScalarAt() 117 if (elem_type->Is<Bool>()) { in WithScalarAt()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver_constants.cc | 70 auto* elem_type = vec ? vec->type() : type; in EvaluateConstantValue() local 75 if (elem_type->Is<sem::I32>()) { in EvaluateConstantValue() 78 if (elem_type->Is<sem::U32>()) { in EvaluateConstantValue() 81 if (elem_type->Is<sem::F32>()) { in EvaluateConstantValue() 84 if (elem_type->Is<sem::Bool>()) { in EvaluateConstantValue() 97 auto cast = ConstantCast(arg->ConstantValue(), elem_type); in EvaluateConstantValue()
|
/third_party/mindspore/tests/ut/cpp/ops/ |
D | test_ops_fftimag.cc | 51 auto elem_type = tensor_type->element(); in TEST_F() local 52 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_sin.cc | 51 auto elem_type = tensor_type->element(); in TEST_F() local 52 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_flatten.cc | 52 auto elem_type = tensor_type->element(); in TEST_F() local 53 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_sqrt.cc | 51 auto elem_type = tensor_type->element(); in TEST_F() local 52 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_log.cc | 51 auto elem_type = tensor_type->element(); in TEST_F() local 52 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_rfft.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeComplex64); in TEST_F()
|
D | test_ops_add.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_pow.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_mul.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_maximum.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_squareddifference.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_sub.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_div.cc | 53 auto elem_type = tensor_type->element(); in TEST_F() local 54 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_mfcc.cc | 55 auto elem_type = tensor_type->element(); in TEST_F() local 56 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
D | test_ops_conv2d.cc | 74 auto elem_type = tensor_type->element(); in TEST_F() local 75 EXPECT_EQ(elem_type->type_id(), kNumberTypeFloat32); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/debug/debugger/ |
D | proto_exporter.cc | 54 TypePtr elem_type = dyn_cast<TensorType>(type)->element(); in SetTensorTypeProto() local 55 type_proto->mutable_tensor_type()->set_elem_type(GetDebuggerNumberDataType(elem_type)); in SetTensorTypeProto() 66 for (const auto &elem_type : tuple_type->elements()) { in SetTupleTypeProto() local 67 SetOutputType(elem_type, nullptr, type_proto->mutable_sequence_type()->add_elem_types()); in SetTupleTypeProto() 73 for (const auto &elem_type : list_type->elements()) { in SetListTypeProto() local 74 SetOutputType(elem_type, nullptr, type_proto->mutable_sequence_type()->add_elem_types()); in SetListTypeProto() 167 TypePtr elem_type = dyn_cast<TensorType>(val)->element(); in SetValueToProto() local 168 type_proto->mutable_tensor_type()->set_elem_type(GetDebuggerNumberDataType(elem_type)); in SetValueToProto()
|
/third_party/mindspore/mindspore/ccsrc/debug/ |
D | dump_proto.cc | 137 TypePtr elem_type = dyn_cast<TensorType>(type)->element(); in SetNodeOutputType() local 138 type_proto->mutable_tensor_type()->set_elem_type(GetNumberDataType(elem_type)); in SetNodeOutputType() 149 for (const auto &elem_type : tuple_type->elements()) { in SetNodeOutputType() local 150 SetNodeOutputType(elem_type, nullptr, type_proto->mutable_sequence_type()->add_elem_types()); in SetNodeOutputType() 157 for (const auto &elem_type : list_type->elements()) { in SetNodeOutputType() local 158 SetNodeOutputType(elem_type, nullptr, type_proto->mutable_sequence_type()->add_elem_types()); in SetNodeOutputType() 230 TypePtr elem_type = dyn_cast<TensorType>(val)->element(); in SetValueToProto() local 231 type_proto->mutable_tensor_type()->set_elem_type(GetNumberDataType(elem_type)); in SetValueToProto()
|
/third_party/boost/boost/fusion/container/vector/ |
D | vector.hpp | 171 using elem_type = T; typedef 247 typename store_at<J::value>::elem_type& at_impl(J) in at_impl() 254 typename store_at<J::value>::elem_type const& at_impl(J) const in at_impl()
|
/third_party/flatbuffers/src/ |
D | reflection.cpp | 264 auto elem_type = fielddef.type()->element(); in ResizeTable() local 265 if (elem_type != reflection::Obj && elem_type != reflection::String) in ResizeTable() 269 elem_type == reflection::Obj in ResizeTable() 532 auto elem_type = fb_enum->values()->Get(utype)->union_type(); in VerifyUnion() local 533 switch (elem_type->base_type()) { in VerifyUnion() 535 auto elem_obj = schema.objects()->Get(elem_type->index()); in VerifyUnion()
|