Home
last modified time | relevance | path

Searched refs:ir_context_ (Results 1 – 25 of 57) sorted by relevance

123

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
/third_party/spirv-tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
/third_party/spirv-tools/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp121 ir_context_(std::move(ir_context)), in Fuzzer()
131 assert(ir_context_ && "IRContext is not initialized"); in Fuzzer()
134 assert(fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in Fuzzer()
262 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
273 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
282 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
286 opt::IRContext* Fuzzer::GetIRContext() { return ir_context_.get(); } in GetIRContext()
308 if (ir_context_->module()->id_bound() >= in Run()
Davailable_instructions.cpp24 : ir_context_(ir_context) { in AvailableInstructions()
140 auto block = available_instructions_.ir_context_->get_instr_block(inst_); in operator []()
155 available_instructions_.ir_context_->GetDominatorAnalysis(function); in operator []()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp121 ir_context_(std::move(ir_context)), in Fuzzer()
131 assert(ir_context_ && "IRContext is not initialized"); in Fuzzer()
134 assert(fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in Fuzzer()
262 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
273 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
282 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
286 opt::IRContext* Fuzzer::GetIRContext() { return ir_context_.get(); } in GetIRContext()
308 if (ir_context_->module()->id_bound() >= in Run()
Davailable_instructions.cpp24 : ir_context_(ir_context) { in AvailableInstructions()
140 auto block = available_instructions_.ir_context_->get_instr_block(inst_); in operator []()
155 available_instructions_.ir_context_->GetDominatorAnalysis(function); in operator []()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp121 ir_context_(std::move(ir_context)), in Fuzzer()
131 assert(ir_context_ && "IRContext is not initialized"); in Fuzzer()
134 assert(fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in Fuzzer()
262 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
273 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
282 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
286 opt::IRContext* Fuzzer::GetIRContext() { return ir_context_.get(); } in GetIRContext()
308 if (ir_context_->module()->id_bound() >= in Run()
Davailable_instructions.cpp24 : ir_context_(ir_context) { in AvailableInstructions()
140 auto block = available_instructions_.ir_context_->get_instr_block(inst_); in operator []()
155 available_instructions_.ir_context_->GetDominatorAnalysis(function); in operator []()
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/
Dspirv_reduce_mutator.cc45 : ir_context_(nullptr), in SpirvReduceMutator()
56 ir_context_ = spvtools::BuildModule( in SpirvReduceMutator()
59 assert(ir_context_ && "|binary| is invalid"); in SpirvReduceMutator()
113 finder->GetAvailableOpportunities(ir_context_.get(), 0); in Mutate()
152 ir_context_.get(), spvtools::ValidatorOptions(), in ApplyReduction()
158 ir_context_->module()->ToBinary(&result, true); in GetBinary()

123