CIRCT  20.0.0git
Public Types | Public Member Functions | Private Attributes | List of all members
circt::rtg::RtgToolOptions Class Reference

The set of options used to control the behavior of the RTG tool. More...

#include <RtgToolOptions.h>

Collaboration diagram for circt::rtg::RtgToolOptions:
Collaboration graph
[legend]

Public Types

enum class  OutputFormat { MLIR , ElaboratedMLIR , ASM }
 

Public Member Functions

 RtgToolOptions (unsigned seed)
 
void setOutputFormat (OutputFormat format)
 
OutputFormat getOutputFormat () const
 
RtgToolOptionssetSeed (unsigned seed)
 
unsigned getSeed () const
 
RtgToolOptionssetVerifyPasses (bool enable)
 
bool getVerifyPasses () const
 
RtgToolOptionssetVerbosePassExecution (bool enable)
 
bool getVerbosePassExecution () const
 
RtgToolOptionssetUnsupportedInstructions (SmallVector< std::string > &&instr)
 
RtgToolOptionssetUnsupportedInstructions (ArrayRef< std::string > instr)
 
RtgToolOptionsaddUnsupportedInstruction (const std::string &instr)
 
ArrayRef< std::string > getUnsupportedInstructions () const
 
RtgToolOptionssetUnsupportedInstructionsFile (StringRef filename)
 
std::string getUnsupportedInstructionsFile () const
 

Private Attributes

OutputFormat outputFormat = OutputFormat::ElaboratedMLIR
 
unsigned seed
 
bool verifyPasses = true
 
bool verbosePassExecution = false
 
SmallVector< std::string > unsupportedInstructions
 
std::string unsupportedInstructionsFile
 

Detailed Description

The set of options used to control the behavior of the RTG tool.

Definition at line 25 of file RtgToolOptions.h.

Member Enumeration Documentation

◆ OutputFormat

Enumerator
MLIR 
ElaboratedMLIR 
ASM 

Definition at line 27 of file RtgToolOptions.h.

Constructor & Destructor Documentation

◆ RtgToolOptions()

circt::rtg::RtgToolOptions::RtgToolOptions ( unsigned  seed)
inline

Definition at line 29 of file RtgToolOptions.h.

Member Function Documentation

◆ addUnsupportedInstruction()

RtgToolOptions& circt::rtg::RtgToolOptions::addUnsupportedInstruction ( const std::string &  instr)
inline

Definition at line 60 of file RtgToolOptions.h.

References unsupportedInstructions.

◆ getOutputFormat()

OutputFormat circt::rtg::RtgToolOptions::getOutputFormat ( ) const
inline

Definition at line 32 of file RtgToolOptions.h.

References outputFormat.

Referenced by circt::rtg::populateRandomizerPipeline().

◆ getSeed()

unsigned circt::rtg::RtgToolOptions::getSeed ( ) const
inline

Definition at line 38 of file RtgToolOptions.h.

References seed.

◆ getUnsupportedInstructions()

ArrayRef<std::string> circt::rtg::RtgToolOptions::getUnsupportedInstructions ( ) const
inline

Definition at line 64 of file RtgToolOptions.h.

References unsupportedInstructions.

◆ getUnsupportedInstructionsFile()

std::string circt::rtg::RtgToolOptions::getUnsupportedInstructionsFile ( ) const
inline

Definition at line 72 of file RtgToolOptions.h.

References unsupportedInstructionsFile.

◆ getVerbosePassExecution()

bool circt::rtg::RtgToolOptions::getVerbosePassExecution ( ) const
inline

Definition at line 50 of file RtgToolOptions.h.

References verbosePassExecution.

Referenced by circt::rtg::populateRandomizerPipeline().

◆ getVerifyPasses()

bool circt::rtg::RtgToolOptions::getVerifyPasses ( ) const
inline

Definition at line 44 of file RtgToolOptions.h.

References verifyPasses.

Referenced by circt::rtg::populateRandomizerPipeline().

◆ setOutputFormat()

void circt::rtg::RtgToolOptions::setOutputFormat ( OutputFormat  format)
inline

Definition at line 31 of file RtgToolOptions.h.

References outputFormat.

◆ setSeed()

RtgToolOptions& circt::rtg::RtgToolOptions::setSeed ( unsigned  seed)
inline

Definition at line 34 of file RtgToolOptions.h.

References seed.

◆ setUnsupportedInstructions() [1/2]

RtgToolOptions& circt::rtg::RtgToolOptions::setUnsupportedInstructions ( ArrayRef< std::string >  instr)
inline

Definition at line 56 of file RtgToolOptions.h.

References unsupportedInstructions.

◆ setUnsupportedInstructions() [2/2]

RtgToolOptions& circt::rtg::RtgToolOptions::setUnsupportedInstructions ( SmallVector< std::string > &&  instr)
inline

Definition at line 52 of file RtgToolOptions.h.

References unsupportedInstructions.

◆ setUnsupportedInstructionsFile()

RtgToolOptions& circt::rtg::RtgToolOptions::setUnsupportedInstructionsFile ( StringRef  filename)
inline

Definition at line 68 of file RtgToolOptions.h.

References unsupportedInstructionsFile.

◆ setVerbosePassExecution()

RtgToolOptions& circt::rtg::RtgToolOptions::setVerbosePassExecution ( bool  enable)
inline

Definition at line 46 of file RtgToolOptions.h.

References verbosePassExecution.

◆ setVerifyPasses()

RtgToolOptions& circt::rtg::RtgToolOptions::setVerifyPasses ( bool  enable)
inline

Definition at line 40 of file RtgToolOptions.h.

References verifyPasses.

Member Data Documentation

◆ outputFormat

OutputFormat circt::rtg::RtgToolOptions::outputFormat = OutputFormat::ElaboratedMLIR
private

Definition at line 77 of file RtgToolOptions.h.

Referenced by getOutputFormat(), and setOutputFormat().

◆ seed

unsigned circt::rtg::RtgToolOptions::seed
private

Definition at line 78 of file RtgToolOptions.h.

Referenced by getSeed(), and setSeed().

◆ unsupportedInstructions

SmallVector<std::string> circt::rtg::RtgToolOptions::unsupportedInstructions
private

◆ unsupportedInstructionsFile

std::string circt::rtg::RtgToolOptions::unsupportedInstructionsFile
private

◆ verbosePassExecution

bool circt::rtg::RtgToolOptions::verbosePassExecution = false
private

Definition at line 80 of file RtgToolOptions.h.

Referenced by getVerbosePassExecution(), and setVerbosePassExecution().

◆ verifyPasses

bool circt::rtg::RtgToolOptions::verifyPasses = true
private

Definition at line 79 of file RtgToolOptions.h.

Referenced by getVerifyPasses(), and setVerifyPasses().


The documentation for this class was generated from the following file: