Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/RegisterOpenACCExtensions.cpp
213845 views
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
// Registration for OpenACC extensions as applied to CIR dialect.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "clang/CIR/Dialect/OpenACC/RegisterOpenACCExtensions.h"
14
#include "clang/CIR/Dialect/IR/CIRDialect.h"
15
#include "clang/CIR/Dialect/IR/CIRTypes.h"
16
#include "clang/CIR/Dialect/OpenACC/CIROpenACCTypeInterfaces.h"
17
18
namespace cir::acc {
19
20
void registerOpenACCExtensions(mlir::DialectRegistry &registry) {
21
registry.addExtension(+[](mlir::MLIRContext *ctx, cir::CIRDialect *dialect) {
22
cir::PointerType::attachInterface<
23
OpenACCPointerLikeModel<cir::PointerType>>(*ctx);
24
});
25
}
26
27
} // namespace cir::acc
28
29