| 208 | struct PrioSelector : public NodeOpsSelector |
| 209 | { |
| 210 | NodeOps* Select(const CPUInfo* cpu_info, Node* node) |
| 211 | { |
| 212 | auto begin = prio_list.begin(); |
| 213 | auto end = prio_list.end(); |
| 214 | |
| 215 | for(auto ir = begin; ir != end; ir++) |
| 216 | { |
| 217 | auto match_func = ir->second; |
| 218 | |
| 219 | auto ops = match_func(cpu_info, node); |
| 220 | |
| 221 | if(ops) |
| 222 | { |
| 223 | ops->need_free = true; |
| 224 | return ops; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | return nullptr; |
| 229 | } |
| 230 | |
| 231 | bool Register(int priority, select_node_ops_t func) |
| 232 | { |
no test coverage detected