MLIR
22.0.0git
include
mlir
Target
LLVMIR
Dialect
GPU
GPUToLLVMIRTranslation.h
Go to the documentation of this file.
1
//===- GPUToLLVMIRTranslation.h - GPU Dialect to LLVM IR --------*- 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 GPU dialect to LLVM IR translation.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef MLIR_TARGET_LLVMIR_DIALECT_GPU_GPUTOLLVMIRTRANSLATION_H
14
#define MLIR_TARGET_LLVMIR_DIALECT_GPU_GPUTOLLVMIRTRANSLATION_H
15
16
namespace
mlir
{
17
18
class
DialectRegistry
;
19
class
MLIRContext
;
20
21
/// Register the GPU dialect and the translation from it to the LLVM IR in
22
/// the given registry;
23
void
registerGPUDialectTranslation
(
DialectRegistry
®istry);
24
25
/// Register the GPU dialect and the translation from it in the registry
26
/// associated with the given context.
27
void
registerGPUDialectTranslation
(
MLIRContext
&context);
28
29
namespace
gpu
{
30
/// Registers the offloading LLVM translation interfaces for
31
/// `gpu.select_object`.
32
void
registerOffloadingLLVMTranslationInterfaceExternalModels
(
33
mlir::DialectRegistry ®istry);
34
}
// namespace gpu
35
36
}
// namespace mlir
37
38
#endif
// MLIR_TARGET_LLVMIR_DIALECT_GPU_GPUTOLLVMIRTRANSLATION_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::gpu
Definition
GPUCommonPass.h:35
mlir::gpu::registerOffloadingLLVMTranslationInterfaceExternalModels
void registerOffloadingLLVMTranslationInterfaceExternalModels(mlir::DialectRegistry ®istry)
Registers the offloading LLVM translation interfaces for gpu.select_object.
Definition
SelectObjectAttr.cpp:468
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::registerGPUDialectTranslation
void registerGPUDialectTranslation(DialectRegistry ®istry)
Register the GPU dialect and the translation from it to the LLVM IR in the given registry;.
Definition
GPUToLLVMIRTranslation.cpp:66
Generated on
for MLIR by
1.14.0