Path: blob/main/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/RegisterOpenACCExtensions.cpp
213845 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Registration for OpenACC extensions as applied to CIR dialect.9//10//===----------------------------------------------------------------------===//1112#include "clang/CIR/Dialect/OpenACC/RegisterOpenACCExtensions.h"13#include "clang/CIR/Dialect/IR/CIRDialect.h"14#include "clang/CIR/Dialect/IR/CIRTypes.h"15#include "clang/CIR/Dialect/OpenACC/CIROpenACCTypeInterfaces.h"1617namespace cir::acc {1819void registerOpenACCExtensions(mlir::DialectRegistry ®istry) {20registry.addExtension(+[](mlir::MLIRContext *ctx, cir::CIRDialect *dialect) {21cir::PointerType::attachInterface<22OpenACCPointerLikeModel<cir::PointerType>>(*ctx);23});24}2526} // namespace cir::acc272829