Files
gps/tools/local/circt/include/mlir/Target/LLVM/ROCDL/Target.h
T
2026-07-12 11:01:51 +03:00

31 lines
1.1 KiB
C++

//===- Target.h - MLIR ROCDL 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 ROCDL target interface.
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_TARGET_LLVM_ROCDL_TARGET_H
#define MLIR_TARGET_LLVM_ROCDL_TARGET_H
namespace mlir {
class DialectRegistry;
class MLIRContext;
namespace ROCDL {
/// Registers the `TargetAttrInterface` for the `#rocdl.target` attribute in the
/// given registry.
void registerROCDLTargetInterfaceExternalModels(DialectRegistry &registry);
/// Registers the `TargetAttrInterface` for the `#rocdl.target` attribute in the
/// registry associated with the given context.
void registerROCDLTargetInterfaceExternalModels(MLIRContext &context);
} // namespace ROCDL
} // namespace mlir
#endif // MLIR_TARGET_LLVM_ROCDL_TARGET_H