diff options
-rw-r--r-- | mlir/lib/IR/Types.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mlir/lib/IR/Types.cpp b/mlir/lib/IR/Types.cpp index cd75176a298..f1a6d8f11c9 100644 --- a/mlir/lib/IR/Types.cpp +++ b/mlir/lib/IR/Types.cpp @@ -24,6 +24,10 @@ using namespace mlir; using namespace mlir::detail; +//===----------------------------------------------------------------------===// +// Type +//===----------------------------------------------------------------------===// + unsigned Type::getKind() const { return impl->getKind(); } /// Get the dialect this type is registered to. @@ -34,7 +38,9 @@ MLIRContext *Type::getContext() const { return getDialect().getContext(); } unsigned Type::getSubclassData() const { return impl->getSubclassData(); } void Type::setSubclassData(unsigned val) { impl->setSubclassData(val); } -/// Function Type. +//===----------------------------------------------------------------------===// +// FunctionType +//===----------------------------------------------------------------------===// FunctionType FunctionType::get(ArrayRef<Type> inputs, ArrayRef<Type> results, MLIRContext *context) { @@ -51,7 +57,9 @@ ArrayRef<Type> FunctionType::getResults() const { return getImpl()->getResults(); } -/// OpaqueType +//===----------------------------------------------------------------------===// +// OpaqueType +//===----------------------------------------------------------------------===// OpaqueType OpaqueType::get(Identifier dialect, StringRef typeData, MLIRContext *context) { |