mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-12 09:20:15 +00:00
parent
8bc27a1cfb
commit
28f32ca53e
@ -54,13 +54,13 @@ void FuzzerPassCopyObjects::Apply() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<opt::Instruction*> relevant_instructions =
|
const auto relevant_instructions = FindAvailableInstructions(
|
||||||
FindAvailableInstructions(
|
function, block, inst_it,
|
||||||
function, block, inst_it,
|
[this](opt::IRContext* ir_context, opt::Instruction* inst) {
|
||||||
[this](opt::IRContext* ir_context, opt::Instruction* inst) {
|
return TransformationAddSynonym::IsInstructionValid(
|
||||||
return fuzzerutil::CanMakeSynonymOf(
|
ir_context, *GetTransformationContext(), inst,
|
||||||
ir_context, *GetTransformationContext(), inst);
|
protobufs::TransformationAddSynonym::COPY_OBJECT);
|
||||||
});
|
});
|
||||||
|
|
||||||
// At this point, |relevant_instructions| contains all the instructions
|
// At this point, |relevant_instructions| contains all the instructions
|
||||||
// we might think of copying.
|
// we might think of copying.
|
||||||
|
Loading…
Reference in New Issue
Block a user