m2isar.transforms.infer_operands

Infer missing instruction operand declarations from their behavior.

Attributes

logger

Classes

OperandAnalyzer

Collect instruction fields and their usage from a behavior tree.

Functions

_is_register(reference)

infer_operands(instruction)

Add behavior-referenced fields missing from an instruction's operands.

Module Contents

logger[source]
class OperandAnalyzer[source]

Bases: m2isar.metamodel.utils.ExprVisitor.ExprVisitor

Collect instruction fields and their usage from a behavior tree.

uses[source]
generate(expr: m2isar.metamodel.behav.BaseNode, context=None)[source]
_record(reference, context)[source]
_(expr: m2isar.metamodel.behav.NamedReference, context=None)[source]
_is_register(reference)[source]
infer_operands(instruction: m2isar.metamodel.arch.Instruction)[source]

Add behavior-referenced fields missing from an instruction’s operands.