MLIR
24.0.0git
include
mlir
Dialect
LLVMIR
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
37
#include "
mlir/Dialect/LLVMIR/ROCDLAttributes.h
"
38
#include "
mlir/Dialect/LLVMIR/ROCDLDialectDecl.h
"
39
40
///// Ops /////
41
#include "
mlir/Dialect/LLVMIR/ROCDLBufferOps.h
"
42
#include "
mlir/Dialect/LLVMIR/ROCDLConvertOps.h
"
43
#include "
mlir/Dialect/LLVMIR/ROCDLDeprecatedOps.h
"
44
#include "
mlir/Dialect/LLVMIR/ROCDLDotOps.h
"
45
#include "
mlir/Dialect/LLVMIR/ROCDLIndexOps.h
"
46
#include "
mlir/Dialect/LLVMIR/ROCDLLDSDMAOps.h
"
47
#include "
mlir/Dialect/LLVMIR/ROCDLLaneOps.h
"
48
#include "
mlir/Dialect/LLVMIR/ROCDLMathOps.h
"
49
#include "
mlir/Dialect/LLVMIR/ROCDLMemoryOps.h
"
50
#include "
mlir/Dialect/LLVMIR/ROCDLMfmaOps.h
"
51
#include "
mlir/Dialect/LLVMIR/ROCDLSchedOps.h
"
52
#include "
mlir/Dialect/LLVMIR/ROCDLSyncOps.h
"
53
#include "
mlir/Dialect/LLVMIR/ROCDLWmmaOps.h
"
54
55
#endif
/* MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_ */
ROCDLAttributes.h
ROCDLBufferOps.h
ROCDLConvertOps.h
ROCDLDeprecatedOps.h
ROCDLDialectDecl.h
ROCDLDotOps.h
ROCDLIndexOps.h
ROCDLLDSDMAOps.h
ROCDLLaneOps.h
ROCDLMathOps.h
ROCDLMemoryOps.h
ROCDLMfmaOps.h
ROCDLSchedOps.h
ROCDLSyncOps.h
ROCDLWmmaOps.h
Generated on
for MLIR by
1.14.0