2019-10-18 15:30:14 +08:00
|
|
|
//==-- GPUToNVVM.td - GPU Ops to NVVM Patterns ---------------*- tablegen -*==//
|
|
|
|
//
|
2020-01-26 11:58:30 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
2019-12-24 01:35:36 +08:00
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2019-10-18 15:30:14 +08:00
|
|
|
//
|
2019-12-24 01:35:36 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2019-10-18 15:30:14 +08:00
|
|
|
//
|
|
|
|
// Defines Patterns to lower GPU ops to NVVM.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2019-11-01 04:29:14 +08:00
|
|
|
#ifndef MLIR_CONVERSION_GPUTONVVM_TD
|
2019-10-18 15:30:14 +08:00
|
|
|
#define MLIR_CONVERSION_GPUTONVVM_TD
|
|
|
|
|
|
|
|
include "mlir/Dialect/GPU/GPUOps.td"
|
|
|
|
include "mlir/Dialect/LLVMIR/NVVMOps.td"
|
|
|
|
|
2019-10-22 02:10:13 +08:00
|
|
|
def : Pat<(GPU_BarrierOp), (NVVM_Barrier0Op)>;
|
2019-10-18 15:30:14 +08:00
|
|
|
|
|
|
|
#endif // MLIR_CONVERSION_GPUTONVVM_TD
|