[mlir] Add `const` qualifiers to `AffineMap` methods
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Thu, 4 Feb 2021 11:12:05 +0000 (14:12 +0300)
committerVladislav Vinogradov <vlad.vinogradov@intel.com>
Fri, 5 Feb 2021 12:22:16 +0000 (15:22 +0300)
commitf349abc265ebbd2acdc6b6332f475f81aca49d48
tree380dd3477ab5f870466e4f1064c7316661dc2713
parent45ccfd9c9d0311371a8217c15c2ef3ba969a0aff
[mlir] Add `const` qualifiers to `AffineMap` methods

The `AffineMap` class follows the same semantic as Type and Attribute.
It is immutable object, so it make sence to mark its methods as const.
Also part of its API is already marked as const, this change just make the API consistent.

Reviewed By: ftynse, bondhugula

Differential Revision: https://reviews.llvm.org/D96026
mlir/include/mlir/IR/AffineMap.h
mlir/lib/IR/AffineMap.cpp