NFC: Add header blocks to improve readability.
authorRiver Riddle <riverriddle@google.com>
Sat, 17 Aug 2019 17:22:19 +0000 (10:22 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sat, 17 Aug 2019 17:22:50 +0000 (10:22 -0700)
PiperOrigin-RevId: 263951251

mlir/lib/IR/Types.cpp

index cd75176..f1a6d8f 100644 (file)
 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) {