Home
last modified time | relevance | path

Searched refs:varInst (Results 1 – 20 of 20) sorted by relevance

/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/
Dlocal_single_block_elim_pass.cpp73 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()
Daggressive_dead_code_elim_pass.cpp50 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()
Dlocal_single_store_elim_pass.cpp78 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()
Dlocal_ssa_elim_pass.cpp85 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 …]
Dlocal_access_chain_convert_pass.cpp87 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/
Dmem_pass.cpp99 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 …]
Dscalar_replacement_pass.cpp55 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 …]
Dscalar_replacement_pass.h76 bool CanReplaceVariable(const Instruction* varInst) const;
86 bool CheckAnnotations(const Instruction* varInst) const;
152 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
Dlocal_access_chain_convert_pass.cpp54 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()
Daggressive_dead_code_elim_pass.cpp89 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/
Dmem_pass.cpp98 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 …]
Dscalar_replacement_pass.cpp60 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 …]
Dscalar_replacement_pass.h76 bool CanReplaceVariable(const Instruction* varInst) const;
86 bool CheckAnnotations(const Instruction* varInst) const;
155 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
Dlocal_access_chain_convert_pass.cpp54 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()
Daggressive_dead_code_elim_pass.cpp90 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/
Dmem_pass.cpp98 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 …]
Dscalar_replacement_pass.cpp60 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 …]
Dscalar_replacement_pass.h76 bool CanReplaceVariable(const Instruction* varInst) const;
86 bool CheckAnnotations(const Instruction* varInst) const;
155 void CreateVariable(uint32_t typeId, Instruction* varInst, uint32_t index,
Dlocal_access_chain_convert_pass.cpp54 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()
Daggressive_dead_code_elim_pass.cpp90 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()