/third_party/libphonenumber/cpp/src/phonenumbers/base/memory/ |
H A D | scoped_ptr.h | 218 typedef T element_type; typedef in i18n::phonenumbers::scoped_ptr 225 explicit scoped_ptr(element_type* p) : impl_(p) { } in scoped_ptr() 228 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } in scoped_ptr() 264 void reset(element_type* p = NULL) { impl_.reset(p); } in reset() 268 element_type& operator*() const { in operator *() 272 element_type* operator->() const { in operator ->() 276 element_type* get() const { return impl_.get(); } in get() 282 // Allow scoped_ptr<element_type> to be used in boolean expressions, but not 285 typedef scoped_ptr_impl<element_type, deleter_type> scoped_ptr::*Testable; 293 bool operator==(const element_type* 327 typedef T element_type; global() typedef in i18n::phonenumbers::scoped_ptr [all...] |
/third_party/gn/src/base/ |
H A D | scoped_generic.h | 69 typedef T element_type; typedef in base::ScopedGeneric 76 explicit ScopedGeneric(const element_type& value) : data_(value) {} in ScopedGeneric() 79 ScopedGeneric(const element_type& value, const traits_type& traits) in ScopedGeneric() 97 void reset(const element_type& value = traits_type::InvalidValue()) { in reset() 116 [[nodiscard]] element_type release() { in release() 117 element_type old_generic = data_.generic; in release() 124 [[nodiscard]] element_type* receive() { in receive() 129 const element_type& get() const { return data_.generic; } in get() 135 bool operator==(const element_type& value) const { in operator ==() 138 bool operator!=(const element_type in operator ==() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | fuzzer_pass_add_equation_instructions.cpp | 106 type = vector_type->element_type(); in Apply() 136 vector->element_type()->AsInteger()->width()), in Apply() 174 vector->element_type()->AsInteger()) { in Apply() 177 assert(vector->element_type()->AsFloat() && in Apply() 180 vector->element_type()->AsFloat()->width(), in Apply() 224 ->element_type() in Apply() 304 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 332 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions() 367 type = type->AsVector()->element_type(); in RestrictToElementBitWidth() [all...] |
H A D | fuzzer_pass_add_composite_inserts.cpp | 198 return ContainsPointer(*type.AsArray()->element_type()); in ContainsPointer() 200 return ContainsPointer(*type.AsMatrix()->element_type()); in ContainsPointer() 202 return ContainsPointer(*type.AsVector()->element_type()); in ContainsPointer() 206 [](const opt::analysis::Type* element_type) { in ContainsPointer() 207 return ContainsPointer(*element_type); in ContainsPointer() 224 [](const opt::analysis::Type* element_type) { in ContainsRuntimeArray() 225 return ContainsRuntimeArray(*element_type); in ContainsRuntimeArray()
|
H A D | transformation_composite_construct.cpp | 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 236 auto element_type = vector_type.element_type(); in ComponentsForVectorConstructionAreOK() local 246 if (component_type == element_type) { in ComponentsForVectorConstructionAreOK() 249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK() 315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts() 316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
|
H A D | transformation_equation_instruction.cpp | 131 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 136 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 174 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 177 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId() 230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 265 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId() 283 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
|
H A D | transformation_vector_shuffle.cpp | 78 if (vector1_type->AsVector()->element_type() != in IsApplicable() 79 vector2_type->AsVector()->element_type()) { in IsApplicable() 94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable() 129 *GetVectorType(ir_context, message_.vector1())->element_type()); in Apply() 156 opt::IRContext* ir_context, const opt::analysis::Type& element_type) const { in GetResultTypeId() 158 &element_type, static_cast<uint32_t>(message_.component_size())); in GetResultTypeId()
|
H A D | transformation_add_synonym.cpp | 168 return vector->element_type()->AsInteger() || in IsInstructionValid() 169 vector->element_type()->AsFloat(); in IsInstructionValid() 181 return vector->element_type()->AsInteger(); in IsInstructionValid() 195 return (type->AsVector() && type->AsVector()->element_type()->AsBool()) || in IsInstructionValid() 217 synonym_type->AsVector()->element_type()->AsInteger()) || in MakeSynonymousInstruction() 288 ir_context->get_type_mgr()->GetId(vector->element_type()); in MaybeGetConstantId() 292 vector->element_type()->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u; in MaybeGetConstantId()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | fuzzer_pass_add_equation_instructions.cpp | 106 type = vector_type->element_type(); in Apply() 136 vector->element_type()->AsInteger()->width()), in Apply() 174 vector->element_type()->AsInteger()) { in Apply() 177 assert(vector->element_type()->AsFloat() && in Apply() 180 vector->element_type()->AsFloat()->width(), in Apply() 224 ->element_type() in Apply() 304 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 332 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions() 367 type = type->AsVector()->element_type(); in RestrictToElementBitWidth() [all...] |
H A D | fuzzer_pass_add_composite_inserts.cpp | 198 return ContainsPointer(*type.AsArray()->element_type()); in ContainsPointer() 200 return ContainsPointer(*type.AsMatrix()->element_type()); in ContainsPointer() 202 return ContainsPointer(*type.AsVector()->element_type()); in ContainsPointer() 206 [](const opt::analysis::Type* element_type) { in ContainsPointer() 207 return ContainsPointer(*element_type); in ContainsPointer() 224 [](const opt::analysis::Type* element_type) { in ContainsRuntimeArray() 225 return ContainsRuntimeArray(*element_type); in ContainsRuntimeArray()
|
H A D | transformation_composite_construct.cpp | 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 236 auto element_type = vector_type.element_type(); in ComponentsForVectorConstructionAreOK() local 246 if (component_type == element_type) { in ComponentsForVectorConstructionAreOK() 249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK() 315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts() 316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
|
H A D | transformation_equation_instruction.cpp | 131 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 136 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 174 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 177 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId() 230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 265 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId() 283 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
|
H A D | transformation_vector_shuffle.cpp | 78 if (vector1_type->AsVector()->element_type() != in IsApplicable() 79 vector2_type->AsVector()->element_type()) { in IsApplicable() 94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable() 129 *GetVectorType(ir_context, message_.vector1())->element_type()); in Apply() 156 opt::IRContext* ir_context, const opt::analysis::Type& element_type) const { in GetResultTypeId() 158 &element_type, static_cast<uint32_t>(message_.component_size())); in GetResultTypeId()
|
H A D | transformation_add_synonym.cpp | 168 return vector->element_type()->AsInteger() || in IsInstructionValid() 169 vector->element_type()->AsFloat(); in IsInstructionValid() 181 return vector->element_type()->AsInteger(); in IsInstructionValid() 195 return (type->AsVector() && type->AsVector()->element_type()->AsBool()) || in IsInstructionValid() 217 synonym_type->AsVector()->element_type()->AsInteger()) || in MakeSynonymousInstruction() 288 ir_context->get_type_mgr()->GetId(vector->element_type()); in MaybeGetConstantId() 292 vector->element_type()->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u; in MaybeGetConstantId()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | fuzzer_pass_add_equation_instructions.cpp | 110 type = vector_type->element_type(); in Apply() 140 vector->element_type()->AsInteger()->width()), in Apply() 178 vector->element_type()->AsInteger()) { in Apply() 181 assert(vector->element_type()->AsFloat() && in Apply() 184 vector->element_type()->AsFloat()->width(), in Apply() 228 ->element_type() in Apply() 308 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 322 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 336 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions() 371 type = type->AsVector()->element_type(); in RestrictToElementBitWidth() [all...] |
H A D | fuzzer_pass_add_composite_inserts.cpp | 199 return ContainsPointer(*type.AsArray()->element_type()); in ContainsPointer() 201 return ContainsPointer(*type.AsMatrix()->element_type()); in ContainsPointer() 203 return ContainsPointer(*type.AsVector()->element_type()); in ContainsPointer() 207 [](const opt::analysis::Type* element_type) { in ContainsPointer() 208 return ContainsPointer(*element_type); in ContainsPointer() 225 [](const opt::analysis::Type* element_type) { in ContainsRuntimeArray() 226 return ContainsRuntimeArray(*element_type); in ContainsRuntimeArray()
|
H A D | transformation_composite_construct.cpp | 168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK() 195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK() 236 auto element_type = vector_type.element_type(); in ComponentsForVectorConstructionAreOK() local 246 if (component_type == element_type) { in ComponentsForVectorConstructionAreOK() 249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK() 315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts() 316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
|
H A D | transformation_equation_instruction.cpp | 132 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 137 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 175 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 178 } else if (const auto* float_type = vector->element_type()->AsFloat()) { in MaybeGetResultTypeId() 231 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 266 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId() 284 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
|
H A D | transformation_vector_shuffle.cpp | 78 if (vector1_type->AsVector()->element_type() != in IsApplicable() 79 vector2_type->AsVector()->element_type()) { in IsApplicable() 94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable() 129 *GetVectorType(ir_context, message_.vector1())->element_type()); in Apply() 156 opt::IRContext* ir_context, const opt::analysis::Type& element_type) const { in GetResultTypeId() 158 &element_type, static_cast<uint32_t>(message_.component_size())); in GetResultTypeId()
|
/third_party/spirv-tools/source/opt/ |
H A D | constants.cpp | 397 const Type* element_type = type->AsVector()->element_type(); in GetNullCompositeConstant() local 398 const uint32_t null_id = GetNullConstId(element_type); in GetNullCompositeConstant() 404 const Type* element_type = type->AsMatrix()->element_type(); in GetNullCompositeConstant() local 405 const uint32_t null_id = GetNullConstId(element_type); in GetNullCompositeConstant() 414 const Type* element_type = type->AsArray()->element_type(); in GetNullCompositeConstant() local 415 const uint32_t null_id = GetNullConstId(element_type); in GetNullCompositeConstant() 432 const auto* element_type in GetNumericVectorConstantWithWords() local 539 const analysis::Type* element_type = vector_type->element_type(); GetVectorComponents() local [all...] |
H A D | type_manager.cpp | 254 uint32_t subtype = GetTypeInstruction(type->AsVector()->element_type()); in GetTypeInstruction() 267 uint32_t subtype = GetTypeInstruction(type->AsMatrix()->element_type()); in GetTypeInstruction() 315 uint32_t subtype = GetTypeInstruction(type->AsArray()->element_type()); in GetTypeInstruction() 328 GetTypeInstruction(type->AsRuntimeArray()->element_type()); in GetTypeInstruction() 552 const Type* ele_ty = vec_ty->element_type(); in RebuildType() 559 const Type* ele_ty = mat_ty->element_type(); in RebuildType() 583 MakeUnique<Array>(array_ty->element_type(), array_ty->length_info()); in RebuildType() 588 const Type* ele_ty = array_ty->element_type(); in RebuildType() 960 parent_type = array_type->element_type(); in GetMemberType() 963 parent_type = runtime_array_type->element_type(); in GetMemberType() 978 const ForwardPointer* element_type = ReplaceForwardPointers() local 985 const ForwardPointer* element_type = ReplaceForwardPointers() local 1039 const Type* element_type = type->AsArray()->element_type(); ReplaceType() local 1045 const Type* element_type = type->AsRuntimeArray()->element_type(); ReplaceType() local [all...] |
H A D | liveness.cpp | 90 auto comp_type = arr_type->element_type(); in GetLocSize() 107 auto comp_type = mat_type->element_type(); in GetLocSize() 112 auto comp_type = vec_type->element_type(); in GetLocSize() 129 if (arr_type) return arr_type->element_type(); in GetComponentType() 133 if (mat_type) return mat_type->element_type(); in GetComponentType() 136 return vec_type->element_type(); in GetComponentType() 142 if (arr_type) return index * GetLocSize(arr_type->element_type()); in GetLocOffset() 155 if (mat_type) return index * GetLocSize(mat_type->element_type()); in GetLocOffset() 158 auto comp_type = vec_type->element_type(); in GetLocOffset() 189 *curr_type = arr_type->element_type(); in AnalyzeAccessChainLoc() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | type_manager.cpp | 253 uint32_t subtype = GetTypeInstruction(type->AsVector()->element_type()); in GetTypeInstruction() 266 uint32_t subtype = GetTypeInstruction(type->AsMatrix()->element_type()); in GetTypeInstruction() 314 uint32_t subtype = GetTypeInstruction(type->AsArray()->element_type()); in GetTypeInstruction() 327 GetTypeInstruction(type->AsRuntimeArray()->element_type()); in GetTypeInstruction() 535 const Type* ele_ty = vec_ty->element_type(); in RebuildType() 542 const Type* ele_ty = mat_ty->element_type(); in RebuildType() 566 MakeUnique<Array>(array_ty->element_type(), array_ty->length_info()); in RebuildType() 571 const Type* ele_ty = array_ty->element_type(); in RebuildType() 927 parent_type = array_type->element_type(); in GetMemberType() 930 parent_type = runtime_array_type->element_type(); in GetMemberType() 945 const ForwardPointer* element_type = ReplaceForwardPointers() local 952 const ForwardPointer* element_type = ReplaceForwardPointers() local 1006 const Type* element_type = type->AsArray()->element_type(); ReplaceType() local 1012 const Type* element_type = type->AsRuntimeArray()->element_type(); ReplaceType() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | type_manager.cpp | 253 uint32_t subtype = GetTypeInstruction(type->AsVector()->element_type()); in GetTypeInstruction() 266 uint32_t subtype = GetTypeInstruction(type->AsMatrix()->element_type()); in GetTypeInstruction() 314 uint32_t subtype = GetTypeInstruction(type->AsArray()->element_type()); in GetTypeInstruction() 327 GetTypeInstruction(type->AsRuntimeArray()->element_type()); in GetTypeInstruction() 535 const Type* ele_ty = vec_ty->element_type(); in RebuildType() 542 const Type* ele_ty = mat_ty->element_type(); in RebuildType() 566 MakeUnique<Array>(array_ty->element_type(), array_ty->length_info()); in RebuildType() 571 const Type* ele_ty = array_ty->element_type(); in RebuildType() 927 parent_type = array_type->element_type(); in GetMemberType() 930 parent_type = runtime_array_type->element_type(); in GetMemberType() 945 const ForwardPointer* element_type = ReplaceForwardPointers() local 952 const ForwardPointer* element_type = ReplaceForwardPointers() local 1006 const Type* element_type = type->AsArray()->element_type(); ReplaceType() local 1012 const Type* element_type = type->AsRuntimeArray()->element_type(); ReplaceType() local [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | gl_nir_link_uniform_initializers.c | 44 const struct glsl_type *element_type = glsl_get_array_element(type); in set_opaque_binding() local 47 set_opaque_binding(data, element_type); in set_opaque_binding() 205 const struct glsl_type *element_type = glsl_get_array_element(type); in set_uniform_initializer() local 208 set_uniform_initializer(data, element_type, val->elements[i]); in set_uniform_initializer() 221 const struct glsl_type *element_type = glsl_get_array_element(type); in set_uniform_initializer() local 222 const enum glsl_base_type base_type = glsl_get_base_type(element_type); in set_uniform_initializer() 223 const unsigned int elements = glsl_get_components(element_type); in set_uniform_initializer() 231 element_type, in set_uniform_initializer()
|