microprobe.target.isa.operand.OperandDescriptor

class OperandDescriptor(mtype, is_input, is_output)[source]

Bases: object

Class to represent an operand descriptor.

__init__(mtype, is_input, is_output)[source]
Parameters:
  • mtype

  • is_input

  • is_output

Methods

__init__(mtype, is_input, is_output)

param mtype:

copy()

Return a copy of the Operand descriptor.

set_type(new_type)

param new_type:

Attributes

is_input

Is input flag (bool)

is_output

Is output flag (bool)

type

Type of the operand descriptor (Operand)




property type

Type of the operand descriptor (Operand)

property is_input

Is input flag (bool)

property is_output

Is output flag (bool)

set_type(new_type)[source]
Parameters:

new_type

copy()[source]

Return a copy of the Operand descriptor.

Return type:

OperandDescriptor