/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 110 type->AsInteger()->width())) { in Apply() 136 vector->element_type()->AsInteger()->width()), in Apply() 139 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 174 vector->element_type()->AsInteger()) { in Apply() 185 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 225 ->AsInteger() in Apply() 229 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 303 if (type->AsInteger() || in GetIntegerInstructions() 304 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 369 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 131 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 136 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 143 if (!type->AsInteger()) { in MaybeGetResultTypeId() 148 type->AsInteger()->width()); in MaybeGetResultTypeId() 174 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 197 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 228 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 234 operand_type->AsInteger() in MaybeGetResultTypeId() 281 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | transformation_add_bit_instruction_synonym.cpp | 54 ->AsInteger() in IsApplicable() 127 auto operand_sign = operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 131 ->AsInteger() in IsInstructionSupported() 143 auto first_operand_sign = first_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 150 auto second_operand_sign = second_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 154 ->AsInteger() in IsInstructionSupported() 181 ->AsInteger() in GetRequiredFreshIdCount() 199 ->AsInteger() in AddOpBitwiseOrOpNotSynonym()
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 166 constant->type()->AsInteger()->width(), in Apply() 167 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 189 ->AsInteger() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 179 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 180 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 182 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 183 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 221 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 222 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 224 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 225 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 327 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 329 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
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()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 114 type->AsInteger()->width())) { in Apply() 140 vector->element_type()->AsInteger()->width()), in Apply() 143 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 178 vector->element_type()->AsInteger()) { in Apply() 189 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 229 ->AsInteger() in Apply() 233 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 307 if (type->AsInteger() || in GetIntegerInstructions() 308 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 373 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 132 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 137 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 144 if (!type->AsInteger()) { in MaybeGetResultTypeId() 149 type->AsInteger()->width()); in MaybeGetResultTypeId() 175 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 198 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 229 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 231 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 235 operand_type->AsInteger() in MaybeGetResultTypeId() 282 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 166 constant->type()->AsInteger()->width(), in Apply() 167 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 189 ->AsInteger() in Apply()
|
D | transformation_add_bit_instruction_synonym.cpp | 54 ->AsInteger() in IsApplicable() 127 auto operand_sign = operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 131 ->AsInteger() in IsInstructionSupported() 143 auto first_operand_sign = first_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 150 auto second_operand_sign = second_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 154 ->AsInteger() in IsInstructionSupported() 181 ->AsInteger() in GetRequiredFreshIdCount() 199 ->AsInteger() in AddOpBitwiseOrOpNotSynonym()
|
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 | 179 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 180 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 182 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 183 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 222 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 223 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 225 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 226 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 329 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 331 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 114 type->AsInteger()->width())) { in Apply() 140 vector->element_type()->AsInteger()->width()), in Apply() 143 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 178 vector->element_type()->AsInteger()) { in Apply() 189 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 229 ->AsInteger() in Apply() 233 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 307 if (type->AsInteger() || in GetIntegerInstructions() 308 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 373 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 132 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 137 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 144 if (!type->AsInteger()) { in MaybeGetResultTypeId() 149 type->AsInteger()->width()); in MaybeGetResultTypeId() 175 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 198 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 229 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 231 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 235 operand_type->AsInteger() in MaybeGetResultTypeId() 282 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 166 constant->type()->AsInteger()->width(), in Apply() 167 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 189 ->AsInteger() in Apply()
|
D | transformation_add_bit_instruction_synonym.cpp | 54 ->AsInteger() in IsApplicable() 127 auto operand_sign = operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 131 ->AsInteger() in IsInstructionSupported() 143 auto first_operand_sign = first_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 150 auto second_operand_sign = second_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 154 ->AsInteger() in IsInstructionSupported() 181 ->AsInteger() in GetRequiredFreshIdCount() 199 ->AsInteger() in AddOpBitwiseOrOpNotSynonym()
|
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 | 179 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 180 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 182 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 183 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 222 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 223 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 225 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 226 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 329 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 331 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.cpp | 59 assert(type()->AsInteger() != nullptr); in GetU32() 60 assert(type()->AsInteger()->width() == 32); in GetU32() 71 assert(type()->AsInteger() != nullptr); in GetU64() 72 assert(type()->AsInteger()->width() == 64); in GetU64() 83 assert(type()->AsInteger() != nullptr); in GetS32() 84 assert(type()->AsInteger()->width() == 32); in GetS32() 95 assert(type()->AsInteger() != nullptr); in GetS64() 96 assert(type()->AsInteger()->width() == 64); in GetS64() 107 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 126 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
D | graphics_robust_access_pass.cpp | 306 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 327 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 417 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 419 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 424 const auto width = count_constant->type()->AsInteger()->width(); in ClampIndicesForAccessChain() 512 ->AsInteger()) { in ClampIndicesForAccessChain() 625 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeUMinInst() 626 const auto ywidth = tm.GetType(y->type_id())->AsInteger()->width(); in MakeUMinInst() 649 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeSClampInst() 650 const auto minwidth = tm.GetType(min->type_id())->AsInteger()->width(); in MakeSClampInst() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.cpp | 59 assert(type()->AsInteger() != nullptr); in GetU32() 60 assert(type()->AsInteger()->width() == 32); in GetU32() 71 assert(type()->AsInteger() != nullptr); in GetU64() 72 assert(type()->AsInteger()->width() == 64); in GetU64() 83 assert(type()->AsInteger() != nullptr); in GetS32() 84 assert(type()->AsInteger()->width() == 32); in GetS32() 95 assert(type()->AsInteger() != nullptr); in GetS64() 96 assert(type()->AsInteger()->width() == 64); in GetS64() 107 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 126 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
D | graphics_robust_access_pass.cpp | 307 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 328 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 418 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 420 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 425 const auto width = count_constant->type()->AsInteger()->width(); in ClampIndicesForAccessChain() 513 ->AsInteger()) { in ClampIndicesForAccessChain() 626 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeUMinInst() 627 const auto ywidth = tm.GetType(y->type_id())->AsInteger()->width(); in MakeUMinInst() 650 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeSClampInst() 651 const auto minwidth = tm.GetType(min->type_id())->AsInteger()->width(); in MakeSClampInst() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | constants.cpp | 58 assert(type()->AsInteger() != nullptr); in GetU32() 59 assert(type()->AsInteger()->width() == 32); in GetU32() 70 assert(type()->AsInteger() != nullptr); in GetU64() 71 assert(type()->AsInteger()->width() == 64); in GetU64() 82 assert(type()->AsInteger() != nullptr); in GetS32() 83 assert(type()->AsInteger()->width() == 32); in GetS32() 94 assert(type()->AsInteger() != nullptr); in GetS64() 95 assert(type()->AsInteger()->width() == 64); in GetS64() 106 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 125 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
D | graphics_robust_access_pass.cpp | 301 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 322 type_mgr->GetRegisteredType(&signed_type_for_query)->AsInteger(); in ClampIndicesForAccessChain() 412 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 414 type_mgr->GetType(count_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 419 const auto width = count_constant->type()->AsInteger()->width(); in ClampIndicesForAccessChain() 507 ->AsInteger()) { in ClampIndicesForAccessChain() 620 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeUMinInst() 621 const auto ywidth = tm.GetType(y->type_id())->AsInteger()->width(); in MakeUMinInst() 644 const auto xwidth = tm.GetType(x->type_id())->AsInteger()->width(); in MakeSClampInst() 645 const auto minwidth = tm.GetType(min->type_id())->AsInteger()->width(); in MakeSClampInst() [all …]
|
/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime.Tests/ |
D | Antlr.Runtime.Tools.Tests.pas | 587 Locals.AsInteger['x'] := 2; 588 Locals.AsInteger['X'] := 3; 589 CheckEquals(2, Locals.AsInteger['x']); 590 CheckEquals(3, Locals.AsInteger['X']); 591 CheckEquals(0, Locals.AsInteger['y']); 592 Locals.AsInteger['X'] := Locals.AsInteger['x'] * 2; 593 CheckEquals(4, Locals.AsInteger['X']);
|