Home
last modified time | relevance | path

Searched refs:op_inst (Results 1 – 8 of 8) sorted by relevance

/external/deqp-deps/SPIRV-Tools/source/opt/
Dreduce_load_size.cpp125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local
128 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract()
132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()
141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()
155 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
176 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
Dfolding_rules.cpp256 Instruction* op_inst = in MergeNegateArithmetic() local
258 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic()
261 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic()
265 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic()
291 Instruction* op_inst = in MergeNegateMulDivArithmetic() local
293 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic()
299 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic()
303 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic()
310 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic()
311 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic()
[all …]
Dvector_dce.cpp189 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local
191 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive()
193 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()
200 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive()
202 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()
204 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
Dupgrade_memory_model.cpp245 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local
247 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction()
253 TraceInstruction(op_inst, indices, visited); in TraceInstruction()
496 Instruction* op_inst = in UpgradeBarriers() local
499 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dreduce_load_size.cpp125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local
128 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract()
132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()
141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()
156 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()
177 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
Dfolding_rules.cpp256 Instruction* op_inst = in MergeNegateArithmetic() local
258 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic()
261 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic()
265 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic()
291 Instruction* op_inst = in MergeNegateMulDivArithmetic() local
293 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic()
299 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic()
303 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic()
310 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic()
311 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic()
[all …]
Dvector_dce.cpp209 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local
211 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive()
213 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()
220 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive()
222 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()
224 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
Dupgrade_memory_model.cpp262 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local
264 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction()
270 TraceInstruction(op_inst, indices, visited); in TraceInstruction()
513 Instruction* op_inst = in UpgradeBarriers() local
516 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()