MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / parse_select

Function parse_select

tools/alive_parser.cpp:978–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978static unique_ptr<Instr> parse_select(string_view name) {
979 // select condty %cond, ty %a, ty %b
980 auto &condty = parse_type();
981 auto &cond = parse_operand(condty);
982 parse_comma();
983 auto &aty = parse_type();
984 auto &a = parse_operand(aty);
985 parse_comma();
986 auto &bty = parse_type();
987 auto &b = parse_operand(bty);
988 return make_unique<Select>(aty, string(name), cond, a, b);
989}
990
991static unique_ptr<Instr> parse_extractvalue(string_view name) {
992 auto &type = parse_type();

Callers 1

parse_instrFunction · 0.85

Calls 1

parse_commaFunction · 0.85

Tested by

no test coverage detected