forked from OSchip/llvm-project
NFC: Add header blocks to improve readability.
PiperOrigin-RevId: 263951251
This commit is contained in:
parent
d745101339
commit
dbf8538b64
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue