My Project
NVVMDialect.h
Go to the documentation of this file.
1 //===- NVVMDialect.h - MLIR NVVM 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 NVVM IR dialect in MLIR, containing NVVM operations and
10 // NVVM specific extensions to the LLVM type system.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
15 #define MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
16 
17 #include "mlir/IR/Dialect.h"
18 #include "mlir/IR/OpDefinition.h"
19 namespace mlir {
20 namespace NVVM {
21 
23 #define GET_OP_CLASSES
24 #include "mlir/Dialect/LLVMIR/NVVMOps.h.inc"
25 
26 class NVVMDialect : public Dialect {
27 public:
28  explicit NVVMDialect(MLIRContext *context);
29 
30  static StringRef getDialectNamespace() { return "nvvm"; }
31 };
32 
33 } // namespace NVVM
34 } // namespace mlir
35 
36 #endif /* MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_ */
Definition: InferTypeOpInterface.cpp:20
static StringRef getDialectNamespace()
Definition: NVVMDialect.h:30
NVVMDialect(MLIRContext *context)
Definition: NVVMDialect.cpp:192
Definition: Dialect.h:39
Definition: MLIRContext.h:34
Definition: NVVMDialect.h:26