Home
last modified time | relevance | path

Searched refs:use_inst (Results 1 – 25 of 72) sorted by relevance

123

/dports/devel/intel-graphics-compiler/SPIRV-Tools/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp53 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
56 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
63 auto use_inst = use.first; in Apply() local
77 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
96 use_inst->opcode(), use_in_operand_index, in Apply()
111 use_inst) && in Apply()
112 use_inst->opcode() != SpvOpPhi) { in Apply()
118 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
135 if (use_inst->opcode() != SpvOpPhi) { in Apply()
136 instruction_to_insert_before = use_inst; in Apply()
[all …]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp96 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
105 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
114 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
119 use_inst, in_index)) { 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()
H A Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
H A Dfuzzer_pass_interchange_zero_like_constants.cpp96 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
101 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp54 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
57 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
64 auto use_inst = use.first; in Apply() local
78 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
97 use_inst->opcode(), use_in_operand_index, in Apply()
112 use_inst) && in Apply()
113 use_inst->opcode() != SpvOpPhi) { in Apply()
119 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
136 if (use_inst->opcode() != SpvOpPhi) { in Apply()
137 instruction_to_insert_before = use_inst; in Apply()
[all …]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp97 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
106 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
115 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
120 use_inst, in_index)) { in Apply()
136 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
149 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
150 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
170 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
H A Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
H A Dfuzzer_pass_interchange_zero_like_constants.cpp98 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
103 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
H A Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp74 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
79 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
/dports/graphics/spirv-tools/SPIRV-Tools-2021.4/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp53 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
56 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
63 auto use_inst = use.first; in Apply() local
77 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
96 use_inst->opcode(), use_in_operand_index, in Apply()
111 use_inst) && in Apply()
112 use_inst->opcode() != SpvOpPhi) { in Apply()
118 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
135 if (use_inst->opcode() != SpvOpPhi) { in Apply()
136 instruction_to_insert_before = use_inst; in Apply()
[all …]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp96 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
105 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
114 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
119 use_inst, in_index)) { 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()
H A Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
H A Dfuzzer_pass_interchange_zero_like_constants.cpp96 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
101 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/SPIRV-Tools/src/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp54 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
57 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
64 auto use_inst = use.first; in Apply() local
78 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
97 use_inst->opcode(), use_in_operand_index, in Apply()
112 use_inst) && in Apply()
113 use_inst->opcode() != SpvOpPhi) { in Apply()
119 if (!fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
136 if (use_inst->opcode() != SpvOpPhi) { in Apply()
137 instruction_to_insert_before = use_inst; in Apply()
[all …]
H A Dfuzzer_pass_replace_irrelevant_ids.cpp97 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
106 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
115 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
120 use_inst, in_index)) { in Apply()
136 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
149 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
150 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
170 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
H A Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
H A Dfuzzer_pass_interchange_zero_like_constants.cpp98 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
103 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
H A Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp74 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
79 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/3rdparty/spirv-tools/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp39 opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
40 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
54 use_index - use_inst->NumOperands() + use_inst->NumInOperands(); in Apply()
68 ReplacingUseWithSynonymIsOk(GetIRContext(), use_inst, in Apply()
88 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/3rdparty/spirv-tools/source/fuzz/
H A Dfuzzer_pass_apply_id_synonyms.cpp39 opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
40 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
54 use_index - use_inst->NumOperands() + use_inst->NumInOperands(); in Apply()
68 ReplacingUseWithSynonymIsOk(GetIRContext(), use_inst, in Apply()
88 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
/dports/emulators/yuzu/yuzu-0b47f7a46/externals/dynarmic/src/backend/x64/
H A Dreg_alloc.cpp326 const IR::Inst* use_inst = use_value.GetInst(); in UseImpl() local
327 const HostLoc current_location = *ValueLocation(use_inst); in UseImpl()
358 const IR::Inst* use_inst = use_value.GetInst(); in UseScratchImpl() local
359 const HostLoc current_location = *ValueLocation(use_inst); in UseScratchImpl()
360 const size_t bit_width = GetBitWidth(use_inst->GetType()); in UseScratchImpl()
486 void RegAlloc::DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst) { in DefineValueImpl() argument
489 if (use_inst.IsImmediate()) { in DefineValueImpl()
492 LoadImmediate(use_inst, location); in DefineValueImpl()
496 ASSERT_MSG(ValueLocation(use_inst.GetInst()), "use_inst must already be defined"); in DefineValueImpl()
497 const HostLoc location = *ValueLocation(use_inst.GetInst()); in DefineValueImpl()
/dports/emulators/citra/citra-ac98458e0/externals/dynarmic/src/backend/A64/
H A Dreg_alloc.cpp322 const IR::Inst* use_inst = use_value.GetInst(); in UseImpl() local
323 const HostLoc current_location = *ValueLocation(use_inst); in UseImpl()
354 const IR::Inst* use_inst = use_value.GetInst(); in UseScratchImpl() local
355 const HostLoc current_location = *ValueLocation(use_inst); in UseScratchImpl()
356 const size_t bit_width = GetBitWidth(use_inst->GetType()); in UseScratchImpl()
467 void RegAlloc::DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst) { in DefineValueImpl() argument
470 if (use_inst.IsImmediate()) { in DefineValueImpl()
473 LoadImmediate(use_inst, location); in DefineValueImpl()
477 ASSERT_MSG(ValueLocation(use_inst.GetInst()), "use_inst must already be defined"); in DefineValueImpl()
478 HostLoc location = *ValueLocation(use_inst.GetInst()); in DefineValueImpl()
/dports/emulators/citra-qt5/citra-ac98458e0/externals/dynarmic/src/backend/x64/
H A Dreg_alloc.cpp326 const IR::Inst* use_inst = use_value.GetInst(); in UseImpl() local
327 const HostLoc current_location = *ValueLocation(use_inst); in UseImpl()
358 const IR::Inst* use_inst = use_value.GetInst(); in UseScratchImpl() local
359 const HostLoc current_location = *ValueLocation(use_inst); in UseScratchImpl()
360 const size_t bit_width = GetBitWidth(use_inst->GetType()); in UseScratchImpl()
486 void RegAlloc::DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst) { in DefineValueImpl() argument
489 if (use_inst.IsImmediate()) { in DefineValueImpl()
492 LoadImmediate(use_inst, location); in DefineValueImpl()
496 ASSERT_MSG(ValueLocation(use_inst.GetInst()), "use_inst must already be defined"); in DefineValueImpl()
497 const HostLoc location = *ValueLocation(use_inst.GetInst()); in DefineValueImpl()
/dports/emulators/citra-qt5/citra-ac98458e0/externals/dynarmic/src/backend/A64/
H A Dreg_alloc.cpp322 const IR::Inst* use_inst = use_value.GetInst(); in UseImpl() local
323 const HostLoc current_location = *ValueLocation(use_inst); in UseImpl()
354 const IR::Inst* use_inst = use_value.GetInst(); in UseScratchImpl() local
355 const HostLoc current_location = *ValueLocation(use_inst); in UseScratchImpl()
356 const size_t bit_width = GetBitWidth(use_inst->GetType()); in UseScratchImpl()
467 void RegAlloc::DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst) { in DefineValueImpl() argument
470 if (use_inst.IsImmediate()) { in DefineValueImpl()
473 LoadImmediate(use_inst, location); in DefineValueImpl()
477 ASSERT_MSG(ValueLocation(use_inst.GetInst()), "use_inst must already be defined"); in DefineValueImpl()
478 HostLoc location = *ValueLocation(use_inst.GetInst()); in DefineValueImpl()
/dports/emulators/citra/citra-ac98458e0/externals/dynarmic/src/backend/x64/
H A Dreg_alloc.cpp326 const IR::Inst* use_inst = use_value.GetInst(); in UseImpl() local
327 const HostLoc current_location = *ValueLocation(use_inst); in UseImpl()
358 const IR::Inst* use_inst = use_value.GetInst(); in UseScratchImpl() local
359 const HostLoc current_location = *ValueLocation(use_inst); in UseScratchImpl()
360 const size_t bit_width = GetBitWidth(use_inst->GetType()); in UseScratchImpl()
486 void RegAlloc::DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst) { in DefineValueImpl() argument
489 if (use_inst.IsImmediate()) { in DefineValueImpl()
492 LoadImmediate(use_inst, location); in DefineValueImpl()
496 ASSERT_MSG(ValueLocation(use_inst.GetInst()), "use_inst must already be defined"); in DefineValueImpl()
497 const HostLoc location = *ValueLocation(use_inst.GetInst()); in DefineValueImpl()

123