Home
last modified time | relevance | path

Searched refs:access_chain_inst (Results 1 – 6 of 6) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_add_function.cpp760 opt::IRContext* ir_context, opt::Instruction* access_chain_inst) const { in TryToClampAccessChainIndices()
761 assert((access_chain_inst->opcode() == SpvOpAccessChain || in TryToClampAccessChainIndices()
762 access_chain_inst->opcode() == SpvOpInBoundsAccessChain) && in TryToClampAccessChainIndices()
770 if (clamping_info.access_chain_id() == access_chain_inst->result_id()) { in TryToClampAccessChainIndices()
785 access_chain_inst->NumInOperands() - 1) { in TryToClampAccessChainIndices()
792 access_chain_inst->GetSingleWordInOperand(0)); in TryToClampAccessChainIndices()
802 for (uint32_t index = 1; index < access_chain_inst->NumInOperands(); in TryToClampAccessChainIndices()
823 const uint32_t index_id = access_chain_inst->GetSingleWordInOperand(index); in TryToClampAccessChainIndices()
884 access_chain_inst->InsertBefore(std::move(new_instructions)); in TryToClampAccessChainIndices()
887 access_chain_inst->SetInOperand(index, {select_id}); in TryToClampAccessChainIndices()
Dtransformation_add_function.h120 opt::Instruction* access_chain_inst) const;
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_add_function.cpp760 opt::IRContext* ir_context, opt::Instruction* access_chain_inst) const { in TryToClampAccessChainIndices()
761 assert((access_chain_inst->opcode() == SpvOpAccessChain || in TryToClampAccessChainIndices()
762 access_chain_inst->opcode() == SpvOpInBoundsAccessChain) && in TryToClampAccessChainIndices()
770 if (clamping_info.access_chain_id() == access_chain_inst->result_id()) { in TryToClampAccessChainIndices()
785 access_chain_inst->NumInOperands() - 1) { in TryToClampAccessChainIndices()
792 access_chain_inst->GetSingleWordInOperand(0)); in TryToClampAccessChainIndices()
802 for (uint32_t index = 1; index < access_chain_inst->NumInOperands(); in TryToClampAccessChainIndices()
823 const uint32_t index_id = access_chain_inst->GetSingleWordInOperand(index); in TryToClampAccessChainIndices()
884 access_chain_inst->InsertBefore(std::move(new_instructions)); in TryToClampAccessChainIndices()
887 access_chain_inst->SetInOperand(index, {select_id}); in TryToClampAccessChainIndices()
Dtransformation_add_function.h120 opt::Instruction* access_chain_inst) const;
/external/deqp-deps/SPIRV-Tools/test/opt/
Dgraphics_robust_access_test.cpp198 std::string ACCheck(const std::string& access_chain_inst, in ACCheck() argument
201 return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" + in ACCheck()
203 "\n ; CHECK-NOT: " + access_chain_inst + in ACCheck()
206 access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") + in ACCheck()
210 std::string ACCheckFail(const std::string& access_chain_inst, in ACCheckFail() argument
213 return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" + in ACCheckFail()
215 "\n ; CHECK-NOT: " + access_chain_inst + in ACCheckFail()
218 access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") + in ACCheckFail()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dgraphics_robust_access_test.cpp198 std::string ACCheck(const std::string& access_chain_inst, in ACCheck() argument
201 return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" + in ACCheck()
203 "\n ; CHECK-NOT: " + access_chain_inst + in ACCheck()
206 access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") + in ACCheck()
210 std::string ACCheckFail(const std::string& access_chain_inst, in ACCheckFail() argument
213 return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" + in ACCheckFail()
215 "\n ; CHECK-NOT: " + access_chain_inst + in ACCheckFail()
218 access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") + in ACCheckFail()