Home
last modified time | relevance | path

Searched refs:ptr_inst (Results 1 – 23 of 23) sorted by relevance

/third_party/spirv-tools/source/opt/
Dinst_bindless_check_pass.cpp192 Instruction* InstBindlessCheckPass::GetPointeeTypeInst(Instruction* ptr_inst) { in GetPointeeTypeInst() argument
193 uint32_t pte_ty_id = GetPointeeTypeId(ptr_inst); in GetPointeeTypeInst()
203 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
204 if (ptr_inst->opcode() != SpvOp::SpvOpAccessChain) return false; in AnalyzeDescriptorReference()
205 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
253 if (ptr_inst->NumInOperands() < 3) return false; in AnalyzeDescriptorReference()
255 ptr_inst->GetSingleWordInOperand(kSpvAccessChainIndex0IdInIdx); in AnalyzeDescriptorReference()
289 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
290 if (ptr_inst->opcode() == SpvOp::SpvOpVariable) { in AnalyzeDescriptorReference()
293 } else if (ptr_inst->opcode() == SpvOp::SpvOpAccessChain) { in AnalyzeDescriptorReference()
[all …]
Dcopy_prop_arrays.cpp155 bool CopyPropagateArrays::HasNoStores(Instruction* ptr_inst) { in HasNoStores() argument
156 return get_def_use_mgr()->WhileEachUser(ptr_inst, [this](Instruction* use) { in HasNoStores()
173 bool CopyPropagateArrays::HasValidReferencesOnly(Instruction* ptr_inst, in HasValidReferencesOnly() argument
180 ptr_inst, in HasValidReferencesOnly()
181 [this, store_inst, dominator_analysis, ptr_inst](Instruction* use) { in HasValidReferencesOnly()
194 return ptr_inst->opcode() == SpvOpVariable && in HasValidReferencesOnly()
196 ptr_inst->result_id(); in HasValidReferencesOnly()
Dcopy_prop_arrays.h160 bool HasValidReferencesOnly(Instruction* ptr_inst, Instruction* store_inst);
200 bool HasNoStores(Instruction* ptr_inst);
Dfix_storage_class.cpp221 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ptr_id); in PropagateType() local
222 uint32_t pointee_type_id = GetPointeeTypeId(ptr_inst); in PropagateType()
Dinst_buff_addr_check_pass.cpp48 Instruction* ptr_inst = du_mgr->GetDef(ptr_id); in IsPhysicalBuffAddrReference() local
49 if (ptr_inst->opcode() != SpvOpAccessChain) return false; in IsPhysicalBuffAddrReference()
50 uint32_t ptr_ty_id = ptr_inst->type_id(); in IsPhysicalBuffAddrReference()
Dinst_bindless_check_pass.h163 Instruction* GetPointeeTypeInst(Instruction* ptr_inst);
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinst_bindless_check_pass.cpp192 Instruction* InstBindlessCheckPass::GetPointeeTypeInst(Instruction* ptr_inst) { in GetPointeeTypeInst() argument
193 uint32_t pte_ty_id = GetPointeeTypeId(ptr_inst); in GetPointeeTypeInst()
203 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
204 if (ptr_inst->opcode() != SpvOp::SpvOpAccessChain) return false; in AnalyzeDescriptorReference()
205 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
253 if (ptr_inst->NumInOperands() < 3) return false; in AnalyzeDescriptorReference()
255 ptr_inst->GetSingleWordInOperand(kSpvAccessChainIndex0IdInIdx); in AnalyzeDescriptorReference()
289 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
290 if (ptr_inst->opcode() == SpvOp::SpvOpVariable) { in AnalyzeDescriptorReference()
293 } else if (ptr_inst->opcode() == SpvOp::SpvOpAccessChain) { in AnalyzeDescriptorReference()
[all …]
Dcopy_prop_arrays.cpp159 bool CopyPropagateArrays::HasNoStores(Instruction* ptr_inst) { in HasNoStores() argument
160 return get_def_use_mgr()->WhileEachUser(ptr_inst, [this](Instruction* use) { in HasNoStores()
177 bool CopyPropagateArrays::HasValidReferencesOnly(Instruction* ptr_inst, in HasValidReferencesOnly() argument
184 ptr_inst, in HasValidReferencesOnly()
185 [this, store_inst, dominator_analysis, ptr_inst](Instruction* use) { in HasValidReferencesOnly()
198 return ptr_inst->opcode() == SpvOpVariable && in HasValidReferencesOnly()
200 ptr_inst->result_id(); in HasValidReferencesOnly()
Dcopy_prop_arrays.h160 bool HasValidReferencesOnly(Instruction* ptr_inst, Instruction* store_inst);
200 bool HasNoStores(Instruction* ptr_inst);
Dfix_storage_class.cpp221 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ptr_id); in PropagateType() local
222 uint32_t pointee_type_id = GetPointeeTypeId(ptr_inst); in PropagateType()
Dinst_bindless_check_pass.h163 Instruction* GetPointeeTypeInst(Instruction* ptr_inst);
Dinst_buff_addr_check_pass.cpp48 Instruction* ptr_inst = du_mgr->GetDef(ptr_id); in IsPhysicalBuffAddrReference() local
49 if (ptr_inst->opcode() != SpvOpAccessChain) return false; in IsPhysicalBuffAddrReference()
50 uint32_t ptr_ty_id = ptr_inst->type_id(); in IsPhysicalBuffAddrReference()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dinst_bindless_check_pass.cpp192 Instruction* InstBindlessCheckPass::GetPointeeTypeInst(Instruction* ptr_inst) { in GetPointeeTypeInst() argument
193 uint32_t pte_ty_id = GetPointeeTypeId(ptr_inst); in GetPointeeTypeInst()
203 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
204 if (ptr_inst->opcode() != SpvOp::SpvOpAccessChain) return false; in AnalyzeDescriptorReference()
205 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
253 if (ptr_inst->NumInOperands() < 3) return false; in AnalyzeDescriptorReference()
255 ptr_inst->GetSingleWordInOperand(kSpvAccessChainIndex0IdInIdx); in AnalyzeDescriptorReference()
289 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ref->ptr_id); in AnalyzeDescriptorReference() local
290 if (ptr_inst->opcode() == SpvOp::SpvOpVariable) { in AnalyzeDescriptorReference()
293 } else if (ptr_inst->opcode() == SpvOp::SpvOpAccessChain) { in AnalyzeDescriptorReference()
[all …]
Dcopy_prop_arrays.cpp159 bool CopyPropagateArrays::HasNoStores(Instruction* ptr_inst) { in HasNoStores() argument
160 return get_def_use_mgr()->WhileEachUser(ptr_inst, [this](Instruction* use) { in HasNoStores()
177 bool CopyPropagateArrays::HasValidReferencesOnly(Instruction* ptr_inst, in HasValidReferencesOnly() argument
184 ptr_inst, in HasValidReferencesOnly()
185 [this, store_inst, dominator_analysis, ptr_inst](Instruction* use) { in HasValidReferencesOnly()
198 return ptr_inst->opcode() == SpvOpVariable && in HasValidReferencesOnly()
200 ptr_inst->result_id(); in HasValidReferencesOnly()
Dcopy_prop_arrays.h160 bool HasValidReferencesOnly(Instruction* ptr_inst, Instruction* store_inst);
200 bool HasNoStores(Instruction* ptr_inst);
Dfix_storage_class.cpp221 Instruction* ptr_inst = get_def_use_mgr()->GetDef(ptr_id); in PropagateType() local
222 uint32_t pointee_type_id = GetPointeeTypeId(ptr_inst); in PropagateType()
Dinst_bindless_check_pass.h163 Instruction* GetPointeeTypeInst(Instruction* ptr_inst);
Dinst_buff_addr_check_pass.cpp48 Instruction* ptr_inst = du_mgr->GetDef(ptr_id); in IsPhysicalBuffAddrReference() local
49 if (ptr_inst->opcode() != SpvOpAccessChain) return false; in IsPhysicalBuffAddrReference()
50 uint32_t ptr_ty_id = ptr_inst->type_id(); in IsPhysicalBuffAddrReference()
/third_party/vulkan-loader/loader/
Dloader.h121 void loader_icd_destroy(struct loader_instance *ptr_inst, struct loader_icd_term *icd_term,
Dloader.c1240 void loader_icd_destroy(struct loader_instance *ptr_inst, struct loader_icd_term *icd_term, in loader_icd_destroy() argument
1242 ptr_inst->total_icd_count--; in loader_icd_destroy()
1245 loader_destroy_logical_device(ptr_inst, dev, pAllocator); in loader_icd_destroy()
1249 loader_instance_heap_free(ptr_inst, icd_term); in loader_icd_destroy()
1252 static struct loader_icd_term *loader_icd_add(struct loader_instance *ptr_inst, const struct loader… in loader_icd_add() argument
1255 …icd_term = loader_instance_heap_calloc(ptr_inst, sizeof(struct loader_icd_term), VK_SYSTEM_ALLOCAT… in loader_icd_add()
1261 icd_term->this_instance = ptr_inst; in loader_icd_add()
1264 icd_term->next = ptr_inst->icd_terms; in loader_icd_add()
1265 ptr_inst->icd_terms = icd_term; in loader_icd_add()
1266 ptr_inst->total_icd_count++; in loader_icd_add()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_decorations.cpp1370 const auto ptr_inst = vstate.FindDef(store->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp1370 const auto ptr_inst = vstate.FindDef(store->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1371 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders()
/third_party/spirv-tools/source/val/
Dvalidate_decorations.cpp1352 const auto ptr_inst = vstate.FindDef(store->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders() local
1353 const auto ptr_type = vstate.FindDef(ptr_inst->GetOperandAs<uint32_t>(0)); in CheckFPRoundingModeForShaders()