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