/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | mem_pass.cpp | 98 Instruction* varInst; in GetPtr() local 102 varInst = ptrInst->GetBaseAddress(); in GetPtr() 104 varInst = ptrInst; in GetPtr() 106 if (varInst->opcode() == SpvOpVariable) { in GetPtr() 107 *varId = varInst->result_id(); in GetPtr() 160 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsLiveVar() local 162 if (varInst->opcode() != SpvOpVariable) return true; in IsLiveVar() 164 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar() 252 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsTargetVar() local 253 if (varInst->opcode() != SpvOpVariable) return false; in IsTargetVar() [all …]
|
D | scalar_replacement_pass.cpp | 52 Instruction* varInst = &*iter; in ProcessFunction() local 53 if (CanReplaceVariable(varInst)) { in ProcessFunction() 54 worklist.push(varInst); in ProcessFunction() 60 Instruction* varInst = worklist.front(); in ProcessFunction() local 63 if (!ReplaceVariable(varInst, &worklist)) in ProcessFunction() 335 uint32_t typeId, Instruction* varInst, uint32_t index, in CreateVariable() argument 344 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable() 349 GetOrCreateInitialValue(varInst, index, inst); in CreateVariable() 520 const Instruction* varInst) const { in CanReplaceVariable() 521 assert(varInst->opcode() == SpvOpVariable); in CanReplaceVariable() [all …]
|
D | common_uniform_elim_pass.cpp | 65 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsSamplerOrImageVar() local 66 assert(varInst->opcode() == SpvOpVariable); in IsSamplerOrImageVar() 67 const uint32_t varTypeId = varInst->type_id(); in IsSamplerOrImageVar() 161 const Instruction* varInst = in IsUniformVar() local 163 if (varInst->opcode() != SpvOpVariable) return false; in IsUniformVar() 164 const uint32_t varTypeId = varInst->type_id(); in IsUniformVar() 216 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in GenACLoadRepl() local 217 assert(varInst->opcode() == SpvOpVariable); in GenACLoadRepl() 218 const uint32_t varPteTypeId = GetPointeeTypeId(varInst); in GenACLoadRepl()
|
D | scalar_replacement_pass.h | 75 bool CanReplaceVariable(const Instruction* varInst) const; 85 bool CheckAnnotations(const Instruction* varInst) const; 143 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
|
D | local_access_chain_convert_pass.cpp | 50 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() local 51 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 52 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
D | aggressive_dead_code_elim_pass.cpp | 85 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() local 86 const SpvOp op = varInst->opcode(); in IsVarOfStorage() 88 const uint32_t varTypeId = varInst->type_id(); in IsVarOfStorage()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | mem_pass.cpp | 98 Instruction* varInst; in GetPtr() local 102 varInst = ptrInst->GetBaseAddress(); in GetPtr() 104 varInst = ptrInst; in GetPtr() 106 if (varInst->opcode() == SpvOpVariable) { in GetPtr() 107 *varId = varInst->result_id(); in GetPtr() 160 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsLiveVar() local 162 if (varInst->opcode() != SpvOpVariable) return true; in IsLiveVar() 164 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar() 252 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsTargetVar() local 253 if (varInst->opcode() != SpvOpVariable) return false; in IsTargetVar() [all …]
|
D | scalar_replacement_pass.cpp | 52 Instruction* varInst = &*iter; in ProcessFunction() local 53 if (CanReplaceVariable(varInst)) { in ProcessFunction() 54 worklist.push(varInst); in ProcessFunction() 60 Instruction* varInst = worklist.front(); in ProcessFunction() local 63 if (!ReplaceVariable(varInst, &worklist)) in ProcessFunction() 335 uint32_t typeId, Instruction* varInst, uint32_t index, in CreateVariable() argument 344 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable() 349 GetOrCreateInitialValue(varInst, index, inst); in CreateVariable() 520 const Instruction* varInst) const { in CanReplaceVariable() 521 assert(varInst->opcode() == SpvOpVariable); in CanReplaceVariable() [all …]
|
D | common_uniform_elim_pass.cpp | 65 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsSamplerOrImageVar() local 66 assert(varInst->opcode() == SpvOpVariable); in IsSamplerOrImageVar() 67 const uint32_t varTypeId = varInst->type_id(); in IsSamplerOrImageVar() 161 const Instruction* varInst = in IsUniformVar() local 163 if (varInst->opcode() != SpvOpVariable) return false; in IsUniformVar() 164 const uint32_t varTypeId = varInst->type_id(); in IsUniformVar() 216 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in GenACLoadRepl() local 217 assert(varInst->opcode() == SpvOpVariable); in GenACLoadRepl() 218 const uint32_t varPteTypeId = GetPointeeTypeId(varInst); in GenACLoadRepl()
|
D | scalar_replacement_pass.h | 76 bool CanReplaceVariable(const Instruction* varInst) const; 86 bool CheckAnnotations(const Instruction* varInst) const; 144 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
|
D | local_access_chain_convert_pass.cpp | 50 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() local 51 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 52 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
D | aggressive_dead_code_elim_pass.cpp | 85 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() local 86 const SpvOp op = varInst->opcode(); in IsVarOfStorage() 88 const uint32_t varTypeId = varInst->type_id(); in IsVarOfStorage()
|