//===- Target.h - MLIR NVVM target registration -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This provides registration calls for attaching the NVVM target interface. // //===----------------------------------------------------------------------===// #ifndef MLIR_TARGET_LLVM_NVVM_TARGET_H #define MLIR_TARGET_LLVM_NVVM_TARGET_H namespace mlir { class DialectRegistry; class MLIRContext; namespace NVVM { /// Registers the `TargetAttrInterface` for the `#nvvm.target` attribute in the /// given registry. void registerNVVMTargetInterfaceExternalModels(DialectRegistry ®istry); /// Registers the `TargetAttrInterface` for the `#nvvm.target` attribute in the /// registry associated with the given context. void registerNVVMTargetInterfaceExternalModels(MLIRContext &context); } // namespace NVVM } // namespace mlir #endif // MLIR_TARGET_LLVM_NVVM_TARGET_H