| 1170 | } |
| 1171 | |
| 1172 | static unique_ptr<Instr> parse_extractelement(string_view name) { |
| 1173 | // %p = extractelement vty %v, ty %idx |
| 1174 | auto &ty_a = parse_type(); |
| 1175 | auto &a = parse_operand(ty_a); |
| 1176 | parse_comma(); |
| 1177 | auto &ty_idx = parse_type(); |
| 1178 | auto &idx = parse_operand(ty_idx); |
| 1179 | return make_unique<ExtractElement>(get_sym_type(), string(name), a, idx); |
| 1180 | } |
| 1181 | |
| 1182 | static unique_ptr<Instr> parse_insertelement(string_view name) { |
| 1183 | // %p = insertelement vty %v, ty %n, ty %idx |
no test coverage detected