At the moment it is difficult to determine the type of nodes - unless they have an explicit type associated with them i.e. Literal or Reference. This would be very useful for checking correctness when creating or modifying PSyIR and possibly for backends as well. After discussion with @arporter and @sergisiso it is suggested that all nodes have a get_type() method (or similar) which will work out what type the node is, or returns.
At the moment it is difficult to determine the type of nodes - unless they have an explicit type associated with them i.e. Literal or Reference. This would be very useful for checking correctness when creating or modifying PSyIR and possibly for backends as well. After discussion with @arporter and @sergisiso it is suggested that all nodes have a get_type() method (or similar) which will work out what type the node is, or returns.