Home
last modified time | relevance | path

Searched refs:struct_id (Results 1 – 12 of 12) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_annotation.cpp136 const uint32_t struct_id = inst->GetOperandAs<uint32_t>(i); in ValidateGroupMemberDecorate() local
138 auto struct_instr = _.FindDef(struct_id); in ValidateGroupMemberDecorate()
142 << _.getIdName(struct_id) << "' is not a struct type."; in ValidateGroupMemberDecorate()
150 << _.getIdName(struct_id) in ValidateGroupMemberDecorate()
176 const uint32_t struct_id = inst->word(1); in RegisterDecorations() local
184 _.RegisterDecorationForId(struct_id, in RegisterDecorations()
216 const uint32_t struct_id = inst->word(i); in RegisterDecorations() local
220 _.RegisterDecorationsForStructMember(struct_id, index, in RegisterDecorations()
Dvalidate_decorations.cpp90 bool isBuiltInStruct(uint32_t struct_id, ValidationState_t& vstate) { in isBuiltInStruct() argument
91 const auto& decorations = vstate.id_decorations(struct_id); in isBuiltInStruct()
111 std::vector<uint32_t> getStructMembers(uint32_t struct_id, in getStructMembers() argument
113 const auto inst = vstate.FindDef(struct_id); in getStructMembers()
118 std::vector<uint32_t> getStructMembers(uint32_t struct_id, SpvOp type, in getStructMembers() argument
121 for (auto id : getStructMembers(struct_id, vstate)) { in getStructMembers()
131 bool isMissingOffsetInStruct(uint32_t struct_id, ValidationState_t& vstate) { in isMissingOffsetInStruct() argument
132 std::vector<bool> hasOffset(getStructMembers(struct_id, vstate).size(), in isMissingOffsetInStruct()
135 for (auto& decoration : vstate.id_decorations(struct_id)) { in isMissingOffsetInStruct()
143 for (auto id : getStructMembers(struct_id, SpvOpTypeStruct, vstate)) { in isMissingOffsetInStruct()
[all …]
Dvalidate_type.cpp190 const uint32_t struct_id = inst->GetOperandAs<uint32_t>(0); in ValidateTypeStruct() local
211 << "type. Structure <id> " << _.getIdName(struct_id) in ValidateTypeStruct()
248 for (auto decoration : _.id_decorations(struct_id)) { in ValidateTypeStruct()
262 << struct_id << " does not meet this requirement."; in ValidateTypeStruct()
265 _.RegisterStructTypeWithBuiltInMember(struct_id); in ValidateTypeStruct()
Dvalidation_state.h385 void RegisterDecorationsForStructMember(uint32_t struct_id, in RegisterDecorationsForStructMember() argument
388 RegisterDecorationsForId(struct_id, begin, end); in RegisterDecorationsForStructMember()
389 for (auto& decoration : id_decorations_[struct_id]) { in RegisterDecorationsForStructMember()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_annotation.cpp136 const uint32_t struct_id = inst->GetOperandAs<uint32_t>(i); in ValidateGroupMemberDecorate() local
138 auto struct_instr = _.FindDef(struct_id); in ValidateGroupMemberDecorate()
142 << _.getIdName(struct_id) << "' is not a struct type."; in ValidateGroupMemberDecorate()
150 << _.getIdName(struct_id) in ValidateGroupMemberDecorate()
176 const uint32_t struct_id = inst->word(1); in RegisterDecorations() local
184 _.RegisterDecorationForId(struct_id, in RegisterDecorations()
216 const uint32_t struct_id = inst->word(i); in RegisterDecorations() local
220 _.RegisterDecorationsForStructMember(struct_id, index, in RegisterDecorations()
Dvalidate_decorations.cpp90 bool isBuiltInStruct(uint32_t struct_id, ValidationState_t& vstate) { in isBuiltInStruct() argument
91 const auto& decorations = vstate.id_decorations(struct_id); in isBuiltInStruct()
111 std::vector<uint32_t> getStructMembers(uint32_t struct_id, in getStructMembers() argument
113 const auto inst = vstate.FindDef(struct_id); in getStructMembers()
118 std::vector<uint32_t> getStructMembers(uint32_t struct_id, SpvOp type, in getStructMembers() argument
121 for (auto id : getStructMembers(struct_id, vstate)) { in getStructMembers()
131 bool isMissingOffsetInStruct(uint32_t struct_id, ValidationState_t& vstate) { in isMissingOffsetInStruct() argument
132 std::vector<bool> hasOffset(getStructMembers(struct_id, vstate).size(), in isMissingOffsetInStruct()
135 for (auto& decoration : vstate.id_decorations(struct_id)) { in isMissingOffsetInStruct()
143 for (auto id : getStructMembers(struct_id, SpvOpTypeStruct, vstate)) { in isMissingOffsetInStruct()
[all …]
Dvalidate_type.cpp168 const uint32_t struct_id = inst->GetOperandAs<uint32_t>(0); in ValidateTypeStruct() local
190 << _.getIdName(struct_id) << " contains structure <id> " in ValidateTypeStruct()
211 for (auto decoration : _.id_decorations(struct_id)) { in ValidateTypeStruct()
225 << struct_id << " does not meet this requirement."; in ValidateTypeStruct()
228 _.RegisterStructTypeWithBuiltInMember(struct_id); in ValidateTypeStruct()
Dvalidation_state.h375 void RegisterDecorationsForStructMember(uint32_t struct_id, in RegisterDecorationsForStructMember() argument
378 RegisterDecorationsForId(struct_id, begin, end); in RegisterDecorationsForStructMember()
379 for (auto& decoration : id_decorations_[struct_id]) { in RegisterDecorationsForStructMember()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dupgrade_memory_model.cpp612 uint32_t struct_id = in UpgradeExtInst() local
620 ext_inst->SetResultType(struct_id); in UpgradeExtInst()
/external/bcc/src/cc/frontends/b/
Dnode.h456 StructVariableDeclStmtNode(IdentExprNode::Ptr struct_id, IdentExprNode::Ptr id,
458 : VariableDeclStmtNode(move(id), t), struct_id_(move(struct_id)) {} in VariableDeclStmtNode()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_decoration_test.cpp80 const uint32_t struct_id = 2; in TEST_F() local
82 vstate_->id_decorations(struct_id), in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_decoration_test.cpp80 const uint32_t struct_id = 2; in TEST_F() local
82 vstate_->id_decorations(struct_id), in TEST_F()