Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mlir] Define generic set/map lattices for dataflow analyses #1769

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

pengmai
Copy link
Member

@pengmai pengmai commented Feb 28, 2024

For context, the conceptual AliasClassSet, AliasClassLattice, and PointsToSets data structures were immensely useful in implementing activity annotations. The "lattice of sets that might be undefined or unknown" and "map of attributes to those sets" are exactly the kind of data structures that activity annotations uses to propagate these relative "origins" both forward and backward, in an intraprocedural analysis.

This PR aims to be an intermediate step towards merging in activity annotations by breaking out the re-usable logic into abstract classes.

Copy link
Collaborator

@ftynse ftynse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general, but I'd like to make sorting more reliable even if it costs us more. Otherwise we are likely to have schroedinbugs in printing.

enzyme/Enzyme/MLIR/Analysis/Lattice.cpp Outdated Show resolved Hide resolved
enzyme/Enzyme/MLIR/Analysis/Lattice.h Outdated Show resolved Hide resolved
enzyme/Enzyme/MLIR/Analysis/Lattice.h Outdated Show resolved Hide resolved
enzyme/Enzyme/MLIR/Analysis/Lattice.h Outdated Show resolved Hide resolved
@pengmai pengmai force-pushed the jmp/generic-lattices branch 4 times, most recently from c058a5a to bb4dfc0 Compare March 8, 2024 05:42
Add LLVM_DUMP_METHOD so that this method does not get stripped for debug builds

Co-authored-by: Tim Gymnich <tgymnich@icloud.com>
@pengmai pengmai added this pull request to the merge queue Mar 8, 2024
Merged via the queue into main with commit 651b42f Mar 8, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants