My Project
Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerations
+
Enumerator
a
b
c
d
f
i
l
m
n
o
p
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Enumerations
+
Enumerator
a
c
d
f
h
l
m
n
o
r
s
t
w
+
Related Functions
a
b
c
d
h
i
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
+
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
+
Macros
d
g
i
l
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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 MLIR 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/IR/Dialect.h
"
26
#include "
mlir/IR/OpDefinition.h
"
27
28
namespace
mlir
{
29
namespace
ROCDL {
30
32
#define GET_OP_CLASSES
33
#include "mlir/Dialect/LLVMIR/ROCDLOps.h.inc"
34
35
class
ROCDLDialect
:
public
Dialect
{
36
public
:
37
explicit
ROCDLDialect
(
MLIRContext
*context);
38
39
static
StringRef
getDialectNamespace
() {
return
"rocdl"
; }
40
};
41
42
}
// namespace ROCDL
43
}
// namespace mlir
44
45
#endif
/* MLIR_DIALECT_LLVMIR_ROCDLDIALECT_H_ */
mlir
Definition:
InferTypeOpInterface.cpp:20
mlir::ROCDL::ROCDLDialect::getDialectNamespace
static StringRef getDialectNamespace()
Definition:
ROCDLDialect.h:39
mlir::Dialect
Definition:
Dialect.h:39
OpDefinition.h
Dialect.h
mlir::ROCDL::ROCDLDialect
Definition:
ROCDLDialect.h:35
mlir::MLIRContext
Definition:
MLIRContext.h:34
mlir::ROCDL::ROCDLDialect::ROCDLDialect
ROCDLDialect(MLIRContext *context)
Definition:
ROCDLDialect.cpp:56
Generated by
1.8.13