Home
last modified time | relevance | path

Searched refs:access_chain (Results 1 – 25 of 53) sorted by relevance

123

/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dreplace_desc_array_access_using_var_index.cpp67 for (Instruction* access_chain : work_list) { in ReplaceVariableAccessesWithConstantElements()
68 if (descsroautil::GetAccessChainIndexAsConst(context(), access_chain) == in ReplaceVariableAccessesWithConstantElements()
70 ReplaceAccessChain(var, access_chain); in ReplaceVariableAccessesWithConstantElements()
80 Instruction* var, Instruction* access_chain) const { in ReplaceAccessChain()
85 UseConstIndexForAccessChain(access_chain, 0); in ReplaceAccessChain()
86 get_def_use_mgr()->AnalyzeInstUse(access_chain); in ReplaceAccessChain()
89 ReplaceUsersOfAccessChain(access_chain, number_of_elements); in ReplaceAccessChain()
93 Instruction* access_chain, uint32_t number_of_elements) const { in ReplaceUsersOfAccessChain() argument
95 CollectRecursiveUsersWithConcreteType(access_chain, &final_users); in ReplaceUsersOfAccessChain()
100 inst, access_chain, number_of_elements, insts_to_be_cloned); in ReplaceUsersOfAccessChain()
[all …]
Dreplace_desc_array_access_using_var_index.h64 void UseConstIndexForAccessChain(Instruction* access_chain,
71 void ReplaceUsersOfAccessChain(Instruction* access_chain,
77 Instruction* access_chain, std::vector<Instruction*>* final_users) const;
105 Instruction* access_chain_final_user, Instruction* access_chain,
120 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) const;
127 BasicBlock* case_block, Instruction* access_chain,
156 Instruction* access_chain, uint32_t element_index,
Ddesc_sroa_util.cpp82 IRContext* context, Instruction* access_chain) { in GetAccessChainIndexAsConst() argument
83 if (access_chain->NumInOperands() <= 1) { in GetAccessChainIndexAsConst()
86 uint32_t idx_id = GetFirstIndexOfAccessChain(access_chain); in GetAccessChainIndexAsConst()
92 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) { in GetFirstIndexOfAccessChain() argument
93 assert(access_chain->NumInOperands() > 1 && in GetFirstIndexOfAccessChain()
95 return access_chain->GetSingleWordInOperand(kOpAccessChainInOperandIndexes); in GetFirstIndexOfAccessChain()
Dcopy_prop_arrays.cpp523 std::vector<uint32_t> access_chain; in CanUpdateUses() local
528 access_chain.push_back(index_const->GetU32()); in CanUpdateUses()
532 access_chain.push_back(0); in CanUpdateUses()
537 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses()
552 std::vector<uint32_t> access_chain; in CanUpdateUses() local
554 access_chain.push_back(use->GetSingleWordInOperand(i)); in CanUpdateUses()
558 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses()
669 std::vector<uint32_t> access_chain; in UpdateUses() local
674 access_chain.push_back(index_const->GetU32()); in UpdateUses()
678 access_chain.push_back(0); in UpdateUses()
[all …]
Ddesc_sroa_util.h38 Instruction* access_chain);
48 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain);
Dgraphics_robust_access_pass.h69 void ClampIndicesForAccessChain(Instruction* access_chain);
117 opt::Instruction* MakeRuntimeArrayLengthInst(Instruction* access_chain,
Dcopy_prop_arrays.h73 void GetMember(const std::vector<uint32_t>& access_chain);
229 const std::vector<uint32_t>& access_chain) const;
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dreplace_desc_array_access_using_var_index.cpp67 for (Instruction* access_chain : work_list) { in ReplaceVariableAccessesWithConstantElements()
68 if (descsroautil::GetAccessChainIndexAsConst(context(), access_chain) == in ReplaceVariableAccessesWithConstantElements()
70 ReplaceAccessChain(var, access_chain); in ReplaceVariableAccessesWithConstantElements()
80 Instruction* var, Instruction* access_chain) const { in ReplaceAccessChain()
85 UseConstIndexForAccessChain(access_chain, 0); in ReplaceAccessChain()
86 get_def_use_mgr()->AnalyzeInstUse(access_chain); in ReplaceAccessChain()
89 ReplaceUsersOfAccessChain(access_chain, number_of_elements); in ReplaceAccessChain()
93 Instruction* access_chain, uint32_t number_of_elements) const { in ReplaceUsersOfAccessChain() argument
95 CollectRecursiveUsersWithConcreteType(access_chain, &final_users); in ReplaceUsersOfAccessChain()
100 inst, access_chain, number_of_elements, insts_to_be_cloned); in ReplaceUsersOfAccessChain()
[all …]
Dreplace_desc_array_access_using_var_index.h64 void UseConstIndexForAccessChain(Instruction* access_chain,
71 void ReplaceUsersOfAccessChain(Instruction* access_chain,
77 Instruction* access_chain, std::vector<Instruction*>* final_users) const;
105 Instruction* access_chain_final_user, Instruction* access_chain,
120 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) const;
127 BasicBlock* case_block, Instruction* access_chain,
156 Instruction* access_chain, uint32_t element_index,
Ddesc_sroa_util.cpp82 IRContext* context, Instruction* access_chain) { in GetAccessChainIndexAsConst() argument
83 if (access_chain->NumInOperands() <= 1) { in GetAccessChainIndexAsConst()
86 uint32_t idx_id = GetFirstIndexOfAccessChain(access_chain); in GetAccessChainIndexAsConst()
92 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) { in GetFirstIndexOfAccessChain() argument
93 assert(access_chain->NumInOperands() > 1 && in GetFirstIndexOfAccessChain()
95 return access_chain->GetSingleWordInOperand(kOpAccessChainInOperandIndexes); in GetFirstIndexOfAccessChain()
Dcopy_prop_arrays.cpp523 std::vector<uint32_t> access_chain; in CanUpdateUses() local
528 access_chain.push_back(index_const->GetU32()); in CanUpdateUses()
532 access_chain.push_back(0); in CanUpdateUses()
537 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses()
552 std::vector<uint32_t> access_chain; in CanUpdateUses() local
554 access_chain.push_back(use->GetSingleWordInOperand(i)); in CanUpdateUses()
558 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses()
669 std::vector<uint32_t> access_chain; in UpdateUses() local
674 access_chain.push_back(index_const->GetU32()); in UpdateUses()
678 access_chain.push_back(0); in UpdateUses()
[all …]
Ddesc_sroa_util.h38 Instruction* access_chain);
48 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain);
Dgraphics_robust_access_pass.h69 void ClampIndicesForAccessChain(Instruction* access_chain);
117 opt::Instruction* MakeRuntimeArrayLengthInst(Instruction* access_chain,
Dcopy_prop_arrays.h73 void GetMember(const std::vector<uint32_t>& access_chain);
229 const std::vector<uint32_t>& access_chain) const;
/third_party/spirv-tools/source/opt/
Dreplace_desc_array_access_using_var_index.cpp67 for (Instruction* access_chain : work_list) { in ReplaceVariableAccessesWithConstantElements()
68 if (descsroautil::GetAccessChainIndexAsConst(context(), access_chain) == in ReplaceVariableAccessesWithConstantElements()
70 ReplaceAccessChain(var, access_chain); in ReplaceVariableAccessesWithConstantElements()
80 Instruction* var, Instruction* access_chain) const { in ReplaceAccessChain()
85 UseConstIndexForAccessChain(access_chain, 0); in ReplaceAccessChain()
86 get_def_use_mgr()->AnalyzeInstUse(access_chain); in ReplaceAccessChain()
89 ReplaceUsersOfAccessChain(access_chain, number_of_elements); in ReplaceAccessChain()
93 Instruction* access_chain, uint32_t number_of_elements) const { in ReplaceUsersOfAccessChain() argument
95 CollectRecursiveUsersWithConcreteType(access_chain, &final_users); in ReplaceUsersOfAccessChain()
100 inst, access_chain, number_of_elements, insts_to_be_cloned); in ReplaceUsersOfAccessChain()
[all …]
Dreplace_desc_array_access_using_var_index.h64 void UseConstIndexForAccessChain(Instruction* access_chain,
71 void ReplaceUsersOfAccessChain(Instruction* access_chain,
77 Instruction* access_chain, std::vector<Instruction*>* final_users) const;
106 Instruction* access_chain_final_user, Instruction* access_chain,
121 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) const;
128 BasicBlock* case_block, Instruction* access_chain,
157 Instruction* access_chain, uint32_t element_index,
Ddesc_sroa_util.cpp82 IRContext* context, Instruction* access_chain) { in GetAccessChainIndexAsConst() argument
83 if (access_chain->NumInOperands() <= 1) { in GetAccessChainIndexAsConst()
86 uint32_t idx_id = GetFirstIndexOfAccessChain(access_chain); in GetAccessChainIndexAsConst()
92 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) { in GetFirstIndexOfAccessChain() argument
93 assert(access_chain->NumInOperands() > 1 && in GetFirstIndexOfAccessChain()
95 return access_chain->GetSingleWordInOperand(kOpAccessChainInOperandIndexes); in GetFirstIndexOfAccessChain()
Dcopy_prop_arrays.cpp516 std::vector<uint32_t> access_chain; in CanUpdateUses() local
521 access_chain.push_back(index_const->GetU32()); in CanUpdateUses()
525 access_chain.push_back(0); in CanUpdateUses()
536 type_mgr->GetMemberType(pointee_type, access_chain); in CanUpdateUses()
551 std::vector<uint32_t> access_chain; in CanUpdateUses() local
553 access_chain.push_back(use->GetSingleWordInOperand(i)); in CanUpdateUses()
557 type_mgr->GetMemberType(type, access_chain); in CanUpdateUses()
668 std::vector<uint32_t> access_chain; in UpdateUses() local
673 access_chain.push_back(index_const->GetU32()); in UpdateUses()
677 access_chain.push_back(0); in UpdateUses()
[all …]
Ddesc_sroa_util.h38 Instruction* access_chain);
48 uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain);
Dinterface_var_sroa.cpp447 Instruction* access_chain, Instruction* base_access_chain) { in UseBaseAccessChainForAccessChain() argument
449 access_chain->opcode() == SpvOpAccessChain && in UseBaseAccessChainForAccessChain()
450 access_chain->GetSingleWordInOperand(0) == in UseBaseAccessChainForAccessChain()
456 for (uint32_t i = 1; i < access_chain->NumInOperands(); ++i) { in UseBaseAccessChainForAccessChain()
457 new_operands.emplace_back(access_chain->GetInOperand(i)); in UseBaseAccessChainForAccessChain()
459 access_chain->SetInOperands(std::move(new_operands)); in UseBaseAccessChainForAccessChain()
506 Instruction* access_chain, in ReplaceAccessChainWith() argument
511 for (uint32_t i = 1; i < access_chain->NumInOperands(); ++i) { in ReplaceAccessChainWith()
512 indexes.push_back(access_chain->GetSingleWordInOperand(i)); in ReplaceAccessChainWith()
518 access_chain, in ReplaceAccessChainWith()
[all …]
Dgraphics_robust_access_pass.h69 void ClampIndicesForAccessChain(Instruction* access_chain);
117 opt::Instruction* MakeRuntimeArrayLengthInst(Instruction* access_chain,
Dcopy_prop_arrays.h89 void PushIndirection(const std::vector<AccessChainEntry>& access_chain);
255 const std::vector<uint32_t>& access_chain) const;
Dgraphics_robust_access_pass.cpp264 Instruction* access_chain) { in ClampIndicesForAccessChain() argument
265 Instruction& inst = *access_chain; in ClampIndicesForAccessChain()
670 Instruction* access_chain, uint32_t operand_index) { in MakeRuntimeArrayLengthInst() argument
688 Instruction* current_access_chain = access_chain; in MakeRuntimeArrayLengthInst()
703 current_access_chain == access_chain in MakeRuntimeArrayLengthInst()
796 access_chain, SpvOpArrayLength, type_mgr->GetId(uint_type), array_len_id, in MakeRuntimeArrayLengthInst()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dscalar_analysis.cpp123 Instruction* access_chain = in TEST_F() local
127 access_chain->GetSingleWordInOperand(1)); in TEST_F()
246 Instruction* access_chain = in TEST_F() local
250 access_chain->GetSingleWordInOperand(1)); in TEST_F()
362 Instruction* access_chain = in TEST_F() local
366 access_chain->GetSingleWordInOperand(1)); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dscalar_analysis.cpp123 Instruction* access_chain = in TEST_F() local
127 access_chain->GetSingleWordInOperand(1)); in TEST_F()
246 Instruction* access_chain = in TEST_F() local
250 access_chain->GetSingleWordInOperand(1)); in TEST_F()
362 Instruction* access_chain = in TEST_F() local
366 access_chain->GetSingleWordInOperand(1)); in TEST_F()

123