Arithmetic nodes, for example '+ a0 12' (add the value 12 to register a0). More...
#include <ast.hh>
Public Member Functions | |
virtual uint16_t | interpret (Interpreter::State &) override |
Interpret this node, updating the given interpreter step and returning the value (if there is one). | |
virtual llvm::Value * | compile (Compiler::State &) override |
Compile this node, returning the LLVM value representing the result, if there is one. | |
Public Attributes | |
pegmatite::ASTPtr< Op > | op |
The operation to perform. | |
pegmatite::ASTPtr< Register > | target |
The target register. More... | |
pegmatite::ASTPtr< Statement > | value |
The value to assign to the register. | |
Arithmetic nodes, for example '+ a0 12' (add the value 12 to register a0).
pegmatite::ASTPtr<Register> AST::Arithmetic::target |