OSDN Git Service

[mlir] NFC - Appease gcc 5
authorNicolas Vasilache <ntv@google.com>
Tue, 19 May 2020 21:53:51 +0000 (17:53 -0400)
committerNicolas Vasilache <ntv@google.com>
Wed, 20 May 2020 02:47:51 +0000 (22:47 -0400)
This should fix the error ```
VectorToSCF.cpp:238:62: error: specialization of 'template<class
ConcreteOp> mlir::LogicalResult
{anonymous}::NDTransferOpHelper<ConcreteOp>::doReplace()' in different
namespace
```

mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp

index bfe0c44..a06c598 100644 (file)
@@ -133,7 +133,6 @@ private:
   VectorType minorVectorType; // vector<(minor_dims) x type>
   MemRefType memRefMinorVectorType; // memref<vector<(minor_dims) x type>>
 };
-} // namespace
 
 template <typename ConcreteOp>
 template <typename Lambda>
@@ -273,6 +272,8 @@ LogicalResult NDTransferOpHelper<TransferWriteOp>::doReplace() {
   return success();
 }
 
+} // namespace
+  
 /// Analyzes the `transfer` to find an access dimension along the fastest remote
 /// MemRef dimension. If such a dimension with coalescing properties is found,
 /// `pivs` and `vectorBoundsCapture` are swapped so that the invocation of