[mlir][NFC] Replace `getMemorySpaceAsInt` with `getMemorySpace` where possible
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Tue, 23 Mar 2021 08:45:24 +0000 (11:45 +0300)
committerVladislav Vinogradov <vlad.vinogradov@intel.com>
Wed, 24 Mar 2021 10:23:59 +0000 (13:23 +0300)
commit18a2f479bf475c7cb94b742b39290bef98e3d305
tree42ae8850d7231dbd689df691bdb839e26e4abb07
parent4d9d7368759c87c6d0f422353450b43adb437c5c
[mlir][NFC] Replace `getMemorySpaceAsInt` with `getMemorySpace` where possible

Use new `MemRefType::getMemorySpace` method with generic Attribute
in cases, where there is no specific logic around the memory space.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D99154
mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/lib/Dialect/Vector/VectorOps.cpp