• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- AffineMapDetail.h - MLIR Affine Map details Class --------*- 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 // This holds implementation details of AffineMap.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef AFFINEMAPDETAIL_H_
14 #define AFFINEMAPDETAIL_H_
15 
16 #include "mlir/IR/AffineExpr.h"
17 #include "mlir/IR/AffineMap.h"
18 #include "llvm/ADT/ArrayRef.h"
19 
20 namespace mlir {
21 namespace detail {
22 
23 struct AffineMapStorage {
24   unsigned numDims;
25   unsigned numSymbols;
26 
27   /// The affine expressions for this (multi-dimensional) map.
28   /// TODO: use trailing objects for this.
29   ArrayRef<AffineExpr> results;
30 
31   MLIRContext *context;
32 };
33 
34 } // end namespace detail
35 } // end namespace mlir
36 
37 #endif // AFFINEMAPDETAIL_H_
38