CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::rtg Namespace Reference

Classes

class  InstructionOpAdaptorTrait
struct  RNGStateResource
 A custom resource representing the RNG state. More...
struct  MutResource
 Abstract memory resource for RTG mutable-cell operations. More...
struct  DictEntry
 Defines an entry in an !rtg.dict. More...
class  RTGOpVisitor
 This helps visit TypeOp nodes. More...
struct  RTGReducePatternDialectInterface
 A dialect interface to provide reduction patterns to a reducer tool. More...
struct  RandomizationPipelineOptions
 Options for the RTG randomization pipeline. More...
struct  EmissionPipelineOptions
 Options for the RTG emission pipeline. More...

Functions

bool operator< (const DictEntry &entry, const DictEntry &other)
bool operator== (const DictEntry &entry, const DictEntry &other)
llvm::hash_code hash_value (const DictEntry &entry)
void registerReducePatternDialectInterface (mlir::DialectRegistry &registry)
 Register the RTG Reduction pattern dialect interface to the given registry.
void populateRandomizationPipeline (mlir::OpPassManager &pm, const RandomizationPipelineOptions &options)
 Adds the randomization pipeline to the OpPassManager.
void populateEmissionPipeline (mlir::OpPassManager &pm, const EmissionPipelineOptions &options)
 Adds the emission pipeline to the OpPassManager.
void registerPipelines ()
 Registers all pipelines for the rtg dialect.

Function Documentation

◆ hash_value()

llvm::hash_code circt::rtg::hash_value ( const DictEntry & entry)
inline

Definition at line 33 of file RTGTypes.h.

References circt::rtg::DictEntry::name, and circt::rtg::DictEntry::type.

◆ operator<()

bool circt::rtg::operator< ( const DictEntry & entry,
const DictEntry & other )
inline

Definition at line 25 of file RTGTypes.h.

References circt::rtg::DictEntry::name.

◆ operator==()

bool circt::rtg::operator== ( const DictEntry & entry,
const DictEntry & other )
inline

Definition at line 29 of file RTGTypes.h.

References circt::rtg::DictEntry::name, and circt::rtg::DictEntry::type.

◆ populateEmissionPipeline()

void circt::rtg::populateEmissionPipeline ( mlir::OpPassManager & pm,
const EmissionPipelineOptions & options )

Adds the emission pipeline to the OpPassManager.

Referenced by registerPipelines().

◆ populateRandomizationPipeline()

void circt::rtg::populateRandomizationPipeline ( mlir::OpPassManager & pm,
const RandomizationPipelineOptions & options )

Adds the randomization pipeline to the OpPassManager.

Referenced by registerPipelines().

◆ registerPipelines()

void circt::rtg::registerPipelines ( )

Registers all pipelines for the rtg dialect.

Definition at line 71 of file RTGPassPipelines.cpp.

References populateEmissionPipeline(), and populateRandomizationPipeline().

Referenced by circt::registerAllPasses(), and registerRTGPipelines().

◆ registerReducePatternDialectInterface()

void circt::rtg::registerReducePatternDialectInterface ( mlir::DialectRegistry & registry)

Register the RTG Reduction pattern dialect interface to the given registry.

Definition at line 57 of file RTGReductions.cpp.

References registerReducePatternDialectInterface().

Referenced by registerReducePatternDialectInterface().