search for: binary_expr

Displaying 3 results from an estimated 3 matches for "binary_expr".

2014 Jun 23
3
[LLVMdev] Proposal: Improved regression test support for RuntimeDyld/MCJIT.
...in the concrete, so I've attached a basic implementation of this idea. The following discussion is in terms of my patch, but I'm very open to tweaking all this. The language I've implemented is: test = expr '=' expr expr = '*{' number '}' load_addr_expr | binary_expr | '(' expr ')' | symbol | number load_addr_expr = symbol | '(' symbol '+' number ')' | '(' symbol '-' number ')' binary_expr = expr '+' expr | expr '-' expr...
2014 Jun 24
4
[LLVMdev] Proposal: Improved regression test support for RuntimeDyld/MCJIT.
...ea. The following discussion is in terms of >> my patch, but I'm very open to tweaking all this. >> >> The language I've implemented is: >> >> test = expr '=' expr >> >> expr = '*{' number '}' load_addr_expr >> | binary_expr >> | '(' expr ')' >> | symbol >> | number >> >> load_addr_expr = symbol >> | '(' symbol '+' number ')' >> | '(' symbol '-' number ')' >> >>...
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...tion()) + name = static_cast<special_substitution*>(basename)-> + get_name_for_ctor_dtor_name(); + else + name = basename->get_base_name(); + s += name; + } +}; + +// -- Expression nodes -- + +class expr : public node +{ +}; + +class binary_expr : public expr +{ + const node* lhs; + const string_ref infix_operator; + const node* rhs; +public: + binary_expr(node* lhs, string_ref infix_operator, node* rhs) + : lhs(lhs), infix_operator(infix_operator), rhs(rhs) {} + + void print_left(stream& s) const override +...