prga.passes.flow module

class prga.passes.flow.Flow(*passes)

Bases: prga.util.Object

Flow manager of PRGA.

Parameters:*args – Passes
_Flow__key_is_irrelevent(key, other)

Check if key and other are not prefix of each other.

Parameters:
  • key (str) – Dot-separated key list
  • other (str) – Dot-separated key list
Returns:

Return type:

bool

_Flow__key_is_prefix(key, other)

Check if key is a prefix of other.

Parameters:
  • key (str) – Dot-separated key list
  • other (str) – Dot-separated key list
Returns:

Return type:

bool

_passes
add_pass(pass_)

Add one pass to the flow.

Parameters:pass (AbstractPass) –
run(context)

Run all added passes on context.

Parameters:context (Context) –