CIRCT
20.0.0git
|
#include "circt-c/Firtool/Firtool.h"
#include "circt/Firtool/Firtool.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Pass.h"
#include "mlir/CAPI/Support.h"
#include "mlir/CAPI/Utils.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Functions | |
DEFINE_C_API_PTR_METHODS (CirctFirtoolFirtoolOptions, circt::firtool::FirtoolOptions) CirctFirtoolFirtoolOptions circtFirtoolOptionsCreateDefault() | |
void | circtFirtoolOptionsDestroy (CirctFirtoolFirtoolOptions options) |
void | circtFirtoolOptionsSetOutputFilename (CirctFirtoolFirtoolOptions options, MlirStringRef filename) |
void | circtFirtoolOptionsSetDisableUnknownAnnotations (CirctFirtoolFirtoolOptions options, bool disable) |
void | circtFirtoolOptionsSetDisableAnnotationsClassless (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetLowerAnnotationsNoRefTypePorts (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetAllowAddingPortsOnPublic (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetPreserveAggregate (CirctFirtoolFirtoolOptions options, CirctFirtoolPreserveAggregateMode value) |
void | circtFirtoolOptionsSetPreserveValues (CirctFirtoolFirtoolOptions options, CirctFirtoolPreserveValuesMode value) |
void | circtFirtoolOptionsSetEnableDebugInfo (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetBuildMode (CirctFirtoolFirtoolOptions options, CirctFirtoolBuildMode value) |
void | circtFirtoolOptionsSetDisableOptimization (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetExportChiselInterface (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetChiselInterfaceOutDirectory (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetVbToBv (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetNoDedup (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetCompanionMode (CirctFirtoolFirtoolOptions options, CirctFirtoolCompanionMode value) |
void | circtFirtoolOptionsSetDisableAggressiveMergeConnections (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetEmitOmir (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetOmirOutFile (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetLowerMemories (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetBlackBoxRootPath (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetReplSeqMem (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetReplSeqMemFile (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetExtractTestCode (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetIgnoreReadEnableMem (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetDisableRandom (CirctFirtoolFirtoolOptions options, CirctFirtoolRandomKind value) |
void | circtFirtoolOptionsSetOutputAnnotationFilename (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetEnableAnnotationWarning (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetAddMuxPragmas (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetVerificationFlavor (CirctFirtoolFirtoolOptions options, firrtl::VerificationFlavor value) |
void | circtFirtoolOptionsSetEmitSeparateAlwaysBlocks (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetEtcDisableInstanceExtraction (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetEtcDisableRegisterExtraction (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetEtcDisableModuleInlining (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetAddVivadoRAMAddressConflictSynthesisBugWorkaround (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetCkgModuleName (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetCkgInputName (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetCkgOutputName (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetCkgEnableName (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetCkgTestEnableName (CirctFirtoolFirtoolOptions options, MlirStringRef value) |
void | circtFirtoolOptionsSetExportModuleHierarchy (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetStripFirDebugInfo (CirctFirtoolFirtoolOptions options, bool value) |
void | circtFirtoolOptionsSetStripDebugInfo (CirctFirtoolFirtoolOptions options, bool value) |
MlirLogicalResult | circtFirtoolPopulatePreprocessTransforms (MlirPassManager pm, CirctFirtoolFirtoolOptions options) |
MlirLogicalResult | circtFirtoolPopulateCHIRRTLToLowFIRRTL (MlirPassManager pm, CirctFirtoolFirtoolOptions options, MlirStringRef inputFilename) |
MlirLogicalResult | circtFirtoolPopulateLowFIRRTLToHW (MlirPassManager pm, CirctFirtoolFirtoolOptions options) |
MlirLogicalResult | circtFirtoolPopulateHWToSV (MlirPassManager pm, CirctFirtoolFirtoolOptions options) |
MlirLogicalResult | circtFirtoolPopulateExportVerilog (MlirPassManager pm, CirctFirtoolFirtoolOptions options, MlirStringCallback callback, void *userData) |
MlirLogicalResult | circtFirtoolPopulateExportSplitVerilog (MlirPassManager pm, CirctFirtoolFirtoolOptions options, MlirStringRef directory) |
MlirLogicalResult | circtFirtoolPopulateFinalizeIR (MlirPassManager pm, CirctFirtoolFirtoolOptions options) |
MlirLogicalResult | circtFirtoolpopulateHWToBTOR2 (MlirPassManager pm, CirctFirtoolFirtoolOptions options, MlirStringCallback callback, void *userData) |
void circtFirtoolOptionsDestroy | ( | CirctFirtoolFirtoolOptions | options | ) |
Definition at line 30 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetAddMuxPragmas | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 249 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetAddVivadoRAMAddressConflictSynthesisBugWorkaround | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 279 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetAllowAddingPortsOnPublic | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 54 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetBlackBoxRootPath | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 192 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetBuildMode | ( | CirctFirtoolFirtoolOptions | options, |
CirctFirtoolBuildMode | value | ||
) |
Definition at line 109 of file Firtool.cpp.
References CIRCT_FIRTOOL_BUILD_MODE_DEBUG, CIRCT_FIRTOOL_BUILD_MODE_DEFAULT, CIRCT_FIRTOOL_BUILD_MODE_RELEASE, and unwrap().
void circtFirtoolOptionsSetChiselInterfaceOutDirectory | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 138 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCkgEnableName | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 299 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCkgInputName | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 289 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCkgModuleName | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 284 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCkgOutputName | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 294 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCkgTestEnableName | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 304 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetCompanionMode | ( | CirctFirtoolFirtoolOptions | options, |
CirctFirtoolCompanionMode | value | ||
) |
Definition at line 153 of file Firtool.cpp.
References circt::firrtl::Bind, CIRCT_FIRTOOL_COMPANION_MODE_BIND, CIRCT_FIRTOOL_COMPANION_MODE_DROP, CIRCT_FIRTOOL_COMPANION_MODE_INSTANTIATE, circt::firrtl::Drop, circt::firrtl::Instantiate, and unwrap().
void circtFirtoolOptionsSetDisableAggressiveMergeConnections | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 172 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetDisableAnnotationsClassless | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 44 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetDisableOptimization | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 128 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetDisableRandom | ( | CirctFirtoolFirtoolOptions | options, |
CirctFirtoolRandomKind | value | ||
) |
Definition at line 217 of file Firtool.cpp.
References circt::firtool::FirtoolOptions::All, CIRCT_FIRTOOL_RANDOM_KIND_ALL, CIRCT_FIRTOOL_RANDOM_KIND_MEM, CIRCT_FIRTOOL_RANDOM_KIND_NONE, CIRCT_FIRTOOL_RANDOM_KIND_REG, circt::firtool::FirtoolOptions::Mem, circt::firtool::FirtoolOptions::None, circt::firtool::FirtoolOptions::Reg, and unwrap().
void circtFirtoolOptionsSetDisableUnknownAnnotations | ( | CirctFirtoolFirtoolOptions | options, |
bool | disable | ||
) |
Definition at line 39 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEmitOmir | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 177 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEmitSeparateAlwaysBlocks | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 259 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEnableAnnotationWarning | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 244 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEnableDebugInfo | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 104 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEtcDisableInstanceExtraction | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 264 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEtcDisableModuleInlining | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 274 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetEtcDisableRegisterExtraction | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 269 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetExportChiselInterface | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 133 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetExportModuleHierarchy | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 309 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetExtractTestCode | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 207 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetIgnoreReadEnableMem | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 212 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetLowerAnnotationsNoRefTypePorts | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 49 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetLowerMemories | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 187 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetNoDedup | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 148 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetOmirOutFile | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 182 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetOutputAnnotationFilename | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 239 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetOutputFilename | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | filename | ||
) |
Definition at line 34 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetPreserveAggregate | ( | CirctFirtoolFirtoolOptions | options, |
CirctFirtoolPreserveAggregateMode | value | ||
) |
Definition at line 59 of file Firtool.cpp.
References circt::firrtl::PreserveAggregate::All, CIRCT_FIRTOOL_PRESERVE_AGGREGATE_MODE_ALL, CIRCT_FIRTOOL_PRESERVE_AGGREGATE_MODE_NONE, CIRCT_FIRTOOL_PRESERVE_AGGREGATE_MODE_ONE_DIM_VEC, CIRCT_FIRTOOL_PRESERVE_AGGREGATE_MODE_VEC, circt::firrtl::PreserveAggregate::OneDimVec, unwrap(), and circt::firrtl::PreserveAggregate::Vec.
void circtFirtoolOptionsSetPreserveValues | ( | CirctFirtoolFirtoolOptions | options, |
CirctFirtoolPreserveValuesMode | value | ||
) |
Definition at line 82 of file Firtool.cpp.
References circt::firrtl::PreserveAggregate::All, CIRCT_FIRTOOL_PRESERVE_VALUES_MODE_ALL, CIRCT_FIRTOOL_PRESERVE_VALUES_MODE_NAMED, CIRCT_FIRTOOL_PRESERVE_VALUES_MODE_NONE, CIRCT_FIRTOOL_PRESERVE_VALUES_MODE_STRIP, circt::firrtl::PreserveValues::Named, circt::firrtl::PreserveValues::Strip, and unwrap().
void circtFirtoolOptionsSetReplSeqMem | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 197 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetReplSeqMemFile | ( | CirctFirtoolFirtoolOptions | options, |
MlirStringRef | value | ||
) |
Definition at line 202 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetStripDebugInfo | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 319 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetStripFirDebugInfo | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 314 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetVbToBv | ( | CirctFirtoolFirtoolOptions | options, |
bool | value | ||
) |
Definition at line 143 of file Firtool.cpp.
References unwrap().
void circtFirtoolOptionsSetVerificationFlavor | ( | CirctFirtoolFirtoolOptions | options, |
firrtl::VerificationFlavor | value | ||
) |
Definition at line 254 of file Firtool.cpp.
References unwrap().
MlirLogicalResult circtFirtoolPopulateCHIRRTLToLowFIRRTL | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options, | ||
MlirStringRef | inputFilename | ||
) |
Definition at line 336 of file Firtool.cpp.
References circt::firtool::populateCHIRRTLToLowFIRRTL(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulateExportSplitVerilog | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options, | ||
MlirStringRef | directory | ||
) |
Definition at line 366 of file Firtool.cpp.
References circt::firtool::populateExportSplitVerilog(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulateExportVerilog | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options, | ||
MlirStringCallback | callback, | ||
void * | userData | ||
) |
Definition at line 356 of file Firtool.cpp.
References circt::firtool::populateExportVerilog(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulateFinalizeIR | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options | ||
) |
Definition at line 374 of file Firtool.cpp.
References circt::firtool::populateFinalizeIR(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolpopulateHWToBTOR2 | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options, | ||
MlirStringCallback | callback, | ||
void * | userData | ||
) |
Definition at line 380 of file Firtool.cpp.
References circt::firtool::populateHWToBTOR2(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulateHWToSV | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options | ||
) |
Definition at line 350 of file Firtool.cpp.
References circt::firtool::populateHWToSV(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulateLowFIRRTLToHW | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options | ||
) |
Definition at line 344 of file Firtool.cpp.
References circt::firtool::populateLowFIRRTLToHW(), unwrap(), and wrap().
MlirLogicalResult circtFirtoolPopulatePreprocessTransforms | ( | MlirPassManager | pm, |
CirctFirtoolFirtoolOptions | options | ||
) |
Definition at line 329 of file Firtool.cpp.
References circt::firtool::populatePreprocessTransforms(), unwrap(), and wrap().
DEFINE_C_API_PTR_METHODS | ( | CirctFirtoolFirtoolOptions | , |
circt::firtool::FirtoolOptions | |||
) |
Definition at line 18 of file Firtool.cpp.
References wrap().