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
pass_info List of information pass messages of the building block
requirements List of requirement messages of the building block
warnings List of warnings of the building block



add_warning(message)[source]

Add a warning message to the building block.

Parameters:message (str) – Warning message
warnings

List of warnings of the building block

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

add_pass_info(message)[source]

Add an pass information message to the building block.

Parameters:message (str) – Information pass message
add_info(message)[source]

Add an information message to the building block.

Parameters:message (str) – Information message
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)

add_requirement(message)[source]

Add an requirement message to the building block.

Parameters:message (str) – Requirement message
requirements

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