Home
last modified time | relevance | path

Searched refs:GetIRContext (Results 1 – 25 of 224) sorted by relevance

123456789

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass.cpp68 for (auto& global : GetIRContext()->module()->types_values()) { in FindAvailableInstructions()
69 if (instruction_is_relevant(GetIRContext(), &global)) { in FindAvailableInstructions()
77 if (instruction_is_relevant(GetIRContext(), param)) { in FindAvailableInstructions()
85 if (instruction_is_relevant(GetIRContext(), &*prev_inst_it)) { in FindAvailableInstructions()
92 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in FindAvailableInstructions()
98 if (instruction_is_relevant(GetIRContext(), &dominating_inst)) { in FindAvailableInstructions()
118 if (GetIRContext()->IsReachable(block)) { in ForEachInstructionWithInstructionDescriptor()
177 for (auto& function : *GetIRContext()->module()) { in ForEachInstructionWithInstructionDescriptor()
195 if (!transformation.IsApplicable(GetIRContext(), in ApplyTransformation()
202 assert(transformation.IsApplicable(GetIRContext(), in ApplyTransformation()
[all …]
Dfuzzer_pass_replace_opselects_with_conditional_branches.cpp42 for (auto& function : *GetIRContext()->module()) { in Apply()
48 GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock( in Apply()
68 if (GetIRContext() in Apply()
71 GetIRContext(), instruction.GetSingleWordInOperand(0))) in Apply()
103 GetIRContext()->get_def_use_mgr()->GetDef(instruction_id); in Apply()
109 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
142 auto block = GetIRContext()->get_instr_block(instruction); in InstructionNeedsSplitBefore()
152 if (GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock(block->id())) { in InstructionNeedsSplitBefore()
157 if (GetIRContext()->cfg()->preds(block->id()).size() != 1) { in InstructionNeedsSplitBefore()
163 auto predecessor = GetIRContext()->get_instr_block( in InstructionNeedsSplitBefore()
[all …]
Dfuzzer_pass_apply_id_synonyms.cpp51 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
65 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
78 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
118 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
141 GetIRContext()->get_def_use_mgr()->GetDef(parent_block_id); in Apply()
143 GetIRContext()->get_instr_block(parent_block_instruction); in Apply()
151 GetIRContext() in Apply()
163 MakeInstructionDescriptor(GetIRContext(), in Apply()
175 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
189 fuzzerutil::GetTypeId(GetIRContext(), dd1.object()); in DataDescriptorsHaveCompatibleTypes()
[all …]
Dfuzzer_pass_add_parameters.cpp36 for (const auto& type_inst : GetIRContext()->module()->GetTypes()) { in Apply()
38 GetIRContext(), type_inst->result_id())) { in Apply()
49 for (const auto& function : *GetIRContext()->module()) { in Apply()
51 if (fuzzerutil::FunctionIsEntryPoint(GetIRContext(), in Apply()
74 GetIRContext()->get_type_mgr()->GetType(current_type_id); in Apply()
80 GetIRContext(), current_type_id); in Apply()
86 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
87 auto block = GetIRContext()->get_instr_block(instr); in Apply()
99 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
115 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
[all …]
Dfuzzer_pass_flatten_conditional_branches.cpp35 for (auto& function : *GetIRContext()->module()) { in Apply()
62 ComparatorDeepBlocksFirst(GetIRContext())); in Apply()
72 GetIRContext(), header, *GetTransformationContext(), in Apply()
79 GetIRContext(), *header); in Apply()
87 OpSelectArgumentsAreRestricted(GetIRContext())) { in Apply()
88 if (!GetIRContext() in Apply()
93 switch (GetIRContext() in Apply()
132 GetIRContext() in Apply()
143 GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
188 MakeInstructionDescriptor(GetIRContext(), instruction); in Apply()
[all …]
Dfuzzer_pass_outline_functions.cpp37 for (auto& function : *GetIRContext()->module()) { in Apply()
58 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in Apply()
60 GetIRContext()->GetPostDominatorAnalysis(function); in Apply()
70 !GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in Apply()
88 GetIRContext(), entry_block, exit_block); in Apply()
91 GetIRContext(), region_blocks, exit_block)) { in Apply()
96 GetIRContext(), region_blocks, exit_block)) { in Apply()
122 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
152 MakeInstructionDescriptor(GetIRContext(), non_phi_or_var_inst), in MaybeGetEntryBlockSuitableForOutlining()
166 assert(!GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in MaybeGetExitBlockSuitableForOutlining()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp78 GetIRContext()->module()->ForEachInst([this](opt::Instruction* instruction) { in Apply()
94 GetIRContext()->get_def_use_mgr()->GetDef(coordinate_id); in Apply()
95 auto coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
131 : GetIRContext()->get_type_mgr()->GetId( in Apply()
146 GetIRContext()->get_type_mgr()->GetId( in Apply()
158 coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
168 GetIRContext()->get_type_mgr()->GetId( in Apply()
186 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
193 MakeInstructionDescriptor(GetIRContext(), instruction))); in Apply()
Dfuzzer_pass_replace_irrelevant_ids.cpp51 auto declaration = GetIRContext()->get_def_use_mgr()->GetDef(id); in Apply()
74 for (const auto& pair : GetIRContext()->get_def_use_mgr()->id_to_defs()) { in Apply()
92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
94 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
117 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
135 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
148 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
149 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
169 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass.cpp68 for (auto& global : GetIRContext()->module()->types_values()) { in FindAvailableInstructions()
69 if (instruction_is_relevant(GetIRContext(), &global)) { in FindAvailableInstructions()
77 if (instruction_is_relevant(GetIRContext(), param)) { in FindAvailableInstructions()
85 if (instruction_is_relevant(GetIRContext(), &*prev_inst_it)) { in FindAvailableInstructions()
92 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in FindAvailableInstructions()
98 if (instruction_is_relevant(GetIRContext(), &dominating_inst)) { in FindAvailableInstructions()
118 if (GetIRContext()->IsReachable(block)) { in ForEachInstructionWithInstructionDescriptor()
177 for (auto& function : *GetIRContext()->module()) { in ForEachInstructionWithInstructionDescriptor()
195 if (!transformation.IsApplicable(GetIRContext(), in ApplyTransformation()
202 assert(transformation.IsApplicable(GetIRContext(), in ApplyTransformation()
[all …]
Dfuzzer_pass_replace_opselects_with_conditional_branches.cpp42 for (auto& function : *GetIRContext()->module()) { in Apply()
48 GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock( in Apply()
68 if (GetIRContext() in Apply()
71 GetIRContext(), instruction.GetSingleWordInOperand(0))) in Apply()
103 GetIRContext()->get_def_use_mgr()->GetDef(instruction_id); in Apply()
109 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
142 auto block = GetIRContext()->get_instr_block(instruction); in InstructionNeedsSplitBefore()
152 if (GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock(block->id())) { in InstructionNeedsSplitBefore()
157 if (GetIRContext()->cfg()->preds(block->id()).size() != 1) { in InstructionNeedsSplitBefore()
163 auto predecessor = GetIRContext()->get_instr_block( in InstructionNeedsSplitBefore()
[all …]
Dfuzzer_pass_apply_id_synonyms.cpp51 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
65 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
78 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
118 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
141 GetIRContext()->get_def_use_mgr()->GetDef(parent_block_id); in Apply()
143 GetIRContext()->get_instr_block(parent_block_instruction); in Apply()
151 GetIRContext() in Apply()
163 MakeInstructionDescriptor(GetIRContext(), in Apply()
175 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
189 fuzzerutil::GetTypeId(GetIRContext(), dd1.object()); in DataDescriptorsHaveCompatibleTypes()
[all …]
Dfuzzer_pass_add_parameters.cpp36 for (const auto& type_inst : GetIRContext()->module()->GetTypes()) { in Apply()
38 GetIRContext(), type_inst->result_id())) { in Apply()
49 for (const auto& function : *GetIRContext()->module()) { in Apply()
51 if (fuzzerutil::FunctionIsEntryPoint(GetIRContext(), in Apply()
74 GetIRContext()->get_type_mgr()->GetType(current_type_id); in Apply()
80 GetIRContext(), current_type_id); in Apply()
86 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
87 auto block = GetIRContext()->get_instr_block(instr); in Apply()
99 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
115 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
[all …]
Dfuzzer_pass_flatten_conditional_branches.cpp35 for (auto& function : *GetIRContext()->module()) { in Apply()
62 ComparatorDeepBlocksFirst(GetIRContext())); in Apply()
72 GetIRContext(), header, *GetTransformationContext(), in Apply()
79 GetIRContext(), *header); in Apply()
87 OpSelectArgumentsAreRestricted(GetIRContext())) { in Apply()
88 if (!GetIRContext() in Apply()
93 switch (GetIRContext() in Apply()
132 GetIRContext() in Apply()
143 GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
188 MakeInstructionDescriptor(GetIRContext(), instruction); in Apply()
[all …]
Dfuzzer_pass_outline_functions.cpp37 for (auto& function : *GetIRContext()->module()) { in Apply()
58 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in Apply()
60 GetIRContext()->GetPostDominatorAnalysis(function); in Apply()
70 !GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in Apply()
88 GetIRContext(), entry_block, exit_block); in Apply()
91 GetIRContext(), region_blocks, exit_block)) { in Apply()
96 GetIRContext(), region_blocks, exit_block)) { in Apply()
122 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
152 MakeInstructionDescriptor(GetIRContext(), non_phi_or_var_inst), in MaybeGetEntryBlockSuitableForOutlining()
166 assert(!GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in MaybeGetExitBlockSuitableForOutlining()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp78 GetIRContext()->module()->ForEachInst([this](opt::Instruction* instruction) { in Apply()
94 GetIRContext()->get_def_use_mgr()->GetDef(coordinate_id); in Apply()
95 auto coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
131 : GetIRContext()->get_type_mgr()->GetId( in Apply()
146 GetIRContext()->get_type_mgr()->GetId( in Apply()
158 coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
168 GetIRContext()->get_type_mgr()->GetId( in Apply()
186 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
193 MakeInstructionDescriptor(GetIRContext(), instruction))); in Apply()
Dfuzzer_pass_replace_irrelevant_ids.cpp51 auto declaration = GetIRContext()->get_def_use_mgr()->GetDef(id); in Apply()
74 for (const auto& pair : GetIRContext()->get_def_use_mgr()->id_to_defs()) { in Apply()
92 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
94 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
117 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
135 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
148 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
149 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
169 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp41 for (auto constant_def : GetIRContext()->GetConstants()) { in Apply()
48 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in Apply()
72 for (auto& function : *GetIRContext()->module()) { in Apply()
75 GetIRContext()->cfg()->ForEachBlockInPostOrder( in Apply()
92 auto call_graph = CallGraph(GetIRContext()); in Apply()
100 auto block = GetIRContext()->get_instr_block(block_id); in Apply()
115 if (GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock(block->id()) || in Apply()
116 GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in Apply()
118 GetIRContext()->cfg()->preds(block->id()).size() != 1) { in Apply()
134 GetIRContext()->GetStructuredCFGAnalysis()->LoopNestingDepth( in Apply()
[all …]
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass.cpp65 for (auto& global : GetIRContext()->module()->types_values()) { in FindAvailableInstructions()
66 if (instruction_is_relevant(GetIRContext(), &global)) { in FindAvailableInstructions()
74 if (instruction_is_relevant(GetIRContext(), param)) { in FindAvailableInstructions()
82 if (instruction_is_relevant(GetIRContext(), &*prev_inst_it)) { in FindAvailableInstructions()
89 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in FindAvailableInstructions()
95 if (instruction_is_relevant(GetIRContext(), &dominating_inst)) { in FindAvailableInstructions()
115 GetIRContext()->GetDominatorAnalysis(function); in ForEachInstructionWithInstructionDescriptor()
176 for (auto& function : *GetIRContext()->module()) { in ForEachInstructionWithInstructionDescriptor()
188 if (auto existing_id = fuzzerutil::MaybeGetBoolType(GetIRContext())) { in FindOrCreateBoolType()
198 auto existing_id = GetIRContext()->get_type_mgr()->GetId(&int_type); in FindOrCreateIntegerType()
[all …]
Dfuzzer_pass_replace_opselects_with_conditional_branches.cpp41 for (auto& function : *GetIRContext()->module()) { in Apply()
47 GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock( in Apply()
67 if (GetIRContext() in Apply()
70 GetIRContext(), instruction.GetSingleWordInOperand(0))) in Apply()
102 GetIRContext()->get_def_use_mgr()->GetDef(instruction_id); in Apply()
108 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
141 auto block = GetIRContext()->get_instr_block(instruction); in InstructionNeedsSplitBefore()
151 if (GetIRContext()->GetStructuredCFGAnalysis()->IsMergeBlock(block->id())) { in InstructionNeedsSplitBefore()
156 if (GetIRContext()->cfg()->preds(block->id()).size() != 1) { in InstructionNeedsSplitBefore()
162 auto predecessor = GetIRContext()->get_instr_block( in InstructionNeedsSplitBefore()
[all …]
Dfuzzer_pass_apply_id_synonyms.cpp50 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
64 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
77 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
117 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
140 GetIRContext()->get_def_use_mgr()->GetDef(parent_block_id); in Apply()
142 GetIRContext()->get_instr_block(parent_block_instruction); in Apply()
150 GetIRContext() in Apply()
162 MakeInstructionDescriptor(GetIRContext(), in Apply()
174 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
188 fuzzerutil::GetTypeId(GetIRContext(), dd1.object()); in DataDescriptorsHaveCompatibleTypes()
[all …]
Dfuzzer_pass_add_parameters.cpp35 for (const auto& type_inst : GetIRContext()->module()->GetTypes()) { in Apply()
37 GetIRContext(), type_inst->result_id())) { in Apply()
48 for (const auto& function : *GetIRContext()->module()) { in Apply()
50 if (fuzzerutil::FunctionIsEntryPoint(GetIRContext(), in Apply()
73 GetIRContext()->get_type_mgr()->GetType(current_type_id); in Apply()
79 GetIRContext(), current_type_id); in Apply()
85 fuzzerutil::GetCallers(GetIRContext(), function.result_id())) { in Apply()
86 auto block = GetIRContext()->get_instr_block(instr); in Apply()
98 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
114 fuzzerutil::GetCallers(GetIRContext(), function.result_id()); in Apply()
[all …]
Dfuzzer_pass_flatten_conditional_branches.cpp34 for (auto& function : *GetIRContext()->module()) { in Apply()
61 ComparatorDeepBlocksFirst(GetIRContext())); in Apply()
71 GetIRContext(), header, *GetTransformationContext(), in Apply()
78 GetIRContext(), *header); in Apply()
86 OpSelectArgumentsAreRestricted(GetIRContext())) { in Apply()
87 if (!GetIRContext() in Apply()
92 switch (GetIRContext() in Apply()
131 GetIRContext() in Apply()
142 GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
187 MakeInstructionDescriptor(GetIRContext(), instruction); in Apply()
[all …]
Dfuzzer_pass_outline_functions.cpp36 for (auto& function : *GetIRContext()->module()) { in Apply()
57 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in Apply()
59 GetIRContext()->GetPostDominatorAnalysis(function); in Apply()
69 !GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in Apply()
87 GetIRContext(), entry_block, exit_block); in Apply()
90 GetIRContext(), region_blocks, exit_block)) { in Apply()
95 GetIRContext(), region_blocks, exit_block)) { in Apply()
121 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
151 MakeInstructionDescriptor(GetIRContext(), non_phi_or_var_inst), in MaybeGetEntryBlockSuitableForOutlining()
165 assert(!GetIRContext()->GetStructuredCFGAnalysis()->IsContinueBlock( in MaybeGetExitBlockSuitableForOutlining()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp77 GetIRContext()->module()->ForEachInst([this](opt::Instruction* instruction) { in Apply()
93 GetIRContext()->get_def_use_mgr()->GetDef(coordinate_id); in Apply()
94 auto coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
130 : GetIRContext()->get_type_mgr()->GetId( in Apply()
145 GetIRContext()->get_type_mgr()->GetId( in Apply()
157 coordinate_type = GetIRContext()->get_type_mgr()->GetType( in Apply()
167 GetIRContext()->get_type_mgr()->GetId( in Apply()
185 MakeInstructionDescriptor(GetIRContext(), instruction), in Apply()
192 MakeInstructionDescriptor(GetIRContext(), instruction))); in Apply()
Dfuzzer_pass_replace_irrelevant_ids.cpp50 auto declaration = GetIRContext()->get_def_use_mgr()->GetDef(id); in Apply()
73 for (const auto& pair : GetIRContext()->get_def_use_mgr()->id_to_defs()) { in Apply()
91 GetIRContext()->get_def_use_mgr()->GetDef(irrelevant_id)->type_id(); in Apply()
93 GetIRContext()->get_def_use_mgr()->ForEachUse( in Apply()
116 if (!fuzzerutil::IdUseCanBeReplaced(GetIRContext(), in Apply()
134 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
147 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
148 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
168 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()

123456789