1 //===- NVGPUDialect.cpp - MLIR NVGPU ops implementation -------------------===// 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 implements the NVGPU dialect and its operations. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #include "mlir/Dialect/NVGPU/NVGPUDialect.h" 14 #include "mlir/IR/Builders.h" 15 #include "mlir/IR/OpImplementation.h" 16 #include "mlir/IR/TypeUtilities.h" 17 18 using namespace mlir; 19 20 #include "mlir/Dialect/NVGPU/NVGPUDialect.cpp.inc" 21 22 void nvgpu::NVGPUDialect::initialize() { 23 addOperations< 24 #define GET_OP_LIST 25 #include "mlir/Dialect/NVGPU/NVGPU.cpp.inc" 26 >(); 27 } 28 29 #define GET_OP_CLASSES 30 #include "mlir/Dialect/NVGPU/NVGPU.cpp.inc" 31