MLIR  16.0.0git
NVGPUDialect.h
Go to the documentation of this file.
1 //===- NVGPUDialect.h - MLIR Dialect for NVGPU ------------------*- 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 Target dialect for NVGPU in MLIR.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_NVGPU_NVGPUDIALECT_H_
14 #define MLIR_DIALECT_NVGPU_NVGPUDIALECT_H_
15 
16 #include "mlir/IR/BuiltinTypes.h"
17 #include "mlir/IR/Dialect.h"
18 #include "mlir/IR/OpDefinition.h"
20 
21 namespace mlir {
22 namespace nvgpu {
23 
24 /// Device-side token storage type. There is only one type of device-side token.
26  : public Type::TypeBase<DeviceAsyncTokenType, Type, TypeStorage> {
27 public:
28  // Used for generic hooks in TypeBase.
29  using Base::Base;
30 };
31 
32 } // namespace nvgpu
33 } // namespace mlir
34 
35 #include "mlir/Dialect/NVGPU/IR/NVGPUDialect.h.inc"
36 
37 #define GET_OP_CLASSES
38 #include "mlir/Dialect/NVGPU/IR/NVGPU.h.inc"
39 
40 #endif // MLIR_DIALECT_NVGPU_NVGPUDIALECT_H_
Include the generated interface declarations.
StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT, Traits... > Base
Utility declarations for the concrete attribute class.
Device-side token storage type. There is only one type of device-side token.
Definition: NVGPUDialect.h:25
Utility class for implementing users of storage classes uniqued by a StorageUniquer.