[MLIR][Affine] Expose getAffineScope as a utility function
authorWilliam S. Moses <gh@wsmoses.com>
Wed, 16 Mar 2022 16:58:28 +0000 (12:58 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Thu, 17 Mar 2022 03:26:15 +0000 (23:26 -0400)
commit97eedc74439c5305dd72e5391e639087c2c4035f
tree8ff1c96e4bf54ddfdb8ea8e055c9a0ca389c3d5d
parent6dd21d1db14f1589f93cb14e572320eaab823f16
[MLIR][Affine] Expose getAffineScope as a utility function

The getAffineScope function is currently internal
to AffineOps.cpp. However, as the comment on the function
itself notes, this is useful in a variety of other places
externally. This PR allows other files to use the function.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D121827
mlir/include/mlir/Dialect/Affine/IR/AffineOps.h
mlir/lib/Dialect/Affine/IR/AffineOps.cpp