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

Function parse_fp_unaryop

tools/alive_parser.cpp:833–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833static unique_ptr<Instr> parse_fp_unaryop(string_view name, token op_token) {
834 auto fmath = parse_fast_math(op_token);
835
836 FpUnaryOp::Op op;
837 switch (op_token) {
838 case FABS: op = FpUnaryOp::FAbs; break;
839 case FNEG: op = FpUnaryOp::FNeg; break;
840 default:
841 UNREACHABLE();
842 }
843
844 auto &ty = parse_type();
845 auto &a = parse_operand(ty);
846 return make_unique<FpUnaryOp>(ty, string(name), a, op, fmath,
847 FpRoundingMode(), FpExceptionMode());
848}
849
850static unique_ptr<Instr>
851parse_fp_unary_verticalzip(string_view name, token op_token) {

Callers 1

parse_instrFunction · 0.85

Calls 3

parse_fast_mathFunction · 0.85
FpRoundingModeClass · 0.85
FpExceptionModeClass · 0.85

Tested by

no test coverage detected