You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
749 B
22 lines
749 B
7 months ago
|
//==-- GPUToROCDL.td - GPU Ops to ROCDL Patterns -------------*- tablegen -*==//
|
||
|
//
|
||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||
|
// See https://llvm.org/LICENSE.txt for license information.
|
||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
//
|
||
|
// Defines Patterns to lower GPU ops to ROCDL.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef MLIR_CONVERSION_GPUTOROCDL_TD
|
||
|
#define MLIR_CONVERSION_GPUTOROCDL_TD
|
||
|
|
||
|
include "mlir/Dialect/GPU/GPUOps.td"
|
||
|
include "mlir/Dialect/LLVMIR/ROCDLOps.td"
|
||
|
|
||
|
def : Pat<(GPU_BarrierOp), (ROCDL_BarrierOp)>;
|
||
|
|
||
|
#endif // MLIR_CONVERSION_GPUTOROCDL_TD
|