MLIR 24.0.0git
OpenMPToLLVMIRTranslation.h
Go to the documentation of this file.
1//===- OpenMPToLLVMIRTranslation.h - OpenMP Dialect to LLVM IR --*- 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// This provides registration calls for OpenMP dialect to LLVM IR translation.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_TARGET_LLVMIR_DIALECT_OPENMP_OPENMPTOLLVMIRTRANSLATION_H
14#define MLIR_TARGET_LLVMIR_DIALECT_OPENMP_OPENMPTOLLVMIRTRANSLATION_H
15
16namespace mlir {
17
18class DialectRegistry;
19class MLIRContext;
20
21/// Register OpenMP translation command-line options before parsing them.
22/// Repeated calls reuse the same options.
24
25/// Register the OpenMP dialect and the translation from it to the LLVM IR in
26/// the given registry;
28
29/// Register the OpenMP dialect and the translation from it in the registry
30/// associated with the given context.
32
33} // namespace mlir
34
35#endif // MLIR_TARGET_LLVMIR_DIALECT_OPENMP_OPENMPTOLLVMIRTRANSLATION_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:71
Include the generated interface declarations.
void registerOpenMPDialectTranslation(DialectRegistry &registry)
Register the OpenMP dialect and the translation from it to the LLVM IR in the given registry;.
void registerOpenMPTranslationCLOptions()
Register OpenMP translation command-line options before parsing them.