| 1003 | } |
| 1004 | |
| 1005 | static unique_ptr<Instr> parse_insertvalue(string_view name) { |
| 1006 | auto &type = parse_type(); |
| 1007 | auto &val = parse_operand(type); |
| 1008 | parse_comma(); |
| 1009 | auto &elt_ty = parse_type(); |
| 1010 | auto &elt = parse_operand(elt_ty); |
| 1011 | auto instr = make_unique<InsertValue>(type, string(name), val, elt); |
| 1012 | |
| 1013 | while (true) { |
| 1014 | if (!tokenizer.consumeIf(COMMA)) |
| 1015 | break; |
| 1016 | instr->addIdx((unsigned)parse_number()); |
| 1017 | } |
| 1018 | |
| 1019 | return instr; |
| 1020 | } |
| 1021 | |
| 1022 | static ICmp::Cond parse_icmp_cond() { |
| 1023 | switch (auto t = *tokenizer) { |
no test coverage detected