[Hexagon] Better detection of impossible completions to perfect shuffles
[llvm-project.git] / mlir / lib / Conversion / LLVMCommon / MemRefDescriptor.h
blobd0471b6a9fe870c7201128217cd83e0a2dd05edb
1 //===- MemRefDescriptor.h - MemRef descriptor constants ---------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Defines constants that are used in LLVM dialect equivalents of MemRef type.
11 //===----------------------------------------------------------------------===//
13 #ifndef MLIR_LIB_CONVERSION_LLVMCOMMON_MEMREFDESCRIPTOR_H
14 #define MLIR_LIB_CONVERSION_LLVMCOMMON_MEMREFDESCRIPTOR_H
16 static constexpr unsigned kAllocatedPtrPosInMemRefDescriptor = 0;
17 static constexpr unsigned kAlignedPtrPosInMemRefDescriptor = 1;
18 static constexpr unsigned kOffsetPosInMemRefDescriptor = 2;
19 static constexpr unsigned kSizePosInMemRefDescriptor = 3;
20 static constexpr unsigned kStridePosInMemRefDescriptor = 4;
22 static constexpr unsigned kRankInUnrankedMemRefDescriptor = 0;
23 static constexpr unsigned kPtrInUnrankedMemRefDescriptor = 1;
25 #endif // MLIR_LIB_CONVERSION_LLVMCOMMON_MEMREFDESCRIPTOR_H