FLANG
include
flang
Optimizer
Dialect
CUF
CUFOps.h
1
//===-- Optimizer/Dialect/CUF/CUFOps.h - CUF operations ---------*- 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
#ifndef FORTRAN_OPTIMIZER_DIALECT_CUF_CUFOPS_H
10
#define FORTRAN_OPTIMIZER_DIALECT_CUF_CUFOPS_H
11
12
#include "flang/Optimizer/Dialect/CUDAKernelOpInterface.h"
13
#include "flang/Optimizer/Dialect/CUF/Attributes/CUFAttr.h"
14
#include "flang/Optimizer/Dialect/CUF/CUFDialect.h"
15
#include "flang/Optimizer/Dialect/FIROperationMoveOpInterface.h"
16
#include "flang/Optimizer/Dialect/FIRType.h"
17
#include "mlir/Dialect/LLVMIR/LLVMDialectDecl.h"
18
#include "mlir/Interfaces/SideEffectInterfaces.h"
19
20
namespace
cuf
{
22
struct
DeviceContextResource
23
:
public
mlir::SideEffects::Resource::Base<DeviceContextResource> {
24
mlir::StringRef getName()
const
final
{
return
"DeviceContextResource"
; }
25
bool
isAddressable()
const override
{
return
false
; }
26
};
27
}
// namespace cuf
28
29
#define GET_OP_CLASSES
30
#include "flang/Optimizer/Dialect/CUF/CUFOps.h.inc"
31
32
#endif
// FORTRAN_OPTIMIZER_DIALECT_CUF_CUFOPS_H
cuf
Definition
ConvertVariable.h:28
cuf::DeviceContextResource
The state of the CUDA device context, read by cuf.device_is_active.
Definition
CUFOps.h:23
Generated on
for FLANG by
1.14.0