NFC: Add header blocks to improve readability.

PiperOrigin-RevId: 263951251
This commit is contained in:
River Riddle 2019-08-17 10:22:19 -07:00 committed by A. Unique TensorFlower
parent d745101339
commit dbf8538b64
1 changed files with 10 additions and 2 deletions

View File

@ -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) {