/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/ |
D | local_single_block_elim_pass.cpp | 73 ir::Instruction* varInst = ptrInst; in GetPtr() local 74 while (IsNonPtrAccessChain(varInst->opcode())) { in GetPtr() 75 *varId = varInst->GetSingleWordInOperand(kSpvAccessChainPtrId); in GetPtr() 76 varInst = def_use_mgr_->GetDef(*varId); in GetPtr() 86 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsTargetVar() local 87 assert(varInst->opcode() == SpvOpVariable); in IsTargetVar() 88 const uint32_t varTypeId = varInst->type_id(); in IsTargetVar() 136 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsLiveVar() local 137 assert(varInst->opcode() == SpvOpVariable); in IsLiveVar() 138 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar()
|
D | aggressive_dead_code_elim_pass.cpp | 50 ir::Instruction* varInst = ptrInst; in GetPtr() local 51 while (varInst->opcode() != SpvOpVariable) { in GetPtr() 52 if (IsNonPtrAccessChain(varInst->opcode())) { in GetPtr() 53 *varId = varInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in GetPtr() 56 assert(varInst->opcode() == SpvOpCopyObject); in GetPtr() 57 *varId = varInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in GetPtr() 59 varInst = def_use_mgr_->GetDef(*varId); in GetPtr() 65 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsLocalVar() local 66 assert(varInst->opcode() == SpvOpVariable); in IsLocalVar() 67 const uint32_t varTypeId = varInst->type_id(); in IsLocalVar()
|
D | local_single_store_elim_pass.cpp | 78 ir::Instruction* varInst = ptrInst; in GetPtr() local 79 while (IsNonPtrAccessChain(varInst->opcode())) { in GetPtr() 80 *varId = varInst->GetSingleWordInOperand(kSpvAccessChainPtrId); in GetPtr() 81 varInst = def_use_mgr_->GetDef(*varId); in GetPtr() 91 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsTargetVar() local 92 assert(varInst->opcode() == SpvOpVariable); in IsTargetVar() 93 const uint32_t varTypeId = varInst->type_id(); in IsTargetVar() 317 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsLiveVar() local 318 assert(varInst->opcode() == SpvOpVariable); in IsLiveVar() 319 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar()
|
D | local_ssa_elim_pass.cpp | 85 ir::Instruction* varInst = ptrInst; in GetPtr() local 86 while (varInst->opcode() != SpvOpVariable) { in GetPtr() 87 if (IsNonPtrAccessChain(varInst->opcode())) { in GetPtr() 88 *varId = varInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in GetPtr() 91 assert(varInst->opcode() == SpvOpCopyObject); in GetPtr() 92 *varId = varInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in GetPtr() 94 varInst = def_use_mgr_->GetDef(*varId); in GetPtr() 104 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsTargetVar() local 105 assert(varInst->opcode() == SpvOpVariable); in IsTargetVar() 106 const uint32_t varTypeId = varInst->type_id(); in IsTargetVar() [all …]
|
D | local_access_chain_convert_pass.cpp | 87 const ir::Instruction* varInst = def_use_mgr_->GetDef(varId); in IsTargetVar() local 88 if (varInst->opcode() != SpvOpVariable) in IsTargetVar() 90 const uint32_t varTypeId = varInst->type_id(); in IsTargetVar() 156 const ir::Instruction* varInst = def_use_mgr_->GetDef(*varId); in BuildAndAppendVarLoad() local 157 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 158 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
/third_party/spirv-tools/source/opt/ |
D | mem_pass.cpp | 99 Instruction* varInst; in GetPtr() local 108 varInst = ptrInst->GetBaseAddress(); in GetPtr() 110 varInst = ptrInst; in GetPtr() 112 if (varInst->opcode() == SpvOpVariable) { in GetPtr() 113 *varId = varInst->result_id(); in GetPtr() 166 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsLiveVar() local 168 if (varInst->opcode() != SpvOpVariable) return true; in IsLiveVar() 170 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar() 267 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsTargetVar() local 268 if (varInst->opcode() != SpvOpVariable) return false; in IsTargetVar() [all …]
|
D | scalar_replacement_pass.cpp | 55 Instruction* varInst = &*iter; in ProcessFunction() local 56 if (CanReplaceVariable(varInst)) { in ProcessFunction() 57 worklist.push(varInst); in ProcessFunction() 63 Instruction* varInst = worklist.front(); in ProcessFunction() local 66 Status var_status = ReplaceVariable(varInst, &worklist); in ProcessFunction() 455 uint32_t typeId, Instruction* varInst, uint32_t index, in CreateVariable() argument 469 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable() 474 GetOrCreateInitialValue(varInst, index, inst); in CreateVariable() 479 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() 508 inst->UpdateDebugInfoFrom(varInst); in CreateVariable() [all …]
|
D | scalar_replacement_pass.h | 76 bool CanReplaceVariable(const Instruction* varInst) const; 86 bool CheckAnnotations(const Instruction* varInst) const; 152 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
|
D | local_access_chain_convert_pass.cpp | 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() local 55 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 56 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
D | aggressive_dead_code_elim_pass.cpp | 89 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() local 90 const SpvOp op = varInst->opcode(); in IsVarOfStorage() 92 const uint32_t varTypeId = varInst->type_id(); in IsVarOfStorage()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | mem_pass.cpp | 98 Instruction* varInst; in GetPtr() local 107 varInst = ptrInst->GetBaseAddress(); in GetPtr() 109 varInst = ptrInst; in GetPtr() 111 if (varInst->opcode() == SpvOpVariable) { in GetPtr() 112 *varId = varInst->result_id(); in GetPtr() 165 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsLiveVar() local 167 if (varInst->opcode() != SpvOpVariable) return true; in IsLiveVar() 169 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar() 266 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsTargetVar() local 267 if (varInst->opcode() != SpvOpVariable) return false; in IsTargetVar() [all …]
|
D | scalar_replacement_pass.cpp | 60 Instruction* varInst = &*iter; in ProcessFunction() local 61 if (CanReplaceVariable(varInst)) { in ProcessFunction() 62 worklist.push(varInst); in ProcessFunction() 68 Instruction* varInst = worklist.front(); in ProcessFunction() local 71 Status var_status = ReplaceVariable(varInst, &worklist); in ProcessFunction() 464 uint32_t typeId, Instruction* varInst, uint32_t index, in CreateVariable() argument 478 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable() 483 GetOrCreateInitialValue(varInst, index, inst); in CreateVariable() 488 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() 517 inst->UpdateDebugInfoFrom(varInst); in CreateVariable() [all …]
|
D | scalar_replacement_pass.h | 76 bool CanReplaceVariable(const Instruction* varInst) const; 86 bool CheckAnnotations(const Instruction* varInst) const; 155 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
|
D | local_access_chain_convert_pass.cpp | 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() local 55 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 56 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
D | aggressive_dead_code_elim_pass.cpp | 90 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() local 91 const SpvOp op = varInst->opcode(); in IsVarOfStorage() 93 const uint32_t varTypeId = varInst->type_id(); in IsVarOfStorage()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | mem_pass.cpp | 98 Instruction* varInst; in GetPtr() local 107 varInst = ptrInst->GetBaseAddress(); in GetPtr() 109 varInst = ptrInst; in GetPtr() 111 if (varInst->opcode() == SpvOpVariable) { in GetPtr() 112 *varId = varInst->result_id(); in GetPtr() 165 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsLiveVar() local 167 if (varInst->opcode() != SpvOpVariable) return true; in IsLiveVar() 169 const uint32_t varTypeId = varInst->type_id(); in IsLiveVar() 266 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsTargetVar() local 267 if (varInst->opcode() != SpvOpVariable) return false; in IsTargetVar() [all …]
|
D | scalar_replacement_pass.cpp | 60 Instruction* varInst = &*iter; in ProcessFunction() local 61 if (CanReplaceVariable(varInst)) { in ProcessFunction() 62 worklist.push(varInst); in ProcessFunction() 68 Instruction* varInst = worklist.front(); in ProcessFunction() local 71 Status var_status = ReplaceVariable(varInst, &worklist); in ProcessFunction() 464 uint32_t typeId, Instruction* varInst, uint32_t index, in CreateVariable() argument 478 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable() 483 GetOrCreateInitialValue(varInst, index, inst); in CreateVariable() 488 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() 517 inst->UpdateDebugInfoFrom(varInst); in CreateVariable() [all …]
|
D | scalar_replacement_pass.h | 76 bool CanReplaceVariable(const Instruction* varInst) const; 86 bool CheckAnnotations(const Instruction* varInst) const; 155 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
|
D | local_access_chain_convert_pass.cpp | 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() local 55 assert(varInst->opcode() == SpvOpVariable); in BuildAndAppendVarLoad() 56 *varPteTypeId = GetPointeeTypeId(varInst); in BuildAndAppendVarLoad()
|
D | aggressive_dead_code_elim_pass.cpp | 90 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() local 91 const SpvOp op = varInst->opcode(); in IsVarOfStorage() 93 const uint32_t varTypeId = varInst->type_id(); in IsVarOfStorage()
|