| 1180 | } |
| 1181 | |
| 1182 | static unique_ptr<Instr> parse_insertelement(string_view name) { |
| 1183 | // %p = insertelement vty %v, ty %n, ty %idx |
| 1184 | auto &ty_a = parse_type(); |
| 1185 | auto &a = parse_operand(ty_a); |
| 1186 | parse_comma(); |
| 1187 | auto &ty_e = parse_type(); |
| 1188 | auto &e = parse_operand(ty_e); |
| 1189 | parse_comma(); |
| 1190 | auto &ty_idx = parse_type(); |
| 1191 | auto &idx = parse_operand(ty_idx); |
| 1192 | return make_unique<InsertElement>(get_sym_type(), string(name), a, e, idx); |
| 1193 | } |
| 1194 | |
| 1195 | static unique_ptr<Instr> parse_shufflevector(string_view name) { |
| 1196 | // %p = shufflevector ty %a, ty %b, ty %c |
no test coverage detected