Binary_Instruction

class Binary_Instruction (abstract, logical)

A binary operator.

Direct parents:
Ancestor classes and implemented interfaces:

Execution_Node, Instruction, Logical_IR_Root

Direct child classes:

Field

Kind

Type

Description

Left (from Instruction)

syntactic

interface Writing_Operand_Interface

Output operand where the result of the instruction is stored.

First

syntactic

interface Reading_Or_Address_Operand_Interface

First input operand of the binary instruction.

Second

syntactic

interface Reading_Or_Address_Operand_Interface

Second input operand of the binary instruction.

Left_Physical (from Instruction)

semantic to physical

class Physical_IR_Root

This edge instead points to the expression that represents the left operand, i.e., the expression that computed the glvalue where the result of the instruction will be stored.

For example, in v = 42; (a LIR Integer_Literal_Instruction):

Its_Type (from Instruction)

semantic

class Type

Result type of the instruction, needed especially to distinguish assignments of complete structs from assignments of their first fields. Also needed to determine multiplication factor for pointer additions. For Cast_Instructions, this is the type casted to

Physical_For_Assignment (from Instruction)

semantic to physical

class Physical_IR_Root

Returns a PIR node for the assignment of the value that was computed by this instruction.

For example, in v = 42; (a LIR Integer_Literal_Instruction):

Parent (from Logical_IR_Root)

semantic

class Logical_IR_Root

Physical (from Logical_IR_Root)

semantic to physical

class Physical_IR_Root