MLIR 22.0.0git
Target.h
Go to the documentation of this file.
1//===- Target.h - MLIR NVVM target registration -----------------*- C++ -*-===//
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// This provides registration calls for attaching the NVVM target interface.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_TARGET_LLVM_NVVM_TARGET_H
14#define MLIR_TARGET_LLVM_NVVM_TARGET_H
15
16namespace mlir {
17class DialectRegistry;
18class MLIRContext;
19namespace NVVM {
20/// Registers the `TargetAttrInterface` for the `#nvvm.target` attribute in the
21/// given registry.
22void registerNVVMTargetInterfaceExternalModels(DialectRegistry &registry);
23
24/// Registers the `TargetAttrInterface` for the `#nvvm.target` attribute in the
25/// registry associated with the given context.
26void registerNVVMTargetInterfaceExternalModels(MLIRContext &context);
27} // namespace NVVM
28} // namespace mlir
29
30#endif // MLIR_TARGET_LLVM_NVVM_TARGET_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:63
void registerNVVMTargetInterfaceExternalModels(DialectRegistry &registry)
Registers the TargetAttrInterface for the #nvvm.target attribute in the given registry.
Definition Target.cpp:73
Include the generated interface declarations.