aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-09-08 14:02:46 +0200
committerBenjamin Kramer <benny.kra@googlemail.com>2020-09-08 14:03:30 +0200
commitdf63eedef64d715ce1f31843f7de9c11fe1e597f (patch)
tree4e46cbe3f0f0de2627804a87178a220bf812ca6d
parentae85da86ad8fbd022129650d0b2a6b615709a790 (diff)
downloadllvm-df63eedef64d715ce1f31843f7de9c11fe1e597f.zip
llvm-df63eedef64d715ce1f31843f7de9c11fe1e597f.tar.gz
llvm-df63eedef64d715ce1f31843f7de9c11fe1e597f.tar.bz2
[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]
-rw-r--r--mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
index 0eb46f7..0a74472 100644
--- a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
+++ b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
@@ -131,7 +131,6 @@ private:
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