I would like to expose Dialect/Affine/Utils/Utils.cpp#hasNoInterveningEffect for downstream use (particular use case is a lazy implementation of forwardStoreToLoad in CIRCT). This exposes hasNoInterveningEffect and instantiates for the necessary types.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I think we shouldn't put so much C++ code in the headers. Just leave these in the C++ file and explicitly instantiate right below (in the C++ file) for the necessary memOp types.
Comment Actions
I've made the changes as I think you intended (I might be wrong). I've also tested with the downstream code (so this formulation is suitable for my needs).
The doc comment should come here since this method has been exposed.