• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- Intrinsics.h - MLIR EDSC Intrinsics for AffineOps --------*- 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 #ifndef MLIR_DIALECT_AFFINE_EDSC_INTRINSICS_H_
9 #define MLIR_DIALECT_AFFINE_EDSC_INTRINSICS_H_
10 
11 #include "mlir/Dialect/Affine/EDSC/Builders.h"
12 
13 namespace mlir {
14 namespace edsc {
15 namespace intrinsics {
16 
17 using affine_apply = ValueBuilder<AffineApplyOp>;
18 using affine_if = OperationBuilder<AffineIfOp>;
19 using affine_load = ValueBuilder<AffineLoadOp>;
20 using affine_min = ValueBuilder<AffineMinOp>;
21 using affine_max = ValueBuilder<AffineMaxOp>;
22 using affine_store = OperationBuilder<AffineStoreOp>;
23 
24 /// Provide an index notation around affine_load and affine_store.
25 using AffineIndexedValue = TemplatedIndexedValue<affine_load, affine_store>;
26 
27 } // namespace intrinsics
28 } // namespace edsc
29 } // namespace mlir
30 
31 #endif // MLIR_DIALECT_STANDARDOPS_EDSC_INTRINSICS_H_
32