[Mlir-commits] [mlir] df63eed - [mlir][VectorOps]

Benjamin Kramer llvmlistbot at llvm.org
Tue Sep 8 05:03:45 PDT 2020


Author: Benjamin Kramer
Date: 2020-09-08T14:03:30+02:00
New Revision: df63eedef64d715ce1f31843f7de9c11fe1e597f

URL: https://github.com/llvm/llvm-project/commit/df63eedef64d715ce1f31843f7de9c11fe1e597f
DIFF: https://github.com/llvm/llvm-project/commit/df63eedef64d715ce1f31843f7de9c11fe1e597f.diff

LOG: [mlir][VectorOps]

Put back anonymous namespace to work around GCC5 bug.

VectorToSCF.cpp:241:61: error: specialization of 'template<class ConcreteOp> mlir::LogicalResult {anonymous}::NDTransferOpHelper<ConcreteOp>::doReplace()' in different namespace [-fpermissive]

Added: 
    

Modified: 
    mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
index 0eb46f7ba3cf..0a74472a49f6 100644
--- a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
+++ b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
@@ -131,7 +131,6 @@ class NDTransferOpHelper {
   VectorType minorVectorType; // vector<(minor_dims) x type>
   MemRefType memRefMinorVectorType; // memref<vector<(minor_dims) x type>>
 };
-} // namespace
 
 template <typename ConcreteOp>
 void NDTransferOpHelper<ConcreteOp>::emitLoops(
@@ -395,6 +394,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


        


More information about the Mlir-commits mailing list