Fix class/struct mismatch between declaration/definition (NFC)
authorMehdi Amini <aminim@google.com>
Fri, 10 May 2019 05:56:02 +0000 (22:56 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:27:07 +0000 (19:27 -0700)
    Fix clang warnings

--

PiperOrigin-RevId: 247557395

mlir/examples/Linalg/Linalg1/include/linalg1/ViewType.h
mlir/include/mlir/IR/AffineMap.h
mlir/include/mlir/Linalg/IR/LinalgTypes.h

index c58e12c..f4c317b 100644 (file)
@@ -23,7 +23,7 @@
 
 namespace linalg {
 
-class ViewTypeStorage;
+struct ViewTypeStorage;
 
 /// A ViewType represents a range abstraction on top of an underlying storage
 /// type. It is parameterizable by the underlying element type and the rank of
index 1df6ac7..5670d45 100644 (file)
@@ -30,7 +30,7 @@
 namespace mlir {
 
 namespace detail {
-class AffineMapStorage;
+struct AffineMapStorage;
 } // end namespace detail
 
 class AffineExpr;
index 38ef3cb..eaf391c 100644 (file)
@@ -46,7 +46,7 @@ public:
 /// A BufferType represents a contiguous block of memory that can be allocated
 /// and deallocated. A buffer cannot be indexed directly, a view must be
 /// laid out on a buffer to give it indexing semantics.
-class BufferTypeStorage;
+struct BufferTypeStorage;
 class BufferType : public Type::TypeBase<BufferType, Type, BufferTypeStorage> {
 public:
   // Used for generic hooks in TypeBase.
@@ -93,7 +93,7 @@ public:
 ///    %2 = linalg.range %arg2:%arg3:%arg4 : !linalg.range
 ///    %3 = linalg.view %1[%2, %2] : !linalg.view<?x?xf32>
 /// ```
-class ViewTypeStorage;
+struct ViewTypeStorage;
 class ViewType : public Type::TypeBase<ViewType, Type, ViewTypeStorage> {
 public:
   // Used for generic hooks in TypeBase.