MLIR  16.0.0git
OpenACC.h
Go to the documentation of this file.
1 //===- OpenACC.h - MLIR OpenACC Dialect -------------------------*- C++ -*-===//
2 //
3 // Part of the MLIR 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 file declares the OpenACC dialect in MLIR.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_OPENACC_OPENACC_H_
14 #define MLIR_DIALECT_OPENACC_OPENACC_H_
15 
16 #include "mlir/IR/Dialect.h"
17 #include "mlir/IR/OpDefinition.h"
18 
19 #include "mlir/Dialect/OpenACC/OpenACCOpsDialect.h.inc"
20 #include "mlir/Dialect/OpenACC/OpenACCOpsEnums.h.inc"
21 
22 #define GET_ATTRDEF_CLASSES
23 #include "mlir/Dialect/OpenACC/OpenACCOpsAttributes.h.inc"
24 
25 #define GET_OP_CLASSES
26 #include "mlir/Dialect/OpenACC/OpenACCOps.h.inc"
27 
28 namespace mlir {
29 namespace acc {
30 
31 /// Enumeration used to encode the execution mapping on a loop construct.
32 /// They refer directly to the OpenACC 3.1 standard:
33 /// 2.9.2. gang
34 /// 2.9.3. worker
35 /// 2.9.4. vector
36 ///
37 /// Value can be combined bitwise to reflect the mapping applied to the
38 /// construct. e.g. `acc.loop gang vector`, the `gang` and `vector` could be
39 /// combined and the final mapping value would be 5 (4 | 1).
40 enum OpenACCExecMapping { NONE = 0, VECTOR = 1, WORKER = 2, GANG = 4 };
41 
42 } // namespace acc
43 } // namespace mlir
44 
45 #endif // MLIR_DIALECT_OPENACC_OPENACC_H_
Include the generated interface declarations.
OpenACCExecMapping
Enumeration used to encode the execution mapping on a loop construct.
Definition: OpenACC.h:40