11#include "mlir/Pass/Pass.h"
12#include "llvm/Support/Debug.h"
16#define GEN_PASS_DEF_STRIPEMITPASS
17#include "circt/Dialect/Emit/EmitPasses.h.inc"
25struct StripEmitPass :
public emit::impl::StripEmitPassBase<StripEmitPass> {
26 void runOnOperation()
override {
27 for (
auto &op : llvm::make_early_inc_range(getOperation().getOps())) {
28 if (isa_and_nonnull<emit::EmitDialect>(op.getDialect())) {
32 op.removeAttr(
"emit.fragments");
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.