MLIR 24.0.0git
OpenACCOpsInterfaces.h
Go to the documentation of this file.
1//===- OpenACCOpsInterfaces.h - OpenACC op interfaces -----------*- 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 file holds C++ types used by OpenACC operation interface signatures
10// and includes the generated interface declarations. StoreLikeOpInterface
11// uses the stored-value types defined here. Types for another interface go
12// in this file as well, above the generated include.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef MLIR_DIALECT_OPENACC_OPENACCOPSINTERFACES_H
17#define MLIR_DIALECT_OPENACC_OPENACCOPSINTERFACES_H
18
21#include "mlir/IR/SymbolTable.h"
23#include "llvm/ADT/BitmaskEnum.h"
24#include "llvm/ADT/SmallVector.h"
25
26namespace mlir {
27class OpOperand;
28
29namespace acc {
31
32/// Where the stored bits come from. `Contents` is one dereference, so
33/// `Operand | Contents` is the memory identified by an operand and
34/// `Symbol | Contents` is the data of a symbol. `Symbol` alone is the
35/// symbol's address.
36enum class StoredSourceKind : uint8_t {
37 Unknown = 0, // a source this operation cannot name
38 Operand = 1 << 0, // the SSA value of an operand, e.g. fir.store
39 Contents = 1 << 1, // one dereference of Operand or Symbol
40 Symbol = 1 << 2, // a symbol's address
41 LLVM_MARK_AS_BITMASK_ENUM(Symbol)
42};
43
46 OpOperand *operand = nullptr; // set when Operand is set
47 SymbolRefAttr symbol = {}; // set when Symbol is set
48};
49
50/// Null destination means an unknown place.
53};
54
59} // namespace acc
60} // namespace mlir
61
62#include "mlir/Dialect/OpenACC/OpenACCOpsInterfaces.h.inc"
63
64#endif // MLIR_DIALECT_OPENACC_OPENACCOPSINTERFACES_H
This class represents an operand of an operation.
Definition Value.h:256
StoredSourceKind
Where the stored bits come from.
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE()
Include the generated interface declarations.
Null destination means an unknown place.
llvm::SmallVector< StoreLocation, 1 > locations