torch-mlir/include/npcomp/Dialect/Refbackrt/IR/RefbackrtBase.td

37 lines
1.3 KiB
TableGen

//===-------------------------------------------------------*- 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
//
//===----------------------------------------------------------------------===//
#ifndef REFBACKRT_BASE
#define REFBACKRT_BASE
include "mlir/IR/OpBase.td"
def Refbackrt_Dialect : Dialect {
let name = "refbackrt";
let cppNamespace = "::mlir::NPCOMP::refbackrt";
let description = [{
The `refbackrt` dialect is the IR manifestation for interaction with the
reference backend runtime. It primarily serves as a layer that enapsulates the
data structures and functions available in the runtime, and faciliates
conversion to those conventions, such as by providing utilities for being
lowered to the llvm dialect.
}];
}
def Refbackrt_Tensor
: DialectType<
Refbackrt_Dialect,
CPred<"$_self.isa<::mlir::NPCOMP::refbackrt::TensorType>()">,
"refbackrt.tensor">,
BuildableType<
"$_builder.getType<::mlir::NPCOMP::refbackrt::TensorType>()"> {
let typeDescription = [{The runtime type that represents a buffer.}];
}
#endif // #ifndef REFBACKRT_BASE