Home
last modified time | relevance | path

Searched refs:insert_before (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/mesa3d/src/compiler/glsl/
Dlower_instructions.cpp239 i.insert_before(x); in ldexp_to_arith()
240 i.insert_before(assign(x, ir->operands[0])); in ldexp_to_arith()
241 i.insert_before(exp); in ldexp_to_arith()
242 i.insert_before(assign(exp, ir->operands[1])); in ldexp_to_arith()
245 i.insert_before(extracted_biased_exp); in ldexp_to_arith()
246 i.insert_before(assign(extracted_biased_exp, in ldexp_to_arith()
261 i.insert_before(resulting_biased_exp); in ldexp_to_arith()
262 i.insert_before(assign(resulting_biased_exp, in ldexp_to_arith()
266 i.insert_before(sign_mantissa); in ldexp_to_arith()
267 i.insert_before(assign(sign_mantissa, in ldexp_to_arith()
[all …]
Dlower_mat_op_to_vec.cpp152 base_ir->insert_before(assign); in do_mul_mat_mat()
182 base_ir->insert_before(assign); in do_mul_mat_vec()
206 base_ir->insert_before(column_assign); in do_mul_vec_mat()
227 base_ir->insert_before(column_assign); in do_mul_mat_scalar()
262 this->base_ir->insert_before(tmp_bvec); in do_equal_mat_mat()
276 this->base_ir->insert_before(assign); in do_equal_mat_mat()
291 base_ir->insert_before(assign); in do_equal_mat_mat()
349 base_ir->insert_before(var); in visit_leave()
356 base_ir->insert_before(assign); in visit_leave()
378 base_ir->insert_before(column_assign); in visit_leave()
[all …]
/third_party/spirv-tools/source/fuzz/
Dtransformation_store.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 SpvOpStore, insert_before)) { in IsApplicable()
82 SpvOpAtomicStore, insert_before)) { in IsApplicable()
90 ir_context->get_instr_block(insert_before)->id()) && in IsApplicable()
108 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
137 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
141 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
195 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
203 auto insert_before = in Apply() local
[all …]
Dtransformation_load.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 !fuzzerutil::CanInsertOpcodeBeforeInstruction(SpvOpLoad, insert_before)) { in IsApplicable()
83 SpvOpAtomicLoad, insert_before)) { in IsApplicable()
111 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
115 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
169 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
180 auto insert_before = in Apply() local
190 insert_before->InsertBefore(std::move(new_instruction)); in Apply()
195 ir_context->get_instr_block(insert_before)); in Apply()
[all …]
Dtransformation_function_call.cpp76 auto insert_before = in IsApplicable() local
78 if (!insert_before) { in IsApplicable()
82 insert_before)) { in IsApplicable()
86 auto block = ir_context->get_instr_block(insert_before); in IsApplicable()
141 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_store.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 SpvOpStore, insert_before)) { in IsApplicable()
82 SpvOpAtomicStore, insert_before)) { in IsApplicable()
90 ir_context->get_instr_block(insert_before)->id()) && in IsApplicable()
108 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
137 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
141 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
195 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
203 auto insert_before = in Apply() local
[all …]
Dtransformation_load.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 !fuzzerutil::CanInsertOpcodeBeforeInstruction(SpvOpLoad, insert_before)) { in IsApplicable()
83 SpvOpAtomicLoad, insert_before)) { in IsApplicable()
111 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
115 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
169 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
180 auto insert_before = in Apply() local
190 insert_before->InsertBefore(std::move(new_instruction)); in Apply()
195 ir_context->get_instr_block(insert_before)); in Apply()
[all …]
Dtransformation_function_call.cpp76 auto insert_before = in IsApplicable() local
78 if (!insert_before) { in IsApplicable()
82 insert_before)) { in IsApplicable()
86 auto block = ir_context->get_instr_block(insert_before); in IsApplicable()
141 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_store.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 SpvOpStore, insert_before)) { in IsApplicable()
82 SpvOpAtomicStore, insert_before)) { in IsApplicable()
90 ir_context->get_instr_block(insert_before)->id()) && in IsApplicable()
108 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
137 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
141 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
195 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
203 auto insert_before = in Apply() local
[all …]
Dtransformation_load.cpp70 auto insert_before = in IsApplicable() local
73 if (!insert_before) { in IsApplicable()
78 !fuzzerutil::CanInsertOpcodeBeforeInstruction(SpvOpLoad, insert_before)) { in IsApplicable()
83 SpvOpAtomicLoad, insert_before)) { in IsApplicable()
111 ir_context, insert_before, message_.memory_scope_id())) { in IsApplicable()
115 ir_context, insert_before, message_.memory_semantics_id())) { in IsApplicable()
169 return fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
180 auto insert_before = in Apply() local
190 insert_before->InsertBefore(std::move(new_instruction)); in Apply()
195 ir_context->get_instr_block(insert_before)); in Apply()
[all …]
Dtransformation_function_call.cpp76 auto insert_before = in IsApplicable() local
78 if (!insert_before) { in IsApplicable()
82 insert_before)) { in IsApplicable()
86 auto block = ir_context->get_instr_block(insert_before); in IsApplicable()
141 if (!fuzzerutil::IdIsAvailableBeforeInstruction(ir_context, insert_before, in IsApplicable()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dtransformation_mutate_pointer_test.cpp89 const auto insert_before = MakeInstructionDescriptor(26, SpvOpReturn, 0); in TEST() local
92 ASSERT_FALSE(TransformationMutatePointer(20, 20, insert_before) in TEST()
106 ASSERT_FALSE(TransformationMutatePointer(70, 70, insert_before) in TEST()
110 ASSERT_FALSE(TransformationMutatePointer(11, 70, insert_before) in TEST()
114 ASSERT_FALSE(TransformationMutatePointer(33, 70, insert_before) in TEST()
118 ASSERT_FALSE(TransformationMutatePointer(8, 70, insert_before) in TEST()
122 ASSERT_FALSE(TransformationMutatePointer(24, 70, insert_before) in TEST()
126 ASSERT_FALSE(TransformationMutatePointer(22, 70, insert_before) in TEST()
130 ASSERT_FALSE(TransformationMutatePointer(20, 70, insert_before) in TEST()
151 insert_before); in TEST()
[all …]
Dtransformation_add_synonym_test.cpp80 auto insert_before = MakeInstructionDescriptor(22, SpvOpReturn, 0); in TEST() local
86 40, insert_before) in TEST()
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
215 auto insert_before = MakeInstructionDescriptor(5, SpvOpReturn, 0); in TEST() local
227 TransformationAddSynonym(38, synonym_type, fresh_id, insert_before) in TEST()
[all …]
Dtransformation_equation_instruction_test.cpp562 auto insert_before = MakeInstructionDescriptor(13, SpvOpReturn, 0); in TEST() local
566 insert_before) in TEST()
571 TransformationEquationInstruction(50, SpvOpBitcast, {}, insert_before) in TEST()
576 TransformationEquationInstruction(50, SpvOpBitcast, {50}, insert_before) in TEST()
581 TransformationEquationInstruction(50, SpvOpBitcast, {13}, insert_before) in TEST()
587 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
591 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
596 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
599 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
606 fresh_id, SpvOpBitcast, {operand_id}, insert_before); in TEST()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dtransformation_mutate_pointer_test.cpp89 const auto insert_before = MakeInstructionDescriptor(26, SpvOpReturn, 0); in TEST() local
92 ASSERT_FALSE(TransformationMutatePointer(20, 20, insert_before) in TEST()
106 ASSERT_FALSE(TransformationMutatePointer(70, 70, insert_before) in TEST()
110 ASSERT_FALSE(TransformationMutatePointer(11, 70, insert_before) in TEST()
114 ASSERT_FALSE(TransformationMutatePointer(33, 70, insert_before) in TEST()
118 ASSERT_FALSE(TransformationMutatePointer(8, 70, insert_before) in TEST()
122 ASSERT_FALSE(TransformationMutatePointer(24, 70, insert_before) in TEST()
126 ASSERT_FALSE(TransformationMutatePointer(22, 70, insert_before) in TEST()
130 ASSERT_FALSE(TransformationMutatePointer(20, 70, insert_before) in TEST()
151 insert_before); in TEST()
[all …]
Dtransformation_add_synonym_test.cpp80 auto insert_before = MakeInstructionDescriptor(22, SpvOpReturn, 0); in TEST() local
86 40, insert_before) in TEST()
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
215 auto insert_before = MakeInstructionDescriptor(5, SpvOpReturn, 0); in TEST() local
227 TransformationAddSynonym(38, synonym_type, fresh_id, insert_before) in TEST()
[all …]
Dtransformation_equation_instruction_test.cpp562 auto insert_before = MakeInstructionDescriptor(13, SpvOpReturn, 0); in TEST() local
566 insert_before) in TEST()
571 TransformationEquationInstruction(50, SpvOpBitcast, {}, insert_before) in TEST()
576 TransformationEquationInstruction(50, SpvOpBitcast, {50}, insert_before) in TEST()
581 TransformationEquationInstruction(50, SpvOpBitcast, {13}, insert_before) in TEST()
587 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
591 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
596 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
599 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
606 fresh_id, SpvOpBitcast, {operand_id}, insert_before); in TEST()
[all …]
/third_party/spirv-tools/test/fuzz/
Dtransformation_mutate_pointer_test.cpp89 const auto insert_before = MakeInstructionDescriptor(26, SpvOpReturn, 0); in TEST() local
92 ASSERT_FALSE(TransformationMutatePointer(20, 20, insert_before) in TEST()
106 ASSERT_FALSE(TransformationMutatePointer(70, 70, insert_before) in TEST()
110 ASSERT_FALSE(TransformationMutatePointer(11, 70, insert_before) in TEST()
114 ASSERT_FALSE(TransformationMutatePointer(33, 70, insert_before) in TEST()
118 ASSERT_FALSE(TransformationMutatePointer(8, 70, insert_before) in TEST()
122 ASSERT_FALSE(TransformationMutatePointer(24, 70, insert_before) in TEST()
126 ASSERT_FALSE(TransformationMutatePointer(22, 70, insert_before) in TEST()
130 ASSERT_FALSE(TransformationMutatePointer(20, 70, insert_before) in TEST()
151 insert_before); in TEST()
[all …]
Dtransformation_add_synonym_test.cpp80 auto insert_before = MakeInstructionDescriptor(22, SpvOpReturn, 0); in TEST() local
86 40, insert_before) in TEST()
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
215 auto insert_before = MakeInstructionDescriptor(5, SpvOpReturn, 0); in TEST() local
227 TransformationAddSynonym(38, synonym_type, fresh_id, insert_before) in TEST()
[all …]
Dtransformation_equation_instruction_test.cpp562 auto insert_before = MakeInstructionDescriptor(13, SpvOpReturn, 0); in TEST() local
566 insert_before) in TEST()
571 TransformationEquationInstruction(50, SpvOpBitcast, {}, insert_before) in TEST()
576 TransformationEquationInstruction(50, SpvOpBitcast, {50}, insert_before) in TEST()
581 TransformationEquationInstruction(50, SpvOpBitcast, {13}, insert_before) in TEST()
587 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
591 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
596 TransformationEquationInstruction(50, SpvOpBitcast, {23}, insert_before) in TEST()
599 TransformationEquationInstruction(50, SpvOpBitcast, {24}, insert_before) in TEST()
606 fresh_id, SpvOpBitcast, {operand_id}, insert_before); in TEST()
[all …]
/third_party/spirv-tools/source/opt/
Dinterface_var_sroa.cpp464 const std::vector<uint32_t>& index_ids, Instruction* insert_before, in CreateAccessChainToVar() argument
483 insert_before->InsertBefore(std::move(new_access_chain)); in CreateAccessChainToVar()
489 Instruction* insert_before) { in CreateAccessChainWithIndex() argument
501 insert_before->InsertBefore(std::move(new_access_chain)); in CreateAccessChainWithIndex()
610 Instruction* insert_before) { in StoreComponentOfValueToScalarVar() argument
619 *extra_array_index, insert_before); in StoreComponentOfValueToScalarVar()
623 extra_array_index, insert_before); in StoreComponentOfValueToScalarVar()
628 Instruction* insert_before) { in LoadScalarVar() argument
637 *extra_array_index, insert_before); in LoadScalarVar()
640 return CreateLoad(component_type_id, ptr, insert_before); in LoadScalarVar()
[all …]
Dinterface_var_sroa.h214 Instruction* insert_before);
221 Instruction* insert_before);
233 Instruction* insert_before);
242 Instruction* insert_before);
253 Instruction* insert_before);
266 Instruction* insert_before);
287 Instruction* insert_before);
339 Instruction* insert_before,
Ddebug_info_manager.cpp446 Instruction* insert_before) { in CloneDebugInlinedAt() argument
454 if (insert_before != nullptr) in CloneDebugInlinedAt()
455 return insert_before->InsertBefore(std::move(new_inlined_at)); in CloneDebugInlinedAt()
573 Instruction* insert_before = insert_pos->NextNode(); in AddDebugValueForVariable() local
574 while (insert_before->opcode() == SpvOpPhi || in AddDebugValueForVariable()
575 insert_before->opcode() == SpvOpVariable) { in AddDebugValueForVariable()
576 insert_before = insert_before->NextNode(); in AddDebugValueForVariable()
578 modified |= AddDebugValueForDecl(dbg_decl_or_val, value_id, insert_before, in AddDebugValueForVariable()
585 Instruction* dbg_decl, uint32_t value_id, Instruction* insert_before, in AddDebugValueForDecl() argument
597 auto* added_dbg_val = insert_before->InsertBefore(std::move(dbg_val)); in AddDebugValueForDecl()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Ddebug_info_manager.cpp435 Instruction* insert_before) { in CloneDebugInlinedAt() argument
443 if (insert_before != nullptr) in CloneDebugInlinedAt()
444 return insert_before->InsertBefore(std::move(new_inlined_at)); in CloneDebugInlinedAt()
567 Instruction* insert_before = insert_pos->NextNode(); in AddDebugValueIfVarDeclIsVisible() local
568 while (insert_before->opcode() == SpvOpPhi || in AddDebugValueIfVarDeclIsVisible()
569 insert_before->opcode() == SpvOpVariable) { in AddDebugValueIfVarDeclIsVisible()
570 insert_before = insert_before->NextNode(); in AddDebugValueIfVarDeclIsVisible()
572 modified |= AddDebugValueForDecl(dbg_decl_or_val, value_id, insert_before, in AddDebugValueIfVarDeclIsVisible()
579 Instruction* dbg_decl, uint32_t value_id, Instruction* insert_before, in AddDebugValueForDecl() argument
591 auto* added_dbg_val = insert_before->InsertBefore(std::move(dbg_val)); in AddDebugValueForDecl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Ddebug_info_manager.cpp435 Instruction* insert_before) { in CloneDebugInlinedAt() argument
443 if (insert_before != nullptr) in CloneDebugInlinedAt()
444 return insert_before->InsertBefore(std::move(new_inlined_at)); in CloneDebugInlinedAt()
567 Instruction* insert_before = insert_pos->NextNode(); in AddDebugValueIfVarDeclIsVisible() local
568 while (insert_before->opcode() == SpvOpPhi || in AddDebugValueIfVarDeclIsVisible()
569 insert_before->opcode() == SpvOpVariable) { in AddDebugValueIfVarDeclIsVisible()
570 insert_before = insert_before->NextNode(); in AddDebugValueIfVarDeclIsVisible()
572 modified |= AddDebugValueForDecl(dbg_decl_or_val, value_id, insert_before, in AddDebugValueIfVarDeclIsVisible()
579 Instruction* dbg_decl, uint32_t value_id, Instruction* insert_before, in AddDebugValueForDecl() argument
591 auto* added_dbg_val = insert_before->InsertBefore(std::move(dbg_val)); in AddDebugValueForDecl()
[all …]

12345