MLIR 24.0.0git
ROCDLDialect.h
Go to the documentation of this file.
1//===- ROCDLDialect.h - MLIR ROCDL IR dialect -------------------*- 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 file declares the ROCDL dialect in MLIR with all its ops, attributes
10// and enums. The ROCDL dialect contains MLIR-based wrappers around
11// AMDGPU-specific LLVM intrinsics and attributes, as well as some wrappers
12// around the ROCm device libraries.
13//
14// Unfortunately there does not exists a formal definition of ROCDL IR that be
15// pointed to here. However the following links contain more information about
16// ROCDL (ROCm-Device-Library)
17//
18// https://github.com/ROCm/llvm-project/blob/amd-staging/amd/device-libs/doc/OCML.md
19// https://github.com/ROCm/llvm-project/blob/amd-staging/amd/device-libs/doc/OCKL.md
20// https://llvm.org/docs/AMDGPUUsage.html
21//
22// Prefer the narrower headers: this umbrella header only exists for
23// compatibility. Including all ops of the ROCDL dialect is expensive to
24// compile, so include this header only if most of the headers below are
25// needed anyway. Otherwise include:
26// - ROCDLDialectDecl.h for the dialect declaration,
27// - ROCDLAttributes.h for its attributes and enums,
28// - ROCDL<Partition>Ops.h for the ops of an op partition, such as
29// ROCDLIndexOps.h for `rocdl.workitem.id.x` and ROCDLMfmaOps.h for
30// `rocdl.mfma.f32.32x32x8f16`.
31//
32//===----------------------------------------------------------------------===//
33
34#ifndef MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
35#define MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
36
39
40///// Ops /////
54
55#endif /* MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_ */