microprobe.code.benchmark.BuildingBlock

class BuildingBlock[source]

Bases: object

Class to represent a benchmark building block.

Class to represent a benchmark building block. The different building blocks of a benchmark such as function, basic blocks, loops, etc. should inherit from this class.

__init__()[source]

Methods

__init__()

add_info(message)

Add an information message to the building block.

add_pass_info(message)

Add an pass information message to the building block.

add_requirement(message)

Add an requirement message to the building block.

add_warning(message)

Add a warning message to the building block.

Attributes

info

List of information messages of the building block (list of str)

pass_info

List of information pass messages of the building block (list of str)

requirements

List of requirement messages of the building block (list of str)

warnings

List of warnings of the building block




add_warning(message: str)[source]

Add a warning message to the building block.

Parameters:

message (str) – Warning message

property warnings

List of warnings of the building block

List of warnings of the building block (list of str)

add_pass_info(message: str)[source]

Add an pass information message to the building block.

Parameters:

message (str) – Information pass message

add_info(message: str)[source]

Add an information message to the building block.

Parameters:

message (str) – Information message

property info

List of information messages of the building block (list of str)

property pass_info

List of information pass messages of the building block (list of str)

add_requirement(message: str)[source]

Add an requirement message to the building block.

Parameters:

message (str) – Requirement message

property requirements

List of requirement messages of the building block (list of str)