18 #include "mlir/Pass/Pass.h"
21 #define GEN_PASS_DEF_TESTAPPLYLOWERINGOPTION
22 #include "circt/Conversion/Passes.h.inc"
25 using namespace circt;
28 struct TestApplyLoweringOptionPass
29 :
public circt::impl::TestApplyLoweringOptionBase<
30 TestApplyLoweringOptionPass> {
31 TestApplyLoweringOptionPass() =
default;
32 void runOnOperation()
override {
33 if (!optionsString.hasValue()) {
34 markAllAnalysesPreserved();
38 getOperation().emitError(tw);
47 return std::make_unique<TestApplyLoweringOptionPass>();
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
std::unique_ptr< mlir::Pass > createTestApplyLoweringOptionPass(llvm::StringRef options)
Options which control the emission from CIRCT to Verilog.
void setAsAttribute(mlir::ModuleOp module)
Write the verilog emitter options to a module's attributes.