FLANG
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/LLVMDialect.h"
18#include "mlir/IR/OpDefinition.h"
19#include "mlir/Interfaces/SideEffectInterfaces.h"
20
21namespace cuf {
24 : public mlir::SideEffects::Resource::Base<DeviceContextResource> {
25 mlir::StringRef getName() const final { return "DeviceContextResource"; }
26 bool isAddressable() const override { return false; }
27};
28} // namespace cuf
29
30#define GET_OP_CLASSES
31#include "flang/Optimizer/Dialect/CUF/CUFOps.h.inc"
32
33#endif // FORTRAN_OPTIMIZER_DIALECT_CUF_CUFOPS_H
Definition ConvertVariable.h:28
The state of the CUDA device context, read by cuf.device_is_active.
Definition CUFOps.h:24