12 #include "mlir/CAPI/Pass.h"
15 using namespace circt;
48 unwrap(options)->setOutputFormat(converted);
52 unwrap(options)->setSeed(seed);
57 unwrap(options)->setVerifyPasses(enable);
62 unwrap(options)->setVerbosePassExecution(enable);
66 CirctRtgToolOptions options,
unsigned numInstr,
67 const char **unsupportedInstructions) {
68 SmallVector<std::string> instr;
69 for (
unsigned i = 0; i < numInstr; ++i)
70 instr.push_back(std::string(unsupportedInstructions[i]));
71 unwrap(options)->setUnsupportedInstructions(std::move(instr));
75 CirctRtgToolOptions options,
const char *unsupportedInstruction) {
76 unwrap(options)->addUnsupportedInstruction(
77 std::string(unsupportedInstruction));
81 CirctRtgToolOptions options,
const char *filename) {
82 unwrap(options)->setUnsupportedInstructionsFile(std::string(filename));
90 CirctRtgToolOptions options) {
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
void populateRandomizerPipeline(mlir::PassManager &pm, const RtgToolOptions &options)
Populates the passes necessary to lower IR with RTG randomization operations to fully elaborated IR (...
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.