/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 176 assert(vector->element_type()->AsFloat() && in Apply() 179 vector->element_type()->AsFloat()->width(), in Apply() 187 assert(operand_type->AsFloat() && in Apply() 189 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply() 316 if (type->AsFloat() || in GetFloatInstructions() 317 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 368 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() 372 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth() 392 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions() 400 : type->AsFloat()->width())) { in GetNumericalInstructions()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 110 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 128 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 141 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 163 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 137 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair() 138 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair() 140 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair() 144 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair() 183 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair() 187 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair() 225 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair() 229 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 322 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
|
D | transformation_add_synonym.cpp | 168 vector->element_type()->AsFloat(); in IsInstructionValid() 171 return type->AsInteger() || type->AsFloat(); in IsInstructionValid() 289 vector->element_type()->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u; in MaybeGetConstantId() 303 {synonym_type->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u}, in MaybeGetConstantId()
|
D | transformation_add_type_vector.cpp | 43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable() 53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 177 assert(vector->element_type()->AsFloat() && in Apply() 180 vector->element_type()->AsFloat()->width(), in Apply() 188 assert(operand_type->AsFloat() && in Apply() 190 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply() 317 if (type->AsFloat() || in GetFloatInstructions() 318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 369 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() 373 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth() 393 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions() 401 : type->AsFloat()->width())) { in GetNumericalInstructions()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 111 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 129 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 142 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 164 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 138 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair() 139 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair() 141 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair() 145 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair() 184 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair() 188 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair() 226 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair() 230 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 323 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 177 assert(vector->element_type()->AsFloat() && in Apply() 180 vector->element_type()->AsFloat()->width(), in Apply() 188 assert(operand_type->AsFloat() && in Apply() 190 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply() 317 if (type->AsFloat() || in GetFloatInstructions() 318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions() 369 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() 373 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth() 393 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions() 401 : type->AsFloat()->width())) { in GetNumericalInstructions()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 111 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 129 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 142 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 164 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 138 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair() 139 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair() 141 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair() 145 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair() 184 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair() 188 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair() 226 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair() 230 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 323 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
|
D | transformation_add_type_vector.cpp | 43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable() 53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/ |
D | tflite_custom_parser.cc | 84 …prim->set_scale({attr_map["h_scale"].AsFloat(), attr_map["w_scale"].AsFloat(), attr_map["x_scale"]… in DetectPostProcess() 85 attr_map["y_scale"].AsFloat()}); in DetectPostProcess() 86 prim->set_nms_iou_threshold(attr_map["nms_iou_threshold"].AsFloat()); in DetectPostProcess() 87 prim->set_nms_score_threshold(attr_map["nms_score_threshold"].AsFloat()); in DetectPostProcess() 127 prim->set_freq_upper_limit(attr_map["upper_frequency_limit"].AsFloat()); in Mfcc() 128 prim->set_freq_lower_limit(attr_map["lower_frequency_limit"].AsFloat()); in Mfcc()
|
/third_party/spirv-tools/source/fuzz/fact_manager/ |
D | constant_uniform_facts.cpp | 40 type->AsFloat() && in GetConstantId() 43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId() 206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact() 209 auto width = final_element_type->AsFloat() in MaybeAddFact() 210 ? final_element_type->AsFloat()->width() in MaybeAddFact() 213 if (final_element_type->AsFloat() && in MaybeAddFact()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/fact_manager/ |
D | constant_uniform_facts.cpp | 40 type->AsFloat() && in GetConstantId() 43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId() 206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact() 209 auto width = final_element_type->AsFloat() in MaybeAddFact() 210 ? final_element_type->AsFloat()->width() in MaybeAddFact() 213 if (final_element_type->AsFloat() && in MaybeAddFact()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/ |
D | constant_uniform_facts.cpp | 40 type->AsFloat() && in GetConstantId() 43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId() 206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact() 209 auto width = final_element_type->AsFloat() in MaybeAddFact() 210 ? final_element_type->AsFloat()->width() in MaybeAddFact() 213 if (final_element_type->AsFloat() && in MaybeAddFact()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | constants.cpp | 27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat() 38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble() 49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble() 50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble() 53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble() 253 } else if (auto* ft = type->AsFloat()) { in CreateConstant() 262 c->type()->AsFloat()) { in CreateConstant() 397 if (const auto* float_type = element_type->AsFloat()) in GetNumericVectorConstantWithWords()
|
D | const_folding_rules.cpp | 27 if (type->AsFloat()) { in HasFloatingPoint() 30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint() 160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() 375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp() 406 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp() 435 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar() 463 result_type_in_macro->AsFloat(); \ 517 const analysis::Float* float_type = a->type()->AsFloat(); \ 585 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants() 586 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants() [all …]
|
/third_party/spirv-tools/source/opt/ |
D | constants.cpp | 27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat() 38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble() 49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble() 50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble() 53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble() 252 } else if (auto* ft = type->AsFloat()) { in CreateConstant() 261 c->type()->AsFloat()) { in CreateConstant()
|
D | const_folding_rules.cpp | 27 if (type->AsFloat()) { in HasFloatingPoint() 30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint() 160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() 375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp() 406 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp() 435 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar() 463 result_type_in_macro->AsFloat(); \ 517 const analysis::Float* float_type = a->type()->AsFloat(); \ 585 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants() 586 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.cpp | 27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat() 38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble() 49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble() 50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble() 53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble() 253 } else if (auto* ft = type->AsFloat()) { in CreateConstant() 262 c->type()->AsFloat()) { in CreateConstant() 397 if (const auto* float_type = element_type->AsFloat()) in GetNumericVectorConstantWithWords()
|
D | const_folding_rules.cpp | 29 const analysis::Float* float_type = type->AsFloat(); in GetNan() 49 const analysis::Float* float_type = type->AsFloat(); in GetInf() 66 if (type->AsFloat()) { in HasFloatingPoint() 69 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint() 80 const analysis::Float* float_type = result_type->AsFloat(); in negateFPConst() 216 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() 431 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp() 462 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp() 491 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar() 519 result_type_in_macro->AsFloat(); \ [all …]
|
/third_party/spirv-tools/test/fuzz/ |
D | transformation_add_type_float_test.cpp | 110 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST() 118 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST() 126 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/ |
D | transformation_add_type_float_test.cpp | 124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST() 132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST() 140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
|
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/ |
D | transformation_add_type_float_test.cpp | 124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST() 132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST() 140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
|