[mlir][NFC] Promote memory space to BaseMemRefType
authorDiego Caballero <diego.caballero@intel.com>
Thu, 24 Sep 2020 19:29:56 +0000 (12:29 -0700)
committerDiego Caballero <diego.caballero@intel.com>
Thu, 24 Sep 2020 20:54:06 +0000 (13:54 -0700)
commit0a925a813a5003049bf12330111d61cb823b8814
tree381df46fe619c8b97f0648b0f1e75254251dd069
parent34ca5b3392ced08e2320fb4236cca5c7df4ec6e9
[mlir][NFC] Promote memory space to BaseMemRefType

This patch moves the memory space field from MemRefType and UnrankedMemRefType
to their base class BaseMemRefType so that it can be retrieved from it without
downcasting it to the specific memref.

Reviewed By: silvas

Differential Revision: https://reviews.llvm.org/D87649
mlir/include/mlir/IR/StandardTypes.h
mlir/lib/IR/StandardTypes.cpp
mlir/lib/IR/TypeDetail.h