/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | local_access_chain_convert_pass.cpp | 46 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, in BuildAndAppendVarLoad() argument 49 *varId = ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in BuildAndAppendVarLoad() 60 const Instruction* ptrInst, std::vector<Operand>* in_opnds) { in AppendConstantOperands() argument 62 ptrInst->ForEachInId([&iidIdx, &in_opnds, this](const uint32_t* iid) { in AppendConstantOperands() 101 const Instruction* ptrInst, uint32_t valId, in GenAccessChainStoreReplacement() argument 107 BuildAndAppendVarLoad(ptrInst, &varId, &varPteTypeId, newInsts); in GenAccessChainStoreReplacement() 116 AppendConstantOperands(ptrInst, &ins_in_opnds); in GenAccessChainStoreReplacement() 170 Instruction* ptrInst = GetPtr(&*ii, &varId); in FindTargetVars() local 172 const SpvOp op = ptrInst->opcode(); in FindTargetVars() 181 if (IsNonPtrAccessChain(op) && ptrInst->GetSingleWordInOperand( in FindTargetVars() [all …]
|
D | common_uniform_elim_pass.cpp | 80 Instruction* ptrInst = get_def_use_mgr()->GetDef(*objId); in GetPtr() local 81 while (ptrInst->opcode() == SpvOpCopyObject) { in GetPtr() 82 *objId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in GetPtr() 83 ptrInst = get_def_use_mgr()->GetDef(*objId); in GetPtr() 85 Instruction* objInst = ptrInst; in GetPtr() 96 return ptrInst; in GetPtr() 198 Instruction* ptrInst) { in ReplaceAndDeleteLoad() argument 205 if (IsNonPtrAccessChain(ptrInst->opcode())) DeleteIfUseless(ptrInst); in ReplaceAndDeleteLoad() 210 const Instruction* ptrInst, in GenACLoadRepl() argument 215 ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in GenACLoadRepl() [all …]
|
D | mem_pass.cpp | 82 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() local 83 while (ptrInst->opcode() == SpvOpCopyObject) { in IsPtr() 84 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr() 85 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 87 const SpvOp op = ptrInst->opcode(); in IsPtr() 90 const uint32_t varTypeId = ptrInst->type_id(); in IsPtr() 97 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() local 100 if (ptrInst->opcode() != SpvOpVariable && in GetPtr() 101 ptrInst->opcode() != SpvOpFunctionParameter) { in GetPtr() 102 varInst = ptrInst->GetBaseAddress(); in GetPtr() [all …]
|
D | local_single_block_elim_pass.cpp | 68 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() local 74 if (ptrInst->opcode() == SpvOpVariable) { in LocalSingleBlockLoadStoreElim() 103 assert(IsNonPtrAccessChain(ptrInst->opcode())); in LocalSingleBlockLoadStoreElim() 111 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() local 115 if (ptrInst->opcode() == SpvOpVariable) { in LocalSingleBlockLoadStoreElim() 140 if (ptrInst->opcode() == SpvOpVariable) in LocalSingleBlockLoadStoreElim()
|
D | common_uniform_elim_pass.h | 99 Instruction* ptrInst); 103 void GenACLoadRepl(const Instruction* ptrInst, 180 Instruction* ptrInst = GetPtr(inst, &varId); in IsUniformLoadToBeRemoved() local 181 if (ptrInst->opcode() == SpvOpVariable && IsUniformVar(varId) && in IsUniformLoadToBeRemoved()
|
D | local_access_chain_convert_pass.h | 74 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, 80 void AppendConstantOperands(const Instruction* ptrInst, 87 const Instruction* ptrInst, uint32_t valId,
|
D | pass.cpp | 49 uint32_t Pass::GetPointeeTypeId(const Instruction* ptrInst) const { in GetPointeeTypeId() 50 const uint32_t ptrTypeId = ptrInst->type_id(); in GetPointeeTypeId()
|
D | pass.h | 109 uint32_t GetPointeeTypeId(const Instruction* ptrInst) const;
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | local_access_chain_convert_pass.cpp | 46 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, in BuildAndAppendVarLoad() argument 49 *varId = ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in BuildAndAppendVarLoad() 60 const Instruction* ptrInst, std::vector<Operand>* in_opnds) { in AppendConstantOperands() argument 62 ptrInst->ForEachInId([&iidIdx, &in_opnds, this](const uint32_t* iid) { in AppendConstantOperands() 101 const Instruction* ptrInst, uint32_t valId, in GenAccessChainStoreReplacement() argument 107 BuildAndAppendVarLoad(ptrInst, &varId, &varPteTypeId, newInsts); in GenAccessChainStoreReplacement() 116 AppendConstantOperands(ptrInst, &ins_in_opnds); in GenAccessChainStoreReplacement() 170 Instruction* ptrInst = GetPtr(&*ii, &varId); in FindTargetVars() local 172 const SpvOp op = ptrInst->opcode(); in FindTargetVars() 181 if (IsNonPtrAccessChain(op) && ptrInst->GetSingleWordInOperand( in FindTargetVars() [all …]
|
D | common_uniform_elim_pass.cpp | 80 Instruction* ptrInst = get_def_use_mgr()->GetDef(*objId); in GetPtr() local 81 while (ptrInst->opcode() == SpvOpCopyObject) { in GetPtr() 82 *objId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in GetPtr() 83 ptrInst = get_def_use_mgr()->GetDef(*objId); in GetPtr() 85 Instruction* objInst = ptrInst; in GetPtr() 96 return ptrInst; in GetPtr() 198 Instruction* ptrInst) { in ReplaceAndDeleteLoad() argument 205 if (IsNonPtrAccessChain(ptrInst->opcode())) DeleteIfUseless(ptrInst); in ReplaceAndDeleteLoad() 210 const Instruction* ptrInst, in GenACLoadRepl() argument 215 ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in GenACLoadRepl() [all …]
|
D | mem_pass.cpp | 82 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() local 83 while (ptrInst->opcode() == SpvOpCopyObject) { in IsPtr() 84 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr() 85 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 87 const SpvOp op = ptrInst->opcode(); in IsPtr() 90 const uint32_t varTypeId = ptrInst->type_id(); in IsPtr() 97 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() local 100 if (ptrInst->opcode() != SpvOpVariable && in GetPtr() 101 ptrInst->opcode() != SpvOpFunctionParameter) { in GetPtr() 102 varInst = ptrInst->GetBaseAddress(); in GetPtr() [all …]
|
D | local_single_block_elim_pass.cpp | 68 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() local 74 if (ptrInst->opcode() == SpvOpVariable) { in LocalSingleBlockLoadStoreElim() 103 assert(IsNonPtrAccessChain(ptrInst->opcode())); in LocalSingleBlockLoadStoreElim() 111 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() local 115 if (ptrInst->opcode() == SpvOpVariable) { in LocalSingleBlockLoadStoreElim() 140 if (ptrInst->opcode() == SpvOpVariable) in LocalSingleBlockLoadStoreElim()
|
D | common_uniform_elim_pass.h | 99 Instruction* ptrInst); 103 void GenACLoadRepl(const Instruction* ptrInst, 180 Instruction* ptrInst = GetPtr(inst, &varId); in IsUniformLoadToBeRemoved() local 181 if (ptrInst->opcode() == SpvOpVariable && IsUniformVar(varId) && in IsUniformLoadToBeRemoved()
|
D | local_access_chain_convert_pass.h | 73 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, 79 void AppendConstantOperands(const Instruction* ptrInst, 86 const Instruction* ptrInst, uint32_t valId,
|
D | pass.cpp | 49 uint32_t Pass::GetPointeeTypeId(const Instruction* ptrInst) const { in GetPointeeTypeId() 50 const uint32_t ptrTypeId = ptrInst->type_id(); in GetPointeeTypeId()
|
D | pass.h | 109 uint32_t GetPointeeTypeId(const Instruction* ptrInst) const;
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 851 const auto ptrInst = vstate.FindDef(words[1]); in CheckDecorationsOfBuffers() local 852 assert(SpvOpTypePointer == ptrInst->opcode()); in CheckDecorationsOfBuffers() 853 const auto id = ptrInst->words()[3]; in CheckDecorationsOfBuffers()
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 860 const auto ptrInst = vstate.FindDef(words[1]); in CheckDecorationsOfBuffers() local 861 assert(SpvOpTypePointer == ptrInst->opcode()); in CheckDecorationsOfBuffers() 862 const auto id = ptrInst->words()[3]; in CheckDecorationsOfBuffers()
|