MLIR
22.0.0git
include
mlir
Target
LLVM
XeVM
Target.h
Go to the documentation of this file.
1
//===-- Target.h - MLIR XeVM target registration ----------------*- C++ -*-===//
2
//
3
// This file is licensed 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 XeVM target interface.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_TARGET_LLVM_XEVM_TARGET_H
14
#define MLIR_TARGET_LLVM_XEVM_TARGET_H
15
16
namespace
mlir
{
17
class
DialectRegistry;
18
class
MLIRContext;
19
namespace
xevm {
20
/// Registers the `TargetAttrInterface` for the `#xevm.target` attribute in
21
/// the given registry.
22
void
registerXeVMTargetInterfaceExternalModels
(
mlir::DialectRegistry
®istry);
23
24
/// Registers the `TargetAttrInterface` for the `#xevm.target` attribute in
25
/// the registry associated with the given context.
26
void
registerXeVMTargetInterfaceExternalModels
(
mlir::MLIRContext
&context);
27
}
// namespace xevm
28
}
// namespace mlir
29
30
#endif
// MLIR_TARGET_LLVM_XEVM_TARGET_H
mlir::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition:
DialectRegistry.h:139
mlir::MLIRContext
MLIRContext is the top-level object for a collection of MLIR operations.
Definition:
MLIRContext.h:63
mlir::xevm::registerXeVMTargetInterfaceExternalModels
void registerXeVMTargetInterfaceExternalModels(mlir::DialectRegistry ®istry)
Registers the TargetAttrInterface for the #xevm.target attribute in the given registry.
Definition:
Target.cpp:64
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Mon Sep 1 2025 12:36:26 for MLIR by
1.9.1