Home
last modified time | relevance | path

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

/external/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.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.cpp478 Instruction* typeInst = GetStorageType(varInst); in CreateVariable() local
480 get_decoration_mgr()->GetDecorationsFor(typeInst->result_id(), false)) { in CreateVariable()
668 const Instruction* typeInst = GetStorageType(varInst); in CanReplaceVariable() local
669 if (!CheckType(typeInst)) { in CanReplaceVariable()
684 bool ScalarReplacementPass::CheckType(const Instruction* typeInst) const { in CheckType()
685 if (!CheckTypeAnnotations(typeInst)) { in CheckType()
689 switch (typeInst->opcode()) { in CheckType()
692 if (typeInst->NumInOperands() == 0 || in CheckType()
693 IsLargerThanSizeLimit(typeInst->NumInOperands())) { in CheckType()
698 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;
Ddead_insert_elim_pass.h56 uint32_t NumComponents(Instruction* typeInst);
Ddead_branch_elim_pass.cpp67 Instruction* typeInst = get_def_use_mgr()->GetDef(typeId); in GetConstInteger() local
68 if (!typeInst || (typeInst->opcode() != SpvOpTypeInt)) return false; in GetConstInteger()
70 if (typeInst->GetSingleWordInOperand(0) != 32) return false; in GetConstInteger()
/external/deqp-deps/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;
Ddead_insert_elim_pass.h56 uint32_t NumComponents(Instruction* typeInst);
Ddead_branch_elim_pass.cpp67 Instruction* typeInst = get_def_use_mgr()->GetDef(typeId); in GetConstInteger() local
68 if (!typeInst || (typeInst->opcode() != SpvOpTypeInt)) return false; in GetConstInteger()
70 if (typeInst->GetSingleWordInOperand(0) != 32) return false; in GetConstInteger()
/external/deqp-deps/glslang/SPIRV/
DspvIR.h474 Instruction* typeInst = parent.getInstruction(functionType); in Function() local
475 int numParams = typeInst->getNumOperands() - 1; in Function()
477 …Instruction* param = new Instruction(firstParamId + p, typeInst->getIdOperand(p + 1), OpFunctionPa… in Function()