CIRCT  20.0.0git
Macros | Typedefs | Enumerations | Functions
RtgTool.h File Reference
#include "mlir-c/Pass.h"
Include dependency graph for RtgTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_C_API_STRUCT(name, storage)
 

Typedefs

typedef enum CiretRtgToolOutputFormat CirctRtgToolOutputFormat
 

Enumerations

enum  CiretRtgToolOutputFormat { CIRCT_RTGTOOL_OUTPUT_FORMAT_MLIR , CIRCT_RTGTOOL_OUTPUT_FORMAT_ELABORATED_MLIR , CIRCT_RTGTOOL_OUTPUT_FORMAT_ASM }
 

Functions

 DEFINE_C_API_STRUCT (CirctRtgToolOptions, void)
 
MLIR_CAPI_EXPORTED CirctRtgToolOptions circtRtgToolOptionsCreateDefault (unsigned seed)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsDestroy (CirctRtgToolOptions options)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetOutputFormat (CirctRtgToolOptions options, CirctRtgToolOutputFormat format)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetSeed (CirctRtgToolOptions options, unsigned seed)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetVerifyPasses (CirctRtgToolOptions options, bool enable)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetVerbosePassExecution (CirctRtgToolOptions options, bool enable)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetUnsupportedInstructions (CirctRtgToolOptions options, unsigned numInstr, const char **unsupportedInstructions)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsAddUnsupportedInstruction (CirctRtgToolOptions options, const char *unsupportedInstruction)
 
MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetUnsupportedInstructionsFile (CirctRtgToolOptions options, const char *filename)
 
MLIR_CAPI_EXPORTED void circtRtgToolRandomizerPipeline (MlirPassManager pm, CirctRtgToolOptions options)
 

Macro Definition Documentation

◆ DEFINE_C_API_STRUCT

#define DEFINE_C_API_STRUCT (   name,
  storage 
)
Value:
struct name { \
storage *ptr; \
}; \
typedef struct name name

Definition at line 22 of file RtgTool.h.

Typedef Documentation

◆ CirctRtgToolOutputFormat

Enumeration Type Documentation

◆ CiretRtgToolOutputFormat

Enumerator
CIRCT_RTGTOOL_OUTPUT_FORMAT_MLIR 
CIRCT_RTGTOOL_OUTPUT_FORMAT_ELABORATED_MLIR 
CIRCT_RTGTOOL_OUTPUT_FORMAT_ASM 

Definition at line 33 of file RtgTool.h.

Function Documentation

◆ circtRtgToolOptionsAddUnsupportedInstruction()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsAddUnsupportedInstruction ( CirctRtgToolOptions  options,
const char *  unsupportedInstruction 
)

Definition at line 74 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsCreateDefault()

MLIR_CAPI_EXPORTED CirctRtgToolOptions circtRtgToolOptionsCreateDefault ( unsigned  seed)

Definition at line 24 of file RtgTool.cpp.

References wrap().

◆ circtRtgToolOptionsDestroy()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsDestroy ( CirctRtgToolOptions  options)

Definition at line 29 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsSetOutputFormat()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetOutputFormat ( CirctRtgToolOptions  options,
CirctRtgToolOutputFormat  format 
)

◆ circtRtgToolOptionsSetSeed()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetSeed ( CirctRtgToolOptions  options,
unsigned  seed 
)

Definition at line 51 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsSetUnsupportedInstructions()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetUnsupportedInstructions ( CirctRtgToolOptions  options,
unsigned  numInstr,
const char **  unsupportedInstructions 
)

Definition at line 65 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsSetUnsupportedInstructionsFile()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetUnsupportedInstructionsFile ( CirctRtgToolOptions  options,
const char *  filename 
)

Definition at line 80 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsSetVerbosePassExecution()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetVerbosePassExecution ( CirctRtgToolOptions  options,
bool  enable 
)

Definition at line 60 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolOptionsSetVerifyPasses()

MLIR_CAPI_EXPORTED void circtRtgToolOptionsSetVerifyPasses ( CirctRtgToolOptions  options,
bool  enable 
)

Definition at line 55 of file RtgTool.cpp.

References unwrap().

◆ circtRtgToolRandomizerPipeline()

MLIR_CAPI_EXPORTED void circtRtgToolRandomizerPipeline ( MlirPassManager  pm,
CirctRtgToolOptions  options 
)

Definition at line 89 of file RtgTool.cpp.

References circt::rtg::populateRandomizerPipeline(), and unwrap().

◆ DEFINE_C_API_STRUCT()

DEFINE_C_API_STRUCT ( CirctRtgToolOptions  ,
void   
)