[MLIR] Turns swapId into a FlatAffineConstraints member func
authorVincent Zhao <vincentzhaorz@gmail.com>
Wed, 16 Sep 2020 15:04:09 +0000 (16:04 +0100)
committerVincent Zhao <vincentzhaorz@gmail.com>
Thu, 17 Sep 2020 10:22:10 +0000 (11:22 +0100)
commitf108e71437c47cc5172af4a7f704bb3f69d392f2
tree515b9aff6cc3d6dacdcbb89f4091f593ed751a83
parent550b1a6fd46f59134b2629ce23ca6a7874b45585
[MLIR] Turns swapId into a FlatAffineConstraints member func

`swapId` used to be a static function in `AffineStructures.cpp`. This diff makes it accessible from the external world by turning it into a member function of `FlatAffineConstraints`. This will be very helpful for other projects that need to manipulate the content of `FlatAffineConstraints`.

Differential Revision: https://reviews.llvm.org/D87766
mlir/include/mlir/Analysis/AffineStructures.h
mlir/lib/Analysis/AffineStructures.cpp