Home
last modified time | relevance | path

Searched refs:ref_inst (Results 1 – 13 of 13) sorted by relevance

/third_party/spirv-tools/source/opt/
Dinst_buff_addr_check_pass.cpp23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument
26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference()
28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference()
29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference()
43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument
44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference()
46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference()
61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument
81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode()
[all …]
Dinst_buff_addr_check_pass.h58 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder,
99 bool IsPhysicalBuffAddrReference(Instruction* ref_inst);
102 uint32_t CloneOriginalReference(Instruction* ref_inst,
113 uint32_t stage_idx, Instruction* ref_inst,
Dinst_bindless_check_pass.cpp128 ref->ref_inst->GetSingleWordInOperand(kSpvImageSampleImageIdInIdx); in CloneOriginalReference()
132 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference()
133 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference()
145 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference()
197 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument
199 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference()
200 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference()
202 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference()
264 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference()
554 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode()
[all …]
Dinst_bindless_check_pass.h134 Instruction* ref_inst; member
167 bool AnalyzeDescriptorReference(Instruction* ref_inst, RefAnalysis* ref);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dinst_buff_addr_check_pass.cpp23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument
26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference()
28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference()
29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference()
43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument
44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference()
46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference()
61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument
81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode()
[all …]
Dinst_buff_addr_check_pass.h64 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder,
105 bool IsPhysicalBuffAddrReference(Instruction* ref_inst);
108 uint32_t CloneOriginalReference(Instruction* ref_inst,
119 uint32_t stage_idx, Instruction* ref_inst,
Dinst_bindless_check_pass.cpp128 ref->ref_inst->GetSingleWordInOperand(kSpvImageSampleImageIdInIdx); in CloneOriginalReference()
132 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference()
133 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference()
145 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference()
197 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument
199 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference()
200 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference()
202 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference()
264 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference()
554 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode()
[all …]
Dinst_bindless_check_pass.h134 Instruction* ref_inst; member
167 bool AnalyzeDescriptorReference(Instruction* ref_inst, RefAnalysis* ref);
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinst_buff_addr_check_pass.cpp23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument
26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference()
28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference()
29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference()
37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference()
43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument
44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference()
46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference()
61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument
81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode()
[all …]
Dinst_buff_addr_check_pass.h64 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder,
105 bool IsPhysicalBuffAddrReference(Instruction* ref_inst);
108 uint32_t CloneOriginalReference(Instruction* ref_inst,
119 uint32_t stage_idx, Instruction* ref_inst,
Dinst_bindless_check_pass.cpp128 ref->ref_inst->GetSingleWordInOperand(kSpvImageSampleImageIdInIdx); in CloneOriginalReference()
132 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference()
133 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference()
145 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference()
197 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument
199 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference()
200 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference()
202 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference()
264 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference()
554 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode()
[all …]
Dinst_bindless_check_pass.h134 Instruction* ref_inst; member
167 bool AnalyzeDescriptorReference(Instruction* ref_inst, RefAnalysis* ref);
/third_party/mesa3d/src/broadcom/compiler/
Dvir.c1147 nir_instr *ref_inst = &ref->instr; in v3d_nir_sort_constant_ubo_load() local
1219 nir_instr *pos = ref_inst; in v3d_nir_sort_constant_ubo_load()