• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 defines the ROCDL dialect in MLIR, containing ROCDL operations
10 // and ROCDL specific extensions to the LLVM type system.
11 //
12 // Unfortunately there does not exists a formal definition of ROCDL IR that be
13 // pointed to here. However the following links contain more information about
14 // ROCDL (ROCm-Device-Library)
15 //
16 // https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/doc/OCML.md
17 // https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/doc/OCKL.md
18 // https://llvm.org/docs/AMDGPUUsage.html
19 //
20 //===----------------------------------------------------------------------===//
21 
22 #ifndef MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
23 #define MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_
24 
25 #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
26 #include "mlir/IR/Dialect.h"
27 #include "mlir/IR/OpDefinition.h"
28 #include "mlir/Interfaces/SideEffectInterfaces.h"
29 
30 ///// Ops /////
31 #define GET_OP_CLASSES
32 #include "mlir/Dialect/LLVMIR/ROCDLOps.h.inc"
33 
34 #include "mlir/Dialect/LLVMIR/ROCDLOpsDialect.h.inc"
35 
36 #endif /* MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_ */
37