mirror of https://github.com/llvm/torch-mlir
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
//===------------------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// This file is licensed 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 NPCOMP_DIALECT_NPCOMPRT_IR_NPCOMPRTDIALECT_H
|
|
#define NPCOMP_DIALECT_NPCOMPRT_IR_NPCOMPRTDIALECT_H
|
|
|
|
#include "mlir/IR/Dialect.h"
|
|
#include "npcomp/Dialect/Common.h"
|
|
|
|
namespace mlir {
|
|
namespace NPCOMP {
|
|
namespace npcomprt {
|
|
|
|
namespace NpcomprtTypes {
|
|
enum Kind { TensorType = TypeRanges::Npcomprt };
|
|
} // namespace NpcomprtTypes
|
|
|
|
class TensorType : public Type::TypeBase<TensorType, Type, TypeStorage> {
|
|
public:
|
|
using Base::Base;
|
|
|
|
static TensorType get(MLIRContext *context) {
|
|
return Base::get(context, NpcomprtTypes::Kind::TensorType);
|
|
}
|
|
|
|
static bool kindof(unsigned kind) {
|
|
return kind == NpcomprtTypes::Kind::TensorType;
|
|
}
|
|
};
|
|
|
|
#include "npcomp/Dialect/Npcomprt/IR/NpcomprtOpsDialect.h.inc"
|
|
|
|
} // namespace npcomprt
|
|
} // namespace NPCOMP
|
|
} // namespace mlir
|
|
|
|
#endif // NPCOMP_DIALECT_NPCOMPRT_IR_NPCOMPRTDIALECT_H
|