clang
23.0.0git
lib
CIR
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
9
#include "
clang/CIR/InitAllDialects.h
"
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
17
#include "
clang/CIR/Dialect/IR/CIRDialect.h
"
18
#include "
clang/CIR/Dialect/OpenACC/RegisterOpenACCExtensions.h
"
19
#include "
clang/CIR/Dialect/OpenMP/RegisterOpenMPExtensions.h
"
20
21
namespace
cir
{
22
23
void
registerAllDialects
(mlir::DialectRegistry ®istry) {
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.
27
cir::omp::registerOpenMPExtensions
(registry);
28
cir::acc::registerOpenACCExtensions
(registry);
29
}
30
31
void
registerAllDialects
(mlir::MLIRContext &context) {
32
mlir::DialectRegistry registry;
33
registerAllDialects
(registry);
34
context.appendDialectRegistry(registry);
35
}
36
37
}
// namespace cir
CIRDialect.h
InitAllDialects.h
RegisterOpenACCExtensions.h
RegisterOpenMPExtensions.h
cir::acc::registerOpenACCExtensions
void registerOpenACCExtensions(mlir::DialectRegistry ®istry)
Definition
RegisterOpenACCExtensions.cpp:20
cir::omp::registerOpenMPExtensions
void registerOpenMPExtensions(mlir::DialectRegistry ®istry)
Definition
RegisterOpenMPExtensions.cpp:31
cir
Definition
ABIArgInfo.h:22
cir::registerAllDialects
void registerAllDialects(mlir::DialectRegistry ®istry)
Definition
RegisterAllDialects.cpp:23
Generated on
for clang by
1.14.0