FLANG
Descriptor.h
1//===-- Descriptor.h - CUDA descritpor runtime API calls --------*- 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_BUILDER_RUNTIME_CUDA_DESCRIPTOR_H_
10#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_CUDA_DESCRIPTOR_H_
11
12#include "mlir/IR/Value.h"
13
14namespace mlir {
15class Location;
16} // namespace mlir
17
18namespace fir {
19class FirOpBuilder;
20}
21
22namespace fir::runtime::cuda {
23
26void genSyncGlobalDescriptor(fir::FirOpBuilder &builder, mlir::Location loc,
27 mlir::Value hostPtr);
28
31void genDescriptorCheckSection(fir::FirOpBuilder &builder, mlir::Location loc,
32 mlir::Value desc);
33
34} // namespace fir::runtime::cuda
35
36#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_CUDA_DESCRIPTOR_H_
Definition FIRBuilder.h:55
Definition AbstractConverter.h:34
Definition AbstractConverter.h:29