[Mlir-commits] [mlir] b24e3cc - [mlir] Put template specialization in the same namespace

Lei Zhang llvmlistbot at llvm.org
Tue Feb 2 07:05:43 PST 2021


Author: Lei Zhang
Date: 2021-02-02T10:05:32-05:00
New Revision: b24e3cc5423c646447589d9701e5bbee8204cb8f

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

LOG: [mlir] Put template specialization in the same namespace

This should address GCC 5 failure due to specialization of
runStrategy in different namespace.

Added: 
    

Modified: 
    mlir/test/lib/Transforms/TestLinalgCodegenStrategy.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Transforms/TestLinalgCodegenStrategy.cpp b/mlir/test/lib/Transforms/TestLinalgCodegenStrategy.cpp
index 9c0aadd79b96..d125e06c7f7d 100644
--- a/mlir/test/lib/Transforms/TestLinalgCodegenStrategy.cpp
+++ b/mlir/test/lib/Transforms/TestLinalgCodegenStrategy.cpp
@@ -111,7 +111,6 @@ struct TestLinalgCodegenStrategy
           "\tlinalg.fill: anchor on linalg.fill\n"),
       llvm::cl::init("")};
 };
-} // end anonymous namespace
 
 template <>
 void TestLinalgCodegenStrategy::runStrategy<LinalgOp>(
@@ -171,6 +170,7 @@ void TestLinalgCodegenStrategy::runStrategy(
           VectorTransferToSCFOptions().setUnroll(unrollVectorTransfers));
   strategy.transform(getFunction());
 }
+} // end anonymous namespace
 
 /// Apply transformations specified as patterns.
 void TestLinalgCodegenStrategy::runOnFunction() {


        


More information about the Mlir-commits mailing list