1 //==-- GPUToROCDL.td - GPU Ops to ROCDL Patterns -------------*- tablegen -*==//
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
7 //===----------------------------------------------------------------------===//
9 // Defines Patterns to lower GPU ops to ROCDL.
11 //===----------------------------------------------------------------------===//
13 #ifndef MLIR_CONVERSION_GPUTOROCDL_TD
14 #define MLIR_CONVERSION_GPUTOROCDL_TD
16 include "mlir/IR/PatternBase.td"
17 include "mlir/Dialect/GPU/IR/GPUOps.td"
18 include "mlir/Dialect/LLVMIR/ROCDLOps.td"
20 def : Pat<(GPU_BarrierOp), (ROCDL_BarrierOp)>;
22 #endif // MLIR_CONVERSION_GPUTOROCDL_TD