forked from OSchip/llvm-project
Make MemRefType::getNumDynamicDims const.
PiperOrigin-RevId: 206834416
This commit is contained in:
parent
cdefcc86e5
commit
6cfb09409f
|
@ -347,7 +347,7 @@ public:
|
|||
unsigned getMemorySpace() const { return memorySpace; }
|
||||
|
||||
/// Returns the number of dimensions with dynamic size.
|
||||
unsigned getNumDynamicDims();
|
||||
unsigned getNumDynamicDims() const;
|
||||
|
||||
static bool classof(const Type *type) {
|
||||
return type->getKind() == Kind::MemRef;
|
||||
|
|
|
@ -62,7 +62,7 @@ ArrayRef<AffineMap*> MemRefType::getAffineMaps() const {
|
|||
return ArrayRef<AffineMap*>(affineMapList, numAffineMaps);
|
||||
}
|
||||
|
||||
unsigned MemRefType::getNumDynamicDims() {
|
||||
unsigned MemRefType::getNumDynamicDims() const {
|
||||
unsigned numDynamicDims = 0;
|
||||
for (int dimSize : getShape()) {
|
||||
if (dimSize < 0)
|
||||
|
|
Loading…
Reference in New Issue