43 markAllAnalysesPreserved();
45 if (!mlir::isa<mlir::ModuleOp>(getOperation())) {
46 auto msg =
"ConstraintDependencyGraphPrinterPass error: should be run on ModuleOp!";
47 getOperation()->emitError(msg);
48 llvm::report_fatal_error(msg);
51 auto &cs = getAnalysis<ConstraintDependencyGraphModuleAnalysis>();
53 auto am = getAnalysisManager();
55 for (
auto &[s, cdg] : cs) {
59 mlir::succeeded(fullName),
60 "could not resolve fully qualified name of struct " + mlir::Twine(structDef.getName())
62 os << fullName.value() <<
' ';