clang
24.0.0git
include
clang
CIR
Dialect
OpenACC
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"
17
#include "
clang/CIR/Dialect/IR/CIRDialect.h
"
18
19
namespace
cir::acc
{
20
21
struct
AddressOfGlobalModel
22
:
public
mlir::acc::AddressOfGlobalOpInterface::ExternalModel
<
23
AddressOfGlobalModel, cir::GetGlobalOp> {
24
mlir::SymbolRefAttr
getSymbol
(mlir::Operation *op)
const
;
25
};
26
27
struct
GlobalVariableModel
28
:
public
mlir::acc::GlobalVariableOpInterface::ExternalModel
<
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
CIRDialect.h
mlir::acc::AddressOfGlobalOpInterface::ExternalModel
mlir::acc::GlobalVariableOpInterface::ExternalModel
cir::acc
Definition
CIROpenACCOpsInterfaces.h:19
cir::acc::AddressOfGlobalModel
Definition
CIROpenACCOpsInterfaces.h:23
cir::acc::AddressOfGlobalModel::getSymbol
mlir::SymbolRefAttr getSymbol(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:20
cir::acc::GlobalVariableModel
Definition
CIROpenACCOpsInterfaces.h:29
cir::acc::GlobalVariableModel::isInDeviceMemory
bool isInDeviceMemory(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:47
cir::acc::GlobalVariableModel::hasInitializer
bool hasInitializer(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:28
cir::acc::GlobalVariableModel::hasLocalLinkage
bool hasLocalLinkage(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:62
cir::acc::GlobalVariableModel::isCompilerGenerated
bool isCompilerGenerated(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:57
cir::acc::GlobalVariableModel::isDeviceAccessible
bool isDeviceAccessible(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:41
cir::acc::GlobalVariableModel::getInitRegion
mlir::Region * getInitRegion(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:32
cir::acc::GlobalVariableModel::isConstant
bool isConstant(mlir::Operation *op) const
Definition
CIROpenACCOpsInterfaces.cpp:24
Generated on
for clang by
1.14.0