[Mlir-commits] [mlir] 8fdfead - [mlir][openacc][NFC] add anonymous namespace around LegalizeDataOpForLLVMTranslation class

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 13 17:28:06 PDT 2021


Author: Valentin Clement
Date: 2021-05-13T20:27:59-04:00
New Revision: 8fdfead71aba430c163cc9c972a387a17fd8b939

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

LOG: [mlir][openacc][NFC] add anonymous namespace around LegalizeDataOpForLLVMTranslation class

Add missing anonymous namespace around LegalizeDataOpForLLVMTranslation class .

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D102380

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp b/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp
index 75b2c4033a5ba..bc60b5292a132 100644
--- a/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp
+++ b/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp
@@ -70,6 +70,8 @@ void DataDescriptor::setSize(OpBuilder &builder, Location loc, Value size) {
 // Conversion patterns
 //===----------------------------------------------------------------------===//
 
+namespace {
+
 template <typename Op>
 class LegalizeDataOpForLLVMTranslation : public ConvertOpToLLVMPattern<Op> {
   using ConvertOpToLLVMPattern<Op>::ConvertOpToLLVMPattern;
@@ -131,6 +133,7 @@ class LegalizeDataOpForLLVMTranslation : public ConvertOpToLLVMPattern<Op> {
     return success();
   }
 };
+} // namespace
 
 void mlir::populateOpenACCToLLVMConversionPatterns(
     LLVMTypeConverter &converter, OwningRewritePatternList &patterns) {


        


More information about the Mlir-commits mailing list