13#ifndef CIRCT_CONVERSION_EXPORTAIGER_H
14#define CIRCT_CONVERSION_EXPORTAIGER_H
17#include "mlir/IR/Value.h"
18#include "llvm/Support/raw_ostream.h"
51 virtual bool valueCallback(Value result,
size_t bitPos,
size_t inputIndex) {
51 virtual bool valueCallback(Value result,
size_t bitPos,
size_t inputIndex) {
…}
mlir::LogicalResult exportAIGER(hw::HWModuleOp module, llvm::raw_ostream &os, const ExportAIGEROptions *options=nullptr, ExportAIGERHandler *handler=nullptr)
Export an MLIR module containing AIG dialect operations to AIGER format.
void registerExportAIGERTranslation()
Register the export-aiger MLIR translation.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Handler for AIGER export.
ExportAIGERHandler()=default
virtual bool valueCallback(Value result, size_t bitPos, size_t inputIndex)
virtual ~ExportAIGERHandler()=default
virtual void notifyClock(Value value)
virtual bool operandCallback(mlir::OpOperand &operand, size_t bitPos, size_t outputIndex)
virtual void notifyEmitted(Operation *op)
Options for AIGER export.
bool includeSymbolTable
Whether to include symbol table in the output.
bool binaryFormat
Whether to export in binary format (aig) or ASCII format (aag).