1//===-- GPUToSPIRV.td - GPU to SPIR-V Dialect Lowerings ----*- tablegen -*-===// 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 contains patterns to lower GPU dialect ops to to SPIR-V ops. 10// 11//===----------------------------------------------------------------------===// 12 13 14#ifndef CONVERT_GPU_TO_SPIRV 15#define CONVERT_GPU_TO_SPIRV 16 17include "mlir/Dialect/GPU/GPUOps.td" 18include "mlir/Dialect/SPIRV/SPIRVStructureOps.td" 19 20def : Pat<(GPU_ModuleEndOp), (SPV_ModuleEndOp)>; 21 22#endif // CONVERT_GPU_TO_SPIRV 23