xref: /llvm-project/mlir/lib/Conversion/GPUToNVVM/GPUToNVVM.td (revision d7ef488bb6914500050dfccf95c793148457e54b)
1//==-- GPUToNVVM.td - GPU Ops to NVVM Patterns ---------------*- 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// Defines Patterns to lower GPU ops to NVVM.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_CONVERSION_GPUTONVVM_TD
14#define MLIR_CONVERSION_GPUTONVVM_TD
15
16include "mlir/IR/PatternBase.td"
17include "mlir/Dialect/GPU/IR/GPUOps.td"
18include "mlir/Dialect/LLVMIR/NVVMOps.td"
19
20def : Pat<(GPU_BarrierOp), (NVVM_Barrier0Op)>;
21
22#endif // MLIR_CONVERSION_GPUTONVVM_TD
23