MLIR 24.0.0git
ACCToLLVM.h
Go to the documentation of this file.
1//===- ACCToLLVM.h - Convert OpenACC to LLVM dialect ------------*- 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 MLIR_CONVERSION_OPENACCTOLLVM_ACCTOLLVM_H
10#define MLIR_CONVERSION_OPENACCTOLLVM_ACCTOLLVM_H
11
13
14#include <memory>
15
16namespace mlir {
17class ConversionTarget;
19class Pass;
21
22#define GEN_PASS_DECL_CONVERTACCTOLLVMPASS
23#include "mlir/Conversion/Passes.h.inc"
24
25/// Configure conversion legality for OpenACC executable directives lowered to
26/// runtime calls.
29
30/// Populate patterns that lower OpenACC executable directives (init, shutdown,
31/// wait, set) to LLVM runtime calls.
33 LLVMTypeConverter &converter, RewritePatternSet &patterns,
34 const acc::ACCRuntimeCallConfig &config = {});
35
36} // namespace mlir
37
38#endif // MLIR_CONVERSION_OPENACCTOLLVM_ACCTOLLVM_H
Conversion from types to the LLVM IR dialect.
The abstract base pass class.
Definition Pass.h:52
Include the generated interface declarations.
void configureACCExecutableDirectiveConversionLegality(ConversionTarget &target)
Configure conversion legality for OpenACC executable directives lowered to runtime calls.
void populateACCExecutableDirectivePatterns(LLVMTypeConverter &converter, RewritePatternSet &patterns, const acc::ACCRuntimeCallConfig &config={})
Populate patterns that lower OpenACC executable directives (init, shutdown, wait, set) to LLVM runtim...