| 94 | } |
| 95 | |
| 96 | bool Loop::IsSupportedCondition(spv::Op condition) const { |
| 97 | switch (condition) { |
| 98 | // < |
| 99 | case spv::Op::OpULessThan: |
| 100 | case spv::Op::OpSLessThan: |
| 101 | // > |
| 102 | case spv::Op::OpUGreaterThan: |
| 103 | case spv::Op::OpSGreaterThan: |
| 104 | |
| 105 | // >= |
| 106 | case spv::Op::OpSGreaterThanEqual: |
| 107 | case spv::Op::OpUGreaterThanEqual: |
| 108 | // <= |
| 109 | case spv::Op::OpSLessThanEqual: |
| 110 | case spv::Op::OpULessThanEqual: |
| 111 | |
| 112 | return true; |
| 113 | default: |
| 114 | return false; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | int64_t Loop::GetResidualConditionValue(spv::Op condition, |
| 119 | int64_t initial_value, |
no outgoing calls
no test coverage detected