clang 23.0.0git
RegisterAllDialects.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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
10
11#include "mlir/Dialect/DLTI/DLTI.h"
12#include "mlir/Dialect/OpenACC/OpenACC.h"
13#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
14#include "mlir/IR/BuiltinDialect.h"
15#include "mlir/IR/MLIRContext.h"
16
20
21namespace cir {
22
23void registerAllDialects(mlir::DialectRegistry &registry) {
24 registry.insert<mlir::BuiltinDialect, cir::CIRDialect, mlir::DLTIDialect,
25 mlir::omp::OpenMPDialect, mlir::acc::OpenACCDialect>();
26 // Register extensions to integrate CIR types with OpenACC and OpenMP.
29}
30
31void registerAllDialects(mlir::MLIRContext &context) {
32 mlir::DialectRegistry registry;
33 registerAllDialects(registry);
34 context.appendDialectRegistry(registry);
35}
36
37} // namespace cir
void registerOpenACCExtensions(mlir::DialectRegistry &registry)
void registerOpenMPExtensions(mlir::DialectRegistry &registry)
void registerAllDialects(mlir::DialectRegistry &registry)