/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | reduce_load_size.cpp | 124 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local 127 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract() 131 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract() 140 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract() 158 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract() 179 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
|
D | folding_rules.cpp | 350 Instruction* op_inst = in MergeNegateArithmetic() local 352 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic() 355 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic() 359 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic() 385 Instruction* op_inst = in MergeNegateMulDivArithmetic() local 387 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic() 393 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic() 397 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic() 404 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic() 405 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic() [all …]
|
D | vector_dce.cpp | 215 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local 217 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive() 219 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 226 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive() 228 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 229 uint32_t op_vector_size = GetVectorComponentCount(op_inst->type_id()); in MarkCompositeContructUsesAsLive()
|
D | convert_to_half_pass.cpp | 166 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in GenHalfArith() local 167 if (!IsFloat(op_inst, 32)) return; in GenHalfArith() 295 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in CloseRelaxInst() local 296 if (!IsFloat(op_inst, 32)) return; in CloseRelaxInst()
|
D | upgrade_memory_model.cpp | 384 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local 386 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction() 392 TraceInstruction(op_inst, indices, visited); in TraceInstruction() 635 Instruction* op_inst = in UpgradeBarriers() local 638 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()
|
D | eliminate_dead_members_pass.cpp | 260 Instruction* op_inst = get_def_use_mgr()->GetDef(op_id); in MarkOperandTypeAsFullyUsed() local 261 MarkTypeAsFullyUsed(op_inst->type_id()); in MarkOperandTypeAsFullyUsed()
|
/third_party/spirv-tools/source/opt/ |
D | reduce_load_size.cpp | 124 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local 127 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract() 131 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract() 140 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract() 158 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract() 186 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
|
D | folding_rules.cpp | 358 Instruction* op_inst = in MergeNegateArithmetic() local 360 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic() 363 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic() 367 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic() 393 Instruction* op_inst = in MergeNegateMulDivArithmetic() local 395 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic() 401 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic() 405 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic() 412 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic() 413 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic() [all …]
|
D | vector_dce.cpp | 215 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local 217 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive() 219 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 226 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive() 228 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 229 uint32_t op_vector_size = GetVectorComponentCount(op_inst->type_id()); in MarkCompositeContructUsesAsLive()
|
D | convert_to_half_pass.cpp | 166 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in GenHalfArith() local 167 if (!IsFloat(op_inst, 32)) return; in GenHalfArith() 295 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in CloseRelaxInst() local 296 if (!IsFloat(op_inst, 32)) return; in CloseRelaxInst()
|
D | upgrade_memory_model.cpp | 382 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local 384 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction() 390 TraceInstruction(op_inst, indices, visited); in TraceInstruction() 633 Instruction* op_inst = in UpgradeBarriers() local 636 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()
|
D | eliminate_dead_members_pass.cpp | 260 Instruction* op_inst = get_def_use_mgr()->GetDef(op_id); in MarkOperandTypeAsFullyUsed() local 261 MarkTypeAsFullyUsed(op_inst->type_id()); in MarkOperandTypeAsFullyUsed()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | reduce_load_size.cpp | 124 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local 127 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract() 131 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract() 140 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract() 158 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract() 179 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
|
D | folding_rules.cpp | 350 Instruction* op_inst = in MergeNegateArithmetic() local 352 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic() 355 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic() 359 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic() 385 Instruction* op_inst = in MergeNegateMulDivArithmetic() local 387 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic() 393 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic() 397 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic() 404 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic() 405 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic() [all …]
|
D | vector_dce.cpp | 215 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local 217 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive() 219 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 226 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive() 228 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive() 229 uint32_t op_vector_size = GetVectorComponentCount(op_inst->type_id()); in MarkCompositeContructUsesAsLive()
|
D | convert_to_half_pass.cpp | 166 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in GenHalfArith() local 167 if (!IsFloat(op_inst, 32)) return; in GenHalfArith() 295 Instruction* op_inst = get_def_use_mgr()->GetDef(*idp); in CloseRelaxInst() local 296 if (!IsFloat(op_inst, 32)) return; in CloseRelaxInst()
|
D | upgrade_memory_model.cpp | 384 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local 386 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction() 392 TraceInstruction(op_inst, indices, visited); in TraceInstruction() 635 Instruction* op_inst = in UpgradeBarriers() local 638 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()
|
D | eliminate_dead_members_pass.cpp | 260 Instruction* op_inst = get_def_use_mgr()->GetDef(op_id); in MarkOperandTypeAsFullyUsed() local 261 MarkTypeAsFullyUsed(op_inst->type_id()); in MarkOperandTypeAsFullyUsed()
|