Home
last modified time | relevance | path

Searched refs:typeInst (Results 1 – 25 of 36) sorted by relevance

12

/third_party/spirv-tools/source/opt/
Ddead_insert_elim_pass.cpp39 uint32_t DeadInsertElimPass::NumComponents(Instruction* typeInst) { in NumComponents() argument
40 switch (typeInst->opcode()) { in NumComponents()
42 return typeInst->GetSingleWordInOperand(kTypeVectorCountInIdx); in NumComponents()
45 return typeInst->GetSingleWordInOperand(kTypeMatrixCountInIdx); in NumComponents()
49 typeInst->GetSingleWordInOperand(kTypeArrayLengthIdInIdx); in NumComponents()
60 return typeInst->NumInOperands(); in NumComponents()
70 Instruction* typeInst = get_def_use_mgr()->GetDef(insertChain->type_id()); in MarkInsertChain() local
71 if (typeInst->opcode() == SpvOpTypeArray) return; in MarkInsertChain()
79 uint32_t cnum = NumComponents(typeInst); in MarkInsertChain()
183 Instruction* typeInst = get_def_use_mgr()->GetDef(ii->type_id()); in EliminateDeadInsertsOnePass() local
[all …]
Dinline_opaque_pass.cpp30 const Instruction* typeInst = get_def_use_mgr()->GetDef(typeId); in IsOpaqueType() local
31 switch (typeInst->opcode()) { in IsOpaqueType()
38 typeInst->GetSingleWordInOperand(kTypePointerTypeIdInIdx)); in IsOpaqueType()
43 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsOpaqueType()
45 return !typeInst->WhileEachInId([this](const uint32_t* tid) { in IsOpaqueType()
Dmem_pass.cpp41 bool MemPass::IsBaseTargetType(const Instruction* typeInst) const { in IsBaseTargetType()
42 switch (typeInst->opcode()) { in IsBaseTargetType()
59 bool MemPass::IsTargetType(const Instruction* typeInst) const { in IsTargetType()
60 if (IsBaseTargetType(typeInst)) return true; in IsTargetType()
61 if (typeInst->opcode() == SpvOpTypeArray) { in IsTargetType()
63 get_def_use_mgr()->GetDef(typeInst->GetSingleWordOperand(1)))) { in IsTargetType()
68 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsTargetType()
70 return typeInst->WhileEachInId([this](const uint32_t* tid) { in IsTargetType()
Dtype_manager.cpp213 std::unique_ptr<Instruction> typeInst; in GetTypeInstruction() local
224 typeInst = MakeUnique<Instruction>(context(), SpvOpType##kind, 0, id, \ in GetTypeInstruction()
239 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
247 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
257 typeInst = in GetTypeInstruction()
270 typeInst = in GetTypeInstruction()
284 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
308 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
318 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
331 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
[all …]
Dscalar_replacement_pass.cpp479 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() local
481 get_decoration_mgr()->GetDecorationsFor(typeInst->result_id(), false)) { in CreateVariable()
669 const Instruction* typeInst = GetStorageType(varInst); in CanReplaceVariable() local
670 if (!CheckType(typeInst)) { in CanReplaceVariable()
685 bool ScalarReplacementPass::CheckType(const Instruction* typeInst) const { in CheckType()
686 if (!CheckTypeAnnotations(typeInst)) { in CheckType()
690 switch (typeInst->opcode()) { in CheckType()
693 if (typeInst->NumInOperands() == 0 || in CheckType()
694 IsLargerThanSizeLimit(typeInst->NumInOperands())) { in CheckType()
699 if (IsSpecConstant(typeInst->GetSingleWordInOperand(1u))) { in CheckType()
[all …]
Dmem_pass.h75 bool IsBaseTargetType(const Instruction* typeInst) const;
80 bool IsTargetType(const Instruction* typeInst) const;
Dscalar_replacement_pass.h82 bool CheckType(const Instruction* typeInst) const;
90 bool CheckTypeAnnotations(const Instruction* typeInst) const;
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Ddead_insert_elim_pass.cpp39 uint32_t DeadInsertElimPass::NumComponents(Instruction* typeInst) { in NumComponents() argument
40 switch (typeInst->opcode()) { in NumComponents()
42 return typeInst->GetSingleWordInOperand(kTypeVectorCountInIdx); in NumComponents()
45 return typeInst->GetSingleWordInOperand(kTypeMatrixCountInIdx); in NumComponents()
49 typeInst->GetSingleWordInOperand(kTypeArrayLengthIdInIdx); in NumComponents()
60 return typeInst->NumInOperands(); in NumComponents()
70 Instruction* typeInst = get_def_use_mgr()->GetDef(insertChain->type_id()); in MarkInsertChain() local
71 if (typeInst->opcode() == SpvOpTypeArray) return; in MarkInsertChain()
79 uint32_t cnum = NumComponents(typeInst); in MarkInsertChain()
183 Instruction* typeInst = get_def_use_mgr()->GetDef(ii->type_id()); in EliminateDeadInsertsOnePass() local
[all …]
Dinline_opaque_pass.cpp30 const Instruction* typeInst = get_def_use_mgr()->GetDef(typeId); in IsOpaqueType() local
31 switch (typeInst->opcode()) { in IsOpaqueType()
38 typeInst->GetSingleWordInOperand(kTypePointerTypeIdInIdx)); in IsOpaqueType()
43 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsOpaqueType()
45 return !typeInst->WhileEachInId([this](const uint32_t* tid) { in IsOpaqueType()
Dmem_pass.cpp40 bool MemPass::IsBaseTargetType(const Instruction* typeInst) const { in IsBaseTargetType()
41 switch (typeInst->opcode()) { in IsBaseTargetType()
58 bool MemPass::IsTargetType(const Instruction* typeInst) const { in IsTargetType()
59 if (IsBaseTargetType(typeInst)) return true; in IsTargetType()
60 if (typeInst->opcode() == SpvOpTypeArray) { in IsTargetType()
62 get_def_use_mgr()->GetDef(typeInst->GetSingleWordOperand(1)))) { in IsTargetType()
67 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsTargetType()
69 return typeInst->WhileEachInId([this](const uint32_t* tid) { in IsTargetType()
Dtype_manager.cpp213 std::unique_ptr<Instruction> typeInst; in GetTypeInstruction() local
224 typeInst = MakeUnique<Instruction>(context(), SpvOpType##kind, 0, id, \ in GetTypeInstruction()
239 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
247 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
257 typeInst = in GetTypeInstruction()
270 typeInst = in GetTypeInstruction()
284 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
308 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
318 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
331 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
[all …]
Dscalar_replacement_pass.cpp488 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() local
490 get_decoration_mgr()->GetDecorationsFor(typeInst->result_id(), false)) { in CreateVariable()
678 const Instruction* typeInst = GetStorageType(varInst); in CanReplaceVariable() local
679 if (!CheckType(typeInst)) { in CanReplaceVariable()
694 bool ScalarReplacementPass::CheckType(const Instruction* typeInst) const { in CheckType()
695 if (!CheckTypeAnnotations(typeInst)) { in CheckType()
699 switch (typeInst->opcode()) { in CheckType()
702 if (typeInst->NumInOperands() == 0 || in CheckType()
703 IsLargerThanSizeLimit(typeInst->NumInOperands())) { in CheckType()
708 if (IsSpecConstant(typeInst->GetSingleWordInOperand(1u))) { in CheckType()
[all …]
Dmem_pass.h75 bool IsBaseTargetType(const Instruction* typeInst) const;
80 bool IsTargetType(const Instruction* typeInst) const;
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Ddead_insert_elim_pass.cpp39 uint32_t DeadInsertElimPass::NumComponents(Instruction* typeInst) { in NumComponents() argument
40 switch (typeInst->opcode()) { in NumComponents()
42 return typeInst->GetSingleWordInOperand(kTypeVectorCountInIdx); in NumComponents()
45 return typeInst->GetSingleWordInOperand(kTypeMatrixCountInIdx); in NumComponents()
49 typeInst->GetSingleWordInOperand(kTypeArrayLengthIdInIdx); in NumComponents()
60 return typeInst->NumInOperands(); in NumComponents()
70 Instruction* typeInst = get_def_use_mgr()->GetDef(insertChain->type_id()); in MarkInsertChain() local
71 if (typeInst->opcode() == SpvOpTypeArray) return; in MarkInsertChain()
79 uint32_t cnum = NumComponents(typeInst); in MarkInsertChain()
183 Instruction* typeInst = get_def_use_mgr()->GetDef(ii->type_id()); in EliminateDeadInsertsOnePass() local
[all …]
Dinline_opaque_pass.cpp30 const Instruction* typeInst = get_def_use_mgr()->GetDef(typeId); in IsOpaqueType() local
31 switch (typeInst->opcode()) { in IsOpaqueType()
38 typeInst->GetSingleWordInOperand(kTypePointerTypeIdInIdx)); in IsOpaqueType()
43 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsOpaqueType()
45 return !typeInst->WhileEachInId([this](const uint32_t* tid) { in IsOpaqueType()
Dmem_pass.cpp40 bool MemPass::IsBaseTargetType(const Instruction* typeInst) const { in IsBaseTargetType()
41 switch (typeInst->opcode()) { in IsBaseTargetType()
58 bool MemPass::IsTargetType(const Instruction* typeInst) const { in IsTargetType()
59 if (IsBaseTargetType(typeInst)) return true; in IsTargetType()
60 if (typeInst->opcode() == SpvOpTypeArray) { in IsTargetType()
62 get_def_use_mgr()->GetDef(typeInst->GetSingleWordOperand(1)))) { in IsTargetType()
67 if (typeInst->opcode() != SpvOpTypeStruct) return false; in IsTargetType()
69 return typeInst->WhileEachInId([this](const uint32_t* tid) { in IsTargetType()
Dtype_manager.cpp213 std::unique_ptr<Instruction> typeInst; in GetTypeInstruction() local
224 typeInst = MakeUnique<Instruction>(context(), SpvOpType##kind, 0, id, \ in GetTypeInstruction()
239 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
247 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
257 typeInst = in GetTypeInstruction()
270 typeInst = in GetTypeInstruction()
284 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
308 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
318 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
331 typeInst = MakeUnique<Instruction>( in GetTypeInstruction()
[all …]
Dscalar_replacement_pass.cpp488 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() local
490 get_decoration_mgr()->GetDecorationsFor(typeInst->result_id(), false)) { in CreateVariable()
678 const Instruction* typeInst = GetStorageType(varInst); in CanReplaceVariable() local
679 if (!CheckType(typeInst)) { in CanReplaceVariable()
694 bool ScalarReplacementPass::CheckType(const Instruction* typeInst) const { in CheckType()
695 if (!CheckTypeAnnotations(typeInst)) { in CheckType()
699 switch (typeInst->opcode()) { in CheckType()
702 if (typeInst->NumInOperands() == 0 || in CheckType()
703 IsLargerThanSizeLimit(typeInst->NumInOperands())) { in CheckType()
708 if (IsSpecConstant(typeInst->GetSingleWordInOperand(1u))) { in CheckType()
[all …]
Dmem_pass.h75 bool IsBaseTargetType(const Instruction* typeInst) const;
80 bool IsTargetType(const Instruction* typeInst) const;
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/
Dlocal_single_block_elim_pass.cpp37 const ir::Instruction* typeInst) const { in IsMathType()
38 switch (typeInst->opcode()) { in IsMathType()
52 const ir::Instruction* typeInst) const { in IsTargetType()
53 if (IsMathType(typeInst)) in IsTargetType()
55 if (typeInst->opcode() == SpvOpTypeArray) in IsTargetType()
56 return IsMathType(def_use_mgr_->GetDef(typeInst->GetSingleWordOperand(1))); in IsTargetType()
57 if (typeInst->opcode() != SpvOpTypeStruct) in IsTargetType()
61 typeInst->ForEachInId([&nonMathComp,this](const uint32_t* tid) { in IsTargetType()
Dlocal_access_chain_convert_pass.cpp39 const ir::Instruction* typeInst) const { in IsMathType()
40 switch (typeInst->opcode()) { in IsMathType()
54 const ir::Instruction* typeInst) const { in IsTargetType()
55 if (IsMathType(typeInst)) in IsTargetType()
57 if (typeInst->opcode() == SpvOpTypeArray) in IsTargetType()
58 return IsMathType(def_use_mgr_->GetDef(typeInst->GetSingleWordOperand(1))); in IsTargetType()
59 if (typeInst->opcode() != SpvOpTypeStruct) in IsTargetType()
63 typeInst->ForEachInId([&nonMathComp,this](const uint32_t* tid) { in IsTargetType()
Dlocal_single_store_elim_pass.cpp42 const ir::Instruction* typeInst) const { in IsMathType()
43 switch (typeInst->opcode()) { in IsMathType()
57 const ir::Instruction* typeInst) const { in IsTargetType()
58 if (IsMathType(typeInst)) in IsTargetType()
60 if (typeInst->opcode() == SpvOpTypeArray) in IsTargetType()
61 return IsMathType(def_use_mgr_->GetDef(typeInst->GetSingleWordOperand(1))); in IsTargetType()
62 if (typeInst->opcode() != SpvOpTypeStruct) in IsTargetType()
66 typeInst->ForEachInId([&nonMathComp,this](const uint32_t* tid) { in IsTargetType()
Dlocal_single_block_elim_pass.h49 bool IsMathType(const ir::Instruction* typeInst) const;
53 bool IsTargetType(const ir::Instruction* typeInst) const;
Dlocal_access_chain_convert_pass.h50 bool IsMathType(const ir::Instruction* typeInst) const;
55 bool IsTargetType(const ir::Instruction* typeInst) const;
Dlocal_ssa_elim_pass.cpp47 const ir::Instruction* typeInst) const { in IsMathType()
48 switch (typeInst->opcode()) { in IsMathType()
62 const ir::Instruction* typeInst) const { in IsTargetType()
63 if (IsMathType(typeInst)) in IsTargetType()
65 if (typeInst->opcode() == SpvOpTypeArray) in IsTargetType()
66 return IsMathType(def_use_mgr_->GetDef(typeInst->GetSingleWordOperand(1))); in IsTargetType()
67 if (typeInst->opcode() != SpvOpTypeStruct) in IsTargetType()
71 typeInst->ForEachInId([&nonMathComp,this](const uint32_t* tid) { in IsTargetType()

12