MLIR
20.0.0git
include
mlir
Target
SPIRV
Target.h
Go to the documentation of this file.
1
//===- Target.h - MLIR SPIR-V 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 SPIR-V target interface.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_TARGET_SPIRV_TARGET_H
14
#define MLIR_TARGET_SPIRV_TARGET_H
15
16
namespace
mlir
{
17
class
DialectRegistry;
18
class
MLIRContext;
19
namespace
spirv {
20
/// Registers the `TargetAttrInterface` for the `#spirv.target_env` attribute in
21
/// the given registry.
22
void
registerSPIRVTargetInterfaceExternalModels
(DialectRegistry ®istry);
23
24
/// Registers the `TargetAttrInterface` for the `#spirv.target_env` attribute in
25
/// the registry associated with the given context.
26
void
registerSPIRVTargetInterfaceExternalModels
(MLIRContext &context);
27
}
// namespace spirv
28
}
// namespace mlir
29
30
#endif
// MLIR_TARGET_SPIRV_TARGET_H
mlir::spirv::registerSPIRVTargetInterfaceExternalModels
void registerSPIRVTargetInterfaceExternalModels(DialectRegistry ®istry)
Registers the TargetAttrInterface for the #spirv.target_env attribute in the given registry.
Definition:
Target.cpp:44
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Tue Nov 19 2024 08:32:23 for MLIR by
1.9.1