brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 3dfe7ae Raw
28 lines · cpp
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-exception6//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 18namespace cir::acc {19 20void 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::acc28