|
CIRCT 23.0.0git
|
A utility class that generates metasyntactic variable names for use in reductions. More...
#include <ReductionUtils.h>

Public Member Functions | |
| MetasyntacticNameGenerator ()=default | |
| const char * | getNextName () |
| Get the next metasyntactic name in the sequence. | |
| void | reset () |
| Reset the generator to start from the beginning of the sequence. | |
Private Attributes | |
| size_t | index = 0 |
Static Private Attributes | |
| static constexpr const char * | names [48] |
A utility class that generates metasyntactic variable names for use in reductions.
This provides a consistent naming scheme across different reduction patterns.
Definition at line 28 of file ReductionUtils.h.
|
default |
| const char * MetasyntacticNameGenerator::getNextName | ( | ) |
Get the next metasyntactic name in the sequence.
Definition at line 22 of file ReductionUtils.cpp.
Referenced by ModuleNameSanitizer::rewrite().
|
inline |
Reset the generator to start from the beginning of the sequence.
Definition at line 36 of file ReductionUtils.h.
References index.
|
private |
Definition at line 39 of file ReductionUtils.h.
Referenced by getNextName(), and reset().
|
staticconstexprprivate |
Definition at line 40 of file ReductionUtils.h.
Referenced by getNextName().