/third_party/spirv-tools/source/fuzz/ |
H A D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 47 // |message_.result_id| must refer to a suitable OpIAdd, OpISub or OpIMul in IsApplicable() 103 case spv::Op::OpIAdd: in Apply() 169 // Only instructions OpIAdd, OpISub, OpIMul are supported. in IsInstructionSuitable() 171 case spv::Op::OpIAdd: in IsInstructionSuitable() 200 // In case of OpIAdd and OpISub, the type must be unsigned. in IsInstructionSuitable() 204 case spv::Op::OpIAdd: in IsInstructionSuitable() 206 // In case of OpIAdd and OpISub if the operand is a vector, the component in IsInstructionSuitable()
|
H A D | fuzzer_pass_add_equation_instructions.cpp | 67 // inserting before an OpVariable or OpPhi instruction. We use OpIAdd in Apply() 71 if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpIAdd, in Apply() 93 spv::Op::OpIAdd, spv::Op::OpISub, spv::Op::OpLogicalNot, in Apply() 204 case spv::Op::OpIAdd: in Apply()
|
H A D | fuzzer_pass_add_synonyms.cpp | 44 // Skip |inst_it| if we can't insert anything above it. OpIAdd is just in Apply() 47 if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpIAdd, in Apply()
|
H A D | transformation_add_synonym.cpp | 83 // |message_.insert_before| instruction. We use OpIAdd to represent some in IsApplicable() 85 if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpIAdd, in IsApplicable() 229 opcode = is_integral ? spv::Op::OpIAdd : spv::Op::OpFAdd; in MakeSynonymousInstruction()
|
H A D | transformation_add_no_contraction_decoration.cpp | 61 case spv::Op::OpIAdd: in IsArithmetic()
|
H A D | transformation_add_relaxed_decoration.cpp | 85 case spv::Op::OpIAdd: in IsNumeric()
|
H A D | transformation_wrap_vector_synonym.cpp | 187 case spv::Op::OpIAdd: in IsInstructionSupported()
|
H A D | transformation_equation_instruction.cpp | 214 case spv::Op::OpIAdd: in MaybeGetResultTypeId()
|
/third_party/spirv-tools/test/fuzz/ |
H A D | available_instructions_test.cpp | 96 %77 = OpIAdd %6 %76 %46 in TEST() 101 %79 = OpIAdd %6 %78 %46 in TEST() 119 %37 = OpIAdd %6 %30 %36 in TEST() 130 %47 = OpIAdd %6 %45 %46 in TEST() 251 return inst->opcode() == spv::Op::OpIAdd; in TEST() 258 ASSERT_EQ(spv::Op::OpIAdd, available[0]->opcode()); in TEST() 265 ASSERT_EQ(spv::Op::OpIAdd, available[0]->opcode()); in TEST() 272 ASSERT_EQ(spv::Op::OpIAdd, available[0]->opcode()); in TEST()
|
H A D | transformation_swap_commutable_operands_test.cpp | 80 %22 = OpIAdd %6 %19 %21 in TEST() 122 MakeInstructionDescriptor(22, spv::Op::OpIAdd, 0); in TEST() 207 instructionDescriptor = MakeInstructionDescriptor(24, spv::Op::OpIAdd, 0); in TEST() 230 instructionDescriptor = MakeInstructionDescriptor(11, spv::Op::OpIAdd, 100); in TEST() 310 %22 = OpIAdd %6 %19 %21 in TEST() 351 MakeInstructionDescriptor(22, spv::Op::OpIAdd, 0); in TEST() 425 %22 = OpIAdd %6 %21 %19 in TEST()
|
H A D | transformation_equation_instruction_test.cpp | 278 // Bad: too many arguments to OpIAdd. in TEST() 280 14, spv::Op::OpIAdd, {15, 16, 16}, return_instruction) in TEST() 282 // Bad: boolean argument to OpIAdd. in TEST() 283 ASSERT_FALSE(TransformationEquationInstruction(14, spv::Op::OpIAdd, {15, 32}, in TEST() 286 // Bad: type as argument to OpIAdd. in TEST() 287 ASSERT_FALSE(TransformationEquationInstruction(14, spv::Op::OpIAdd, {33, 16}, in TEST() 291 ASSERT_FALSE(TransformationEquationInstruction(14, spv::Op::OpIAdd, {15, 31}, in TEST() 295 ASSERT_FALSE(TransformationEquationInstruction(14, spv::Op::OpIAdd, {31, 15}, in TEST() 300 14, spv::Op::OpIAdd, {15, 16}, return_instruction); in TEST() 368 %14 = OpIAdd in TEST() [all...] |
H A D | transformation_replace_irrelevant_id_test.cpp | 60 %24 = OpIAdd %9 %20 %23 87 MakeInstructionDescriptor(24, spv::Op::OpIAdd, 0); in TEST() 137 MakeInstructionDescriptor(24, spv::Op::OpIAdd, 0); in TEST() 183 %24 = OpIAdd %9 %20 %22 in TEST()
|
H A D | transformation_replace_constant_with_uniform_test.cpp | 95 %12 = OpIAdd %6 %10 %11 in TEST() 98 %15 = OpIAdd %6 %14 %13 in TEST() 127 11, MakeInstructionDescriptor(12, spv::Op::OpIAdd, 0), 1); in TEST() 129 14, MakeInstructionDescriptor(15, spv::Op::OpIAdd, 0), 0); in TEST() 176 9, MakeInstructionDescriptor(15, spv::Op::OpIAdd, 0), 0); in TEST() 233 %12 = OpIAdd %6 %10 %11 in TEST() 236 %15 = OpIAdd %6 %14 %13 in TEST() 291 %12 = OpIAdd %6 %10 %103 in TEST() 294 %15 = OpIAdd %6 %14 %13 in TEST() 349 %12 = OpIAdd in TEST() [all...] |
H A D | transformation_move_instruction_down_test.cpp | 45 %10 = OpIAdd %6 %9 %9 in TEST() 56 %22 = OpIAdd %6 %15 %15 in TEST() 57 %21 = OpIAdd %6 %15 %15 in TEST() 99 MakeInstructionDescriptor(21, spv::Op::OpIAdd, 0)) in TEST() 109 MakeInstructionDescriptor(10, spv::Op::OpIAdd, 0)) in TEST() 124 MakeInstructionDescriptor(22, spv::Op::OpIAdd, 0)); in TEST() 151 %10 = OpIAdd %6 %9 %9 in TEST() 162 %21 = OpIAdd %6 %15 %15 in TEST() 163 %22 = OpIAdd %6 %15 %15 in TEST()
|
H A D | transformation_adjust_branch_weights_test.cpp | 88 %49 = OpIAdd %15 %59 %48 in TEST() 167 instruction_descriptor = MakeInstructionDescriptor(49, spv::Op::OpIAdd, 0); in TEST() 236 %49 = OpIAdd %15 %59 %48 in TEST() 330 %49 = OpIAdd %15 %59 %48 in TEST()
|
H A D | transformation_permute_phi_operands_test.cpp | 54 %20 = OpIAdd %6 %19 %18 in TEST() 63 %30 = OpIAdd %6 %25 %25 in TEST() 135 ASSERT_EQ(spv::Op::OpIAdd, inst->opcode()); in TEST() 178 %20 = OpIAdd %6 %19 %18 in TEST() 187 %30 = OpIAdd %6 %25 %25 in TEST()
|
H A D | transformation_replace_id_with_synonym_test.cpp | 161 %300 = OpIAdd %6 %15 %15 168 %71 = OpIAdd %6 %84 %26 171 %74 = OpIAdd %6 %84 %64 234 15, MakeInstructionDescriptor(300, spv::Op::OpIAdd, 0), 0), in TEST() 456 %300 = OpIAdd %6 %15 %15 in TEST() 463 %71 = OpIAdd %6 %84 %26 in TEST() 466 %74 = OpIAdd %6 %84 %64 in TEST() 1514 %16 = OpIAdd %8 %10 %10 1546 // Legal because OpIAdd does not care about the signedness of the operands 1548 MakeIdUseDescriptor(10, MakeInstructionDescriptor(16, spv::Op::OpIAdd, [all...] |
H A D | transformation_composite_construct_test.cpp | 617 %29 = OpIAdd %8 %28 %18 in TEST() 759 %29 = OpIAdd %8 %28 %18 in TEST() 907 %66 = OpIAdd %13 %64 %65 in TEST() 963 %129 = OpIAdd %50 %126 %128 in TEST() 1079 MakeInstructionDescriptor(66, spv::Op::OpIAdd, 0), 205); in TEST() 1083 MakeInstructionDescriptor(66, spv::Op::OpIAdd, 0), 205); in TEST() 1342 %66 = OpIAdd %13 %64 %65 in TEST() 1405 %129 = OpIAdd %50 %126 %128 in TEST()
|
/third_party/spirv-tools/test/fuzz/fact_manager/ |
H A D | data_synonym_and_id_equation_facts_test.cpp | 361 %14 = OpIAdd %6 %15 %16 in TEST() 383 fact_manager.AddFactIdEquation(14, spv::Op::OpIAdd, {15, 16}); in TEST() 421 %17 = OpIAdd %6 %14 %16 ; ==> synonymous(%17, %15) in TEST() 422 %18 = OpIAdd %6 %16 %14 ; ==> synonymous(%17, %18, %15) in TEST() 442 fact_manager.AddFactIdEquation(17, spv::Op::OpIAdd, {14, 16}); in TEST() 447 fact_manager.AddFactIdEquation(18, spv::Op::OpIAdd, {16, 14}); in TEST() 632 %17 = OpIAdd %6 %114 %16 ; ==> synonymous(%17, %15) in TEST() 633 %18 = OpIAdd %6 %16 %114 ; ==> synonymous(%17, %18, %15) in TEST() 657 fact_manager.AddFactIdEquation(17, spv::Op::OpIAdd, {114, 16}); in TEST() 662 fact_manager.AddFactIdEquation(18, spv::Op::OpIAdd, {1 in TEST() [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | folding_rules.cpp | 465 op_inst->opcode() == spv::Op::OpIAdd || in MergeNegateAddSubArithmetic() 472 (op_inst->opcode() == spv::Op::OpIAdd); in MergeNegateAddSubArithmetic() 600 case spv::Op::OpIAdd: 1026 inst->opcode() == spv::Op::OpIAdd); 1085 opcode = HasFloatingPoint(type) ? spv::Op::OpFAdd : spv::Op::OpIAdd; 1110 inst->opcode() == spv::Op::OpIAdd); 1127 other_inst->opcode() == spv::Op::OpIAdd) { 1158 inst->opcode() == spv::Op::OpIAdd); 1235 other_inst->opcode() == spv::Op::OpIAdd) { 1314 merge_op = uses_float ? spv::Op::OpFAdd : spv::Op::OpIAdd; [all...] |
H A D | fold.cpp | 74 case spv::Op::OpIAdd: in BinaryOperate() 580 case spv::Op::OpIAdd: in IsFoldableOpcode()
|
H A D | scalar_analysis.cpp | 180 case spv::Op::OpIAdd: { in AnalyzeInstruction() 228 assert((inst->opcode() == spv::Op::OpIAdd || in AnalyzeAddOp() 230 "Add node must be created from a OpIAdd or OpISub instruction"); in AnalyzeAddOp()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderSpec.cpp | 27 case spv::OpIAdd: in EvalSpecConstantOp() 223 case spv::OpIAdd: in EvalSpecConstantBinaryOp()
|
/third_party/spirv-tools/source/fuzz/fact_manager/ |
H A D | data_synonym_and_id_equation_facts.cpp | 170 case spv::Op::OpIAdd: { in AddEquationFactRecursive() 197 if (equation.opcode == spv::Op::OpIAdd) { in AddEquationFactRecursive() 223 if (equation.opcode == spv::Op::OpIAdd) { in AddEquationFactRecursive()
|
/third_party/spirv-tools/source/ |
H A D | opcode.cpp | 558 case spv::Op::OpIAdd: in spvOpcodeIsScalarizable() 651 case spv::Op::OpIAdd: in spvOpcodeIsCommutativeBinaryOperator()
|