Home
last modified time | relevance | path

Searched refs:ConstructType (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dconstruct.cpp27 Construct::Construct(ConstructType construct_type, BasicBlock* entry, in Construct()
34 ConstructType Construct::type() const { return type_; } in type()
43 bool ValidateConstructSize(ConstructType type, size_t size) { in ValidateConstructSize()
45 case ConstructType::kSelection: in ValidateConstructSize()
47 case ConstructType::kContinue: in ValidateConstructSize()
49 case ConstructType::kLoop: in ValidateConstructSize()
51 case ConstructType::kCase: in ValidateConstructSize()
84 if (type() != ConstructType::kContinue || other->entry_block() != header) { in blocks()
115 type() == ConstructType::kSelection && in blocks()
150 assert(type() != ConstructType::kCase); in IsStructuredExit()
[all …]
Dconstruct.h35 enum class ConstructType : int { enum
59 Construct(ConstructType type, BasicBlock* dominator,
64 ConstructType type() const;
103 return type_ == ConstructType::kLoop || type_ == ConstructType::kSelection; in ExitBlockIsMergeBlock()
133 ConstructType type_;
Dfunction.h38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator()
40 auto h2 = std::hash<std::underlying_type<ConstructType>::type>{}( in operator()
41 static_cast<std::underlying_type<ConstructType>::type>(p.second)); in operator()
277 ConstructType t);
366 std::unordered_map<std::pair<const BasicBlock*, ConstructType>, Construct*,
Dfunction.cpp81 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
83 AddConstruct({ConstructType::kContinue, &continue_target_block}); in RegisterLoopMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
166 FindConstructForEntryBlock(current_block_, ConstructType::kLoop) in RegisterBlockEnd()
292 ConstructType type) { in FindConstructForEntryBlock()
325 entry_block_to_construct_[std::make_pair(bb, ConstructType::kContinue)]; in GetBlockDepth()
Dvalidate_cfg.cpp391 return c.type() == ConstructType::kLoop && in UpdateContinueConstructExitBlocks()
399 assert(continue_construct->type() == ConstructType::kContinue); in UpdateContinueConstructExitBlocks()
411 ConstructType type) { in ConstructNames()
415 case ConstructType::kSelection: in ConstructNames()
420 case ConstructType::kLoop: in ConstructNames()
425 case ConstructType::kContinue: in ConstructNames()
430 case ConstructType::kCase: in ConstructNames()
756 if (header->reachable() && construct.type() == ConstructType::kContinue) { in StructuredControlFlowChecks()
815 if (construct.type() == ConstructType::kSelection && in StructuredControlFlowChecks()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.cpp27 Construct::Construct(ConstructType construct_type, BasicBlock* entry, in Construct()
34 ConstructType Construct::type() const { return type_; } in type()
43 bool ValidateConstructSize(ConstructType type, size_t size) { in ValidateConstructSize()
45 case ConstructType::kSelection: in ValidateConstructSize()
47 case ConstructType::kContinue: in ValidateConstructSize()
49 case ConstructType::kLoop: in ValidateConstructSize()
51 case ConstructType::kCase: in ValidateConstructSize()
84 if (type() != ConstructType::kContinue || other->entry_block() != header) { in blocks()
115 type() == ConstructType::kSelection && in blocks()
150 assert(type() != ConstructType::kCase); in IsStructuredExit()
[all …]
Dconstruct.h35 enum class ConstructType : int { enum
59 Construct(ConstructType type, BasicBlock* dominator,
64 ConstructType type() const;
103 return type_ == ConstructType::kLoop || type_ == ConstructType::kSelection; in ExitBlockIsMergeBlock()
133 ConstructType type_;
Dfunction.h38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator()
40 auto h2 = std::hash<std::underlying_type<ConstructType>::type>{}( in operator()
41 static_cast<std::underlying_type<ConstructType>::type>(p.second)); in operator()
277 ConstructType t);
366 std::unordered_map<std::pair<const BasicBlock*, ConstructType>, Construct*,
Dfunction.cpp81 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
83 AddConstruct({ConstructType::kContinue, &continue_target_block}); in RegisterLoopMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
166 FindConstructForEntryBlock(current_block_, ConstructType::kLoop) in RegisterBlockEnd()
292 ConstructType type) { in FindConstructForEntryBlock()
325 entry_block_to_construct_[std::make_pair(bb, ConstructType::kContinue)]; in GetBlockDepth()
Dvalidate_cfg.cpp391 return c.type() == ConstructType::kLoop && in UpdateContinueConstructExitBlocks()
399 assert(continue_construct->type() == ConstructType::kContinue); in UpdateContinueConstructExitBlocks()
411 ConstructType type) { in ConstructNames()
415 case ConstructType::kSelection: in ConstructNames()
420 case ConstructType::kLoop: in ConstructNames()
425 case ConstructType::kContinue: in ConstructNames()
430 case ConstructType::kCase: in ConstructNames()
756 if (header->reachable() && construct.type() == ConstructType::kContinue) { in StructuredControlFlowChecks()
815 if (construct.type() == ConstructType::kSelection && in StructuredControlFlowChecks()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.cpp22 Construct::Construct(ConstructType construct_type, in Construct()
30 ConstructType Construct::type() const { return type_; } in type()
39 bool ValidateConstructSize(ConstructType type, size_t size) { in ValidateConstructSize()
41 case ConstructType::kSelection: return size == 0; in ValidateConstructSize()
42 case ConstructType::kContinue: return size == 1; in ValidateConstructSize()
43 case ConstructType::kLoop: return size == 1; in ValidateConstructSize()
44 case ConstructType::kCase: return size >= 1; in ValidateConstructSize()
Dconstruct.h23 enum class ConstructType : int { enum
47 Construct(ConstructType type, BasicBlock* dominator,
52 ConstructType type() const;
91 return type_ == ConstructType::kLoop || type_ == ConstructType::kSelection; in ExitBlockIsMergeBlock()
96 ConstructType type_;
Dfunction.h33 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator()
35 auto h2 = std::hash<std::underlying_type<ConstructType>::type>{}( in operator()
36 static_cast<std::underlying_type<ConstructType>::type>(p.second)); in operator()
211 ConstructType t);
300 std::unordered_map<std::pair<const BasicBlock*, ConstructType>, Construct*,
Dfunction.cpp87 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
89 AddConstruct({ConstructType::kContinue, &continue_target_block}); in RegisterLoopMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
168 FindConstructForEntryBlock(current_block_, ConstructType::kLoop) in RegisterBlockEnd()
296 ConstructType type) { in FindConstructForEntryBlock()
329 entry_block_to_construct_[std::make_pair(bb, ConstructType::kContinue)]; in GetBlockDepth()
/third_party/spirv-tools/source/val/
Dconstruct.cpp27 Construct::Construct(ConstructType construct_type, BasicBlock* entry, in Construct()
34 ConstructType Construct::type() const { return type_; } in type()
43 bool ValidateConstructSize(ConstructType type, size_t size) { in ValidateConstructSize()
45 case ConstructType::kSelection: in ValidateConstructSize()
47 case ConstructType::kContinue: in ValidateConstructSize()
49 case ConstructType::kLoop: in ValidateConstructSize()
51 case ConstructType::kCase: in ValidateConstructSize()
110 type() == ConstructType::kSelection && in blocks()
145 assert(type() != ConstructType::kCase); in IsStructuredExit()
146 if (type() == ConstructType::kLoop) { in IsStructuredExit()
[all …]
Dconstruct.h35 enum class ConstructType : int { enum
59 Construct(ConstructType type, BasicBlock* dominator,
64 ConstructType type() const;
103 return type_ == ConstructType::kLoop || type_ == ConstructType::kSelection; in ExitBlockIsMergeBlock()
133 ConstructType type_;
Dfunction.h38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator()
40 auto h2 = std::hash<std::underlying_type<ConstructType>::type>{}( in operator()
41 static_cast<std::underlying_type<ConstructType>::type>(p.second)); in operator()
277 ConstructType t);
366 std::unordered_map<std::pair<const BasicBlock*, ConstructType>, Construct*,
Dfunction.cpp81 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
83 AddConstruct({ConstructType::kContinue, &continue_target_block}); in RegisterLoopMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
166 FindConstructForEntryBlock(current_block_, ConstructType::kLoop) in RegisterBlockEnd()
292 ConstructType type) { in FindConstructForEntryBlock()
322 entry_block_to_construct_[std::make_pair(bb, ConstructType::kContinue)]; in GetBlockDepth()
Dvalidate_cfg.cpp379 return c.type() == ConstructType::kLoop && in UpdateContinueConstructExitBlocks()
387 assert(continue_construct->type() == ConstructType::kContinue); in UpdateContinueConstructExitBlocks()
399 ConstructType type) { in ConstructNames()
403 case ConstructType::kSelection: in ConstructNames()
408 case ConstructType::kLoop: in ConstructNames()
413 case ConstructType::kContinue: in ConstructNames()
418 case ConstructType::kCase: in ConstructNames()
744 if (header->reachable() && construct.type() == ConstructType::kContinue) { in StructuredControlFlowChecks()
803 if (construct.type() == ConstructType::kSelection && in StructuredControlFlowChecks()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/
Dvalidate_cfg.cpp106 return c.type() == ConstructType::kLoop && in UpdateContinueConstructExitBlocks()
114 assert(continue_construct->type() == ConstructType::kContinue); in UpdateContinueConstructExitBlocks()
124 tuple<string, string, string> ConstructNames(ConstructType type) { in ConstructNames()
128 case ConstructType::kSelection: in ConstructNames()
133 case ConstructType::kLoop: in ConstructNames()
138 case ConstructType::kContinue: in ConstructNames()
143 case ConstructType::kCase: in ConstructNames()
238 if (header->reachable() && construct.type() == ConstructType::kContinue) { in StructuredControlFlowChecks()