Skip to content

Commit

Permalink
Add function name to printing points-to-pointer sets
Browse files Browse the repository at this point in the history
  • Loading branch information
pengmai committed Jan 31, 2024
1 parent 81e65f1 commit ada5515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/MLIR/Passes/PrintAliasAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ struct PrintAliasAnalysisPass
}
} else if (op->hasTrait<OpTrait::ReturnLike>() &&
isa<FunctionOpInterface>(op->getParentOp())) {
os << "points-to-pointer sets for op @" << op->getLoc() << ":\n";
os << "points-to-pointer sets for op @" << op->getLoc() << " ("
<< cast<FunctionOpInterface>(op->getParentOp()).getName() << "):\n";
if (auto *state = solver.lookupState<enzyme::PointsToSets>(op))
os << *state << "\n";
else
Expand Down

0 comments on commit ada5515

Please sign in to comment.