/third_party/boost/libs/type_index/test/ |
D | type_index_test.cpp | 27 BOOST_TEST_EQ(type_id<int>().pretty_name(), "int"); in names_matches_type_id() 28 BOOST_TEST_EQ(type_id<double>().pretty_name(), "double"); in names_matches_type_id() 30 BOOST_TEST_EQ(type_id<int>().name(), type_id<int>().name()); in names_matches_type_id() 31 BOOST_TEST_NE(type_id<int>().name(), type_id<double>().name()); in names_matches_type_id() 32 BOOST_TEST_NE(type_id<double>().name(), type_id<int>().name()); in names_matches_type_id() 33 BOOST_TEST_EQ(type_id<double>().name(), type_id<double>().name()); in names_matches_type_id() 41 BOOST_TEST_EQ(type_id<void>(), ti1); in default_construction() 43 BOOST_TEST_EQ(type_id<void>().name(), ti1.name()); in default_construction() 44 BOOST_TEST_NE(type_id<int>(), ti1); in default_construction() 51 type_index ti1, ti2 = type_id<int>(); in copy_construction() [all …]
|
/third_party/spirv-tools/source/opt/ |
D | eliminate_dead_members_pass.cpp | 64 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 132 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore() 136 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument 137 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed() 145 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed() 164 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory() 166 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local 167 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory() 180 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local 183 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkMembersAsLiveForExtract() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | eliminate_dead_members_pass.cpp | 65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 137 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore() 141 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument 142 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed() 149 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed() 173 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory() 175 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local 176 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory() 189 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local [all …]
|
D | ir_builder.h | 61 Instruction* AddNullaryOp(uint32_t type_id, SpvOp opcode) { in AddNullaryOp() argument 63 if (type_id != 0) { in AddNullaryOp() 70 new Instruction(GetContext(), opcode, type_id, result_id, {})); in AddNullaryOp() 74 Instruction* AddUnaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1) { in AddUnaryOp() argument 76 if (type_id != 0) { in AddUnaryOp() 83 GetContext(), opcode, type_id, result_id, in AddUnaryOp() 88 Instruction* AddBinaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, in AddBinaryOp() argument 91 if (type_id != 0) { in AddBinaryOp() 98 GetContext(), opcode, type_id, opcode == SpvOpStore ? 0 : result_id, in AddBinaryOp() 104 Instruction* AddTernaryOp(uint32_t type_id, SpvOp opcode, uint32_t operand1, in AddTernaryOp() argument [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | eliminate_dead_members_pass.cpp | 65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers() 137 uint32_t object_type_id = object_inst->type_id(); in MarkMembersAsLiveForStore() 141 void EliminateDeadMembersPass::MarkTypeAsFullyUsed(uint32_t type_id) { in MarkTypeAsFullyUsed() argument 142 Instruction* type_inst = get_def_use_mgr()->GetDef(type_id); in MarkTypeAsFullyUsed() 149 used_members_[type_id].insert(i); in MarkTypeAsFullyUsed() 173 uint32_t pointer_type_id = target_inst->type_id(); in MarkMembersAsLiveForCopyMemory() 175 uint32_t type_id = pointer_type_inst->GetSingleWordInOperand(1); in MarkMembersAsLiveForCopyMemory() local 176 MarkTypeAsFullyUsed(type_id); in MarkMembersAsLiveForCopyMemory() 189 uint32_t type_id = composite_inst->type_id(); in MarkMembersAsLiveForExtract() local [all …]
|
/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_merge_function_returns.cpp | 85 function->type_id()); in Apply() 179 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply() 190 if (ids_available_after_entry_block.count(function->type_id())) { in Apply() 192 ids_available_after_entry_block[function->type_id()]; in Apply() 197 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply() 200 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply() 223 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock() 224 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock() 225 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock() 227 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock() [all …]
|
D | fuzzer_pass_replace_irrelevant_ids.cpp | 60 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply() 61 types_to_ids.insert({declaration->type_id(), {}}); in Apply() 74 uint32_t type_id = pair.second->type_id(); in Apply() local 75 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply() 76 types_to_ids.count(type_id)) { in Apply() 77 types_to_ids[type_id].push_back(pair.first); in Apply() 90 uint32_t type_id = in Apply() local 91 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply() 94 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply() 125 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 131 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments() 138 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments() 142 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments() 145 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments() 147 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments() 152 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments() 154 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments() 168 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments() 173 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments() 178 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments() [all …]
|
D | transformation_add_opphi_synonym.cpp | 83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local 84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable() 94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable() 129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local 145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply() 170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument 171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_merge_function_returns.cpp | 86 function->type_id()); in Apply() 181 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply() 192 if (ids_available_after_entry_block.count(function->type_id())) { in Apply() 194 ids_available_after_entry_block[function->type_id()]; in Apply() 199 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply() 202 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply() 225 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock() 226 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock() 227 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock() 229 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock() [all …]
|
D | fuzzer_pass_replace_irrelevant_ids.cpp | 61 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply() 62 types_to_ids.insert({declaration->type_id(), {}}); in Apply() 75 uint32_t type_id = pair.second->type_id(); in Apply() local 76 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply() 77 types_to_ids.count(type_id)) { in Apply() 78 types_to_ids[type_id].push_back(pair.first); in Apply() 91 uint32_t type_id = in Apply() local 92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply() 95 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply() 126 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments() 139 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments() 143 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments() 146 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments() 148 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments() 153 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments() 155 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments() 169 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments() 174 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments() 179 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments() [all …]
|
D | transformation_add_opphi_synonym.cpp | 83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local 84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable() 94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable() 129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local 145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply() 170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument 171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_merge_function_returns.cpp | 86 function->type_id()); in Apply() 181 GetIRContext()->get_type_mgr()->GetType(function->type_id())->AsVoid(); in Apply() 192 if (ids_available_after_entry_block.count(function->type_id())) { in Apply() 194 ids_available_after_entry_block[function->type_id()]; in Apply() 199 uint32_t suitable_id = FindOrCreateGlobalUndef(function->type_id()); in Apply() 202 function->type_id(), std::vector<uint32_t>({suitable_id})); in Apply() 225 if (global.HasResultId() && global.type_id()) { in GetTypesToIdsAvailableAfterEntryBlock() 226 if (!result.count(global.type_id())) { in GetTypesToIdsAvailableAfterEntryBlock() 227 result.emplace(global.type_id(), std::vector<uint32_t>()); in GetTypesToIdsAvailableAfterEntryBlock() 229 result[global.type_id()].emplace_back(global.result_id()); in GetTypesToIdsAvailableAfterEntryBlock() [all …]
|
D | fuzzer_pass_replace_irrelevant_ids.cpp | 61 if (types_to_ids.count(declaration->type_id()) == 0) { in Apply() 62 types_to_ids.insert({declaration->type_id(), {}}); in Apply() 75 uint32_t type_id = pair.second->type_id(); in Apply() local 76 if (pair.second->opcode() != SpvOpFunction && type_id && in Apply() 77 types_to_ids.count(type_id)) { in Apply() 78 types_to_ids[type_id].push_back(pair.first); in Apply() 91 uint32_t type_id = in Apply() local 92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply() 95 irrelevant_id, [this, &irrelevant_id, &type_id, &types_to_ids, in Apply() 126 for (auto replacement_id : types_to_ids[type_id]) { in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 132 type_id_to_result_id[inst->type_id()].push_back(inst->result_id()); in ChooseFunctionCallArguments() 139 GetIRContext()->get_type_mgr()->GetType(param->type_id()); in ChooseFunctionCallArguments() 143 if (fuzzerutil::CanCreateConstant(GetIRContext(), param->type_id())) { in ChooseFunctionCallArguments() 146 result.push_back(FindOrCreateZeroConstant(param->type_id(), true)); in ChooseFunctionCallArguments() 148 result.push_back(FindOrCreateGlobalUndef(param->type_id())); in ChooseFunctionCallArguments() 153 if (type_id_to_result_id.count(param->type_id())) { in ChooseFunctionCallArguments() 155 const auto& candidates = type_id_to_result_id[param->type_id()]; in ChooseFunctionCallArguments() 169 type_id_to_result_id[param->type_id()].push_back(fresh_variable_id); in ChooseFunctionCallArguments() 174 GetIRContext(), param->type_id()); in ChooseFunctionCallArguments() 179 fresh_variable_id, param->type_id(), caller_function->result_id(), in ChooseFunctionCallArguments() [all …]
|
D | transformation_add_opphi_synonym.cpp | 83 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in IsApplicable() local 84 if (!CheckTypeIsAllowed(ir_context, type_id)) { in IsApplicable() 94 if (ir_context->get_def_use_mgr()->GetDef(id)->type_id() != type_id) { in IsApplicable() 129 uint32_t type_id = ir_context->get_def_use_mgr()->GetDef(first_id)->type_id(); in Apply() local 145 .InsertBefore(MakeUnique<opt::Instruction>(ir_context, SpvOpPhi, type_id, in Apply() 170 opt::IRContext* ir_context, uint32_t type_id) { in CheckTypeIsAllowed() argument 171 auto type = ir_context->get_type_mgr()->GetType(type_id); in CheckTypeIsAllowed()
|
/third_party/pulseaudio/src/pulsecore/ |
D | object.c | 29 …ect *pa_object_new_internal(size_t size, const char *type_id, bool (*check_type)(const char *type_… in pa_object_new_internal() argument 33 pa_assert(type_id); in pa_object_new_internal() 38 pa_assert(check_type(type_id)); in pa_object_new_internal() 43 o->type_id = type_id; in pa_object_new_internal() 66 bool pa_object_check_type(const char *type_id) { in pa_object_check_type() argument 67 pa_assert(type_id); in pa_object_check_type() 69 return type_id == pa_object_type_id; in pa_object_check_type()
|
D | object.h | 34 const char *type_id; member 39 …ect *pa_object_new_internal(size_t size, const char *type_id, bool (*check_type)(const char *type_… 44 bool pa_object_check_type(const char *type_id); 96 bool c##_check_type(const char *type_id) 100 bool c##_check_type(const char *type_id) { \ 101 if (type_id == c##_type_id) \ 103 return parent##_check_type(type_id); \ 110 static bool c##_check_type(const char *type_id) { \ 111 if (type_id == c##_type_id) \ 113 return parent##_check_type(type_id); \
|
/third_party/mindspore/mindspore/core/utils/ |
D | tensor_construct_utils.cc | 24 auto type_id = ExtractTypeId(type_ptr); in CreateZerosTensor() local 25 tensor::TensorPtr tensor = std::make_shared<tensor::Tensor>(type_id, shape); in CreateZerosTensor() 37 auto type_id = ExtractTypeId(type_ptr); in CreateOnesTensor() local 38 tensor::TensorPtr tensor = std::make_shared<tensor::Tensor>(type_id, shape); in CreateOnesTensor() 79 auto type_id = ExtractTypeId(type_ptr); in CreateTensor() local 80 tensor::TensorPtr tensor = std::make_shared<tensor::Tensor>(type_id, shape, data, type_id); in CreateTensor() 86 TypeId type_id; in ExtractTypeId() local 90 type_id = tensor_type->element()->type_id(); in ExtractTypeId() 92 type_id = type_ptr->type_id(); in ExtractTypeId() 94 return type_id; in ExtractTypeId()
|
/third_party/skia/third_party/externals/spirv-cross/tests-other/ |
D | typed_id_test.cpp | 9 TypeID type_id = 20; in main() local 14 type_id = 40; in main() 19 ID generic_type_id = type_id; in main() 24 generic_type_id = type_id; in main() 29 type_id = generic_type_id; in main() 35 a = type_id; in main() 43 type_id = TypeID(10); in main()
|
/third_party/mindspore/tests/ut/cpp/tbe/ |
D | tbe_json_creator_test.cc | 64 builder.SetInputsDeviceType({kFloat32->type_id()}); in TEST_F() 65 builder.SetOutputsDeviceType({kFloat32->type_id()}); in TEST_F() 107 builder.SetInputsDeviceType({kFloat32->type_id(), kFloat32->type_id()}); in TEST_F() 108 builder.SetOutputsDeviceType({kFloat32->type_id()}); in TEST_F() 163 …builder.SetInputsDeviceType({kFloat16->type_id(), kFloat16->type_id(), kFloat16->type_id(), kFloat… in TEST_F() 164 kFloat16->type_id(), kFloat16->type_id()}); in TEST_F() 165 …builder.SetOutputsDeviceType({kFloat16->type_id(), kFloat16->type_id(), kFloat16->type_id(), kFloa… in TEST_F() 166 … kFloat16->type_id(), kFloat16->type_id(), kFloat16->type_id(), kFloat16->type_id()}); in TEST_F() 219 builder.SetInputsDeviceType({kFloat32->type_id(), kFloat32->type_id(), kFloat32->type_id()}); in TEST_F() 220 builder.SetOutputsDeviceType({kFloat32->type_id(), kFloat32->type_id(), kFloat32->type_id()}); in TEST_F() [all …]
|
/third_party/boost/libs/type_index/examples/ |
D | user_defined_typeinfo.cpp | 37 cl1 = my_type_index::type_id<my_class>(), in main() 38 st1 = my_type_index::type_id<my_struct>(), in main() 39 st2 = my_type_index::type_id<my_struct>(), in main() 40 vec = my_type_index::type_id<my_classes>() in main() 56 assert(my_type_index::type_id<my_struct>() == my_type_index::type_id_runtime(reference)); in main() 63 boost::typeindex::type_index worldwide = boost::typeindex::type_id<my_classes>(); in main() 65 assert(worldwide == my_type_index::type_id<my_classes>()); in main()
|
/third_party/boost/boost/python/ |
D | opaque_pointer_converter.hpp | 47 type_object.tp_name = const_cast<char*>(type_id<Pointee*>().name()); in opaque() 89 converter::registry::query (type_id<Pointee*>()); in register_self() 94 converter::registry::insert(&extract, type_id<Pointee>(), &get_pytype); in register_self() 95 converter::registry::insert(&wrap, type_id<Pointee*>(), &get_pytype); in register_self() 97 converter::registry::insert(&extract, type_id<Pointee>()); in register_self() 98 converter::registry::insert(&wrap, type_id<Pointee*>()); in register_self() 176 inline type_info type_id<Pointee>() \ 181 inline type_info type_id<const volatile Pointee&>() \
|
/third_party/mindspore/mindspore/core/ir/dtype/ |
D | type.cc | 31 #define MS_TYPE2LABLE(type_id) #type_id argument 149 TypeId NormalizeTypeId(const TypeId type_id) { in NormalizeTypeId() argument 150 …if ((type_id == kNumberTypeInt) || (type_id == kNumberTypeInt8) || (type_id == kNumberTypeInt16) || in NormalizeTypeId() 151 (type_id == kNumberTypeInt32) || (type_id == kNumberTypeInt64)) { in NormalizeTypeId() 153 …} else if ((type_id == kNumberTypeFloat) || (type_id == kNumberTypeFloat16) || (type_id == kNumber… in NormalizeTypeId() 154 (type_id == kNumberTypeFloat64)) { in NormalizeTypeId() 157 return type_id; in NormalizeTypeId()
|