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.
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
List of information messages of the building block (
list
ofstr
)List of information pass messages of the building block (
list
ofstr
)List of requirement messages of the building block (
list
ofstr
)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
- 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