clang 24.0.0git
CIROpenACCOpsInterfaces.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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 contains external OpenACC operation interfaces for CIR.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef CLANG_CIR_DIALECT_OPENACC_CIROPENACCOPSINTERFACES_H
14#define CLANG_CIR_DIALECT_OPENACC_CIROPENACCOPSINTERFACES_H
15
16#include "mlir/Dialect/OpenACC/OpenACC.h"
18
19namespace cir::acc {
20
23 AddressOfGlobalModel, cir::GetGlobalOp> {
24 mlir::SymbolRefAttr getSymbol(mlir::Operation *op) const;
25};
26
29 GlobalVariableModel, cir::GlobalOp> {
30 bool isConstant(mlir::Operation *op) const;
31 bool hasInitializer(mlir::Operation *op) const;
32 mlir::Region *getInitRegion(mlir::Operation *op) const;
33 bool isDeviceAccessible(mlir::Operation *op) const;
34 bool isInDeviceMemory(mlir::Operation *op) const;
35 bool isCompilerGenerated(mlir::Operation *op) const;
36 bool hasLocalLinkage(mlir::Operation *op) const;
37};
38
39} // namespace cir::acc
40
41#endif // CLANG_CIR_DIALECT_OPENACC_CIROPENACCOPSINTERFACES_H
mlir::SymbolRefAttr getSymbol(mlir::Operation *op) const
bool isInDeviceMemory(mlir::Operation *op) const
bool hasInitializer(mlir::Operation *op) const
bool hasLocalLinkage(mlir::Operation *op) const
bool isCompilerGenerated(mlir::Operation *op) const
bool isDeviceAccessible(mlir::Operation *op) const
mlir::Region * getInitRegion(mlir::Operation *op) const
bool isConstant(mlir::Operation *op) const