BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
|
Represents a function call in the AST. More...
#include <ast.h>
Public Member Functions | |
Call (int id, std::shared_ptr< Node > code) | |
Call () | |
void | setId (int id) |
Sets the ID of the function being called. | |
void | setCode (std::shared_ptr< Node > code) |
Sets the code block of the function being called. | |
void | gen (Generator &) override |
Generates code for this AST node. | |
void | print (int indent) override |
Prints the structure of this AST node. | |
![]() | |
virtual | ~Node ()=default |
Public Attributes | |
int | conditionalCounts |
Represents a function call in the AST.
Manages the function's parameters, ID, and code block.
|
inline |
|
inline |
|
overridevirtual |
Generates code for this AST node.
generator | The generator object used to manage code generation. |
Implements Node.
|
overridevirtual |
Prints the structure of this AST node.
indent | The number of spaces to indent the output. |
Implements Node.
|
inline |
Sets the code block of the function being called.
code | The code block. |
|
inline |
Sets the ID of the function being called.
id | The function ID. |
int Call::conditionalCounts |