Adjust "end namespace" comment in MLIR to match new agree'd coding style
authorMehdi Amini <joker.eph@gmail.com>
Tue, 7 Dec 2021 18:27:58 +0000 (18:27 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 8 Dec 2021 06:05:26 +0000 (06:05 +0000)
See D115115 and this mailing list discussion:
https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.html

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

405 files changed:
mlir/docs/PassManagement.md
mlir/examples/toy/Ch3/mlir/ToyCombine.cpp
mlir/examples/toy/Ch4/include/toy/Passes.h
mlir/examples/toy/Ch4/include/toy/ShapeInferenceInterface.h
mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
mlir/examples/toy/Ch4/mlir/ToyCombine.cpp
mlir/examples/toy/Ch5/include/toy/Passes.h
mlir/examples/toy/Ch5/include/toy/ShapeInferenceInterface.h
mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch5/mlir/ShapeInferencePass.cpp
mlir/examples/toy/Ch5/mlir/ToyCombine.cpp
mlir/examples/toy/Ch6/include/toy/Passes.h
mlir/examples/toy/Ch6/include/toy/ShapeInferenceInterface.h
mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp
mlir/examples/toy/Ch6/mlir/ShapeInferencePass.cpp
mlir/examples/toy/Ch6/mlir/ToyCombine.cpp
mlir/examples/toy/Ch7/include/toy/Dialect.h
mlir/examples/toy/Ch7/include/toy/Passes.h
mlir/examples/toy/Ch7/include/toy/ShapeInferenceInterface.h
mlir/examples/toy/Ch7/mlir/Dialect.cpp
mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
mlir/examples/toy/Ch7/mlir/ShapeInferencePass.cpp
mlir/examples/toy/Ch7/mlir/ToyCombine.cpp
mlir/include/mlir/Analysis/AffineAnalysis.h
mlir/include/mlir/Analysis/AffineStructures.h
mlir/include/mlir/Analysis/AliasAnalysis.h
mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h
mlir/include/mlir/Analysis/CallGraph.h
mlir/include/mlir/Analysis/DataFlowAnalysis.h
mlir/include/mlir/Analysis/Liveness.h
mlir/include/mlir/Analysis/LoopAnalysis.h
mlir/include/mlir/Analysis/NestedMatcher.h
mlir/include/mlir/Analysis/NumberOfExecutions.h
mlir/include/mlir/Analysis/SliceAnalysis.h
mlir/include/mlir/Analysis/Utils.h
mlir/include/mlir/CAPI/Utils.h
mlir/include/mlir/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.h
mlir/include/mlir/Conversion/ArithmeticToSPIRV/ArithmeticToSPIRV.h
mlir/include/mlir/Conversion/SCFToGPU/SCFToGPU.h
mlir/include/mlir/Dialect/Affine/IR/AffineOps.h
mlir/include/mlir/Dialect/Affine/Passes.h
mlir/include/mlir/Dialect/Arithmetic/IR/Arithmetic.h
mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.h
mlir/include/mlir/Dialect/Bufferization/Transforms/Bufferize.h
mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.h
mlir/include/mlir/Dialect/GPU/GPUDialect.h
mlir/include/mlir/Dialect/GPU/MemoryPromotion.h
mlir/include/mlir/Dialect/GPU/ParallelLoopMapper.h
mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
mlir/include/mlir/Dialect/MemRef/Utils/MemRefUtils.h
mlir/include/mlir/Dialect/OpenACC/OpenACC.h
mlir/include/mlir/Dialect/SCF/SCF.h
mlir/include/mlir/Dialect/SCF/Utils.h
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVDialect.h
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVEnums.h
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h
mlir/include/mlir/Dialect/Shape/Transforms/Passes.h
mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
mlir/include/mlir/Dialect/StandardOps/Transforms/DecomposeCallGraphTypes.h
mlir/include/mlir/Dialect/StandardOps/Transforms/FuncConversions.h
mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h
mlir/include/mlir/Dialect/StandardOps/Utils/Utils.h
mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
mlir/include/mlir/Dialect/Tosa/Transforms/PassDetail.h
mlir/include/mlir/Dialect/Traits.h
mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
mlir/include/mlir/Dialect/Vector/VectorOps.h
mlir/include/mlir/Dialect/Vector/VectorUtils.h
mlir/include/mlir/ExecutionEngine/CRunnerUtils.h
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
mlir/include/mlir/ExecutionEngine/OptUtils.h
mlir/include/mlir/IR/AffineExprVisitor.h
mlir/include/mlir/IR/AffineMap.h
mlir/include/mlir/IR/AsmState.h
mlir/include/mlir/IR/AttributeSupport.h
mlir/include/mlir/IR/Attributes.h
mlir/include/mlir/IR/Block.h
mlir/include/mlir/IR/BlockAndValueMapping.h
mlir/include/mlir/IR/BlockSupport.h
mlir/include/mlir/IR/BuiltinAttributeInterfaces.h
mlir/include/mlir/IR/BuiltinAttributes.h
mlir/include/mlir/IR/BuiltinOps.h
mlir/include/mlir/IR/BuiltinTypes.h
mlir/include/mlir/IR/Diagnostics.h
mlir/include/mlir/IR/Dialect.h
mlir/include/mlir/IR/DialectImplementation.h
mlir/include/mlir/IR/DialectInterface.h
mlir/include/mlir/IR/Dominance.h
mlir/include/mlir/IR/FunctionSupport.h
mlir/include/mlir/IR/Identifier.h
mlir/include/mlir/IR/IntegerSet.h
mlir/include/mlir/IR/Location.h
mlir/include/mlir/IR/MLIRContext.h
mlir/include/mlir/IR/Matchers.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/OpImplementation.h
mlir/include/mlir/IR/Operation.h
mlir/include/mlir/IR/OperationSupport.h
mlir/include/mlir/IR/OwningOpRef.h
mlir/include/mlir/IR/PatternMatch.h
mlir/include/mlir/IR/Region.h
mlir/include/mlir/IR/SymbolTable.h
mlir/include/mlir/IR/Threading.h
mlir/include/mlir/IR/TypeSupport.h
mlir/include/mlir/IR/TypeUtilities.h
mlir/include/mlir/IR/Types.h
mlir/include/mlir/IR/Value.h
mlir/include/mlir/IR/Verifier.h
mlir/include/mlir/IR/Visitors.h
mlir/include/mlir/Interfaces/CallInterfaces.h
mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
mlir/include/mlir/Interfaces/DecodeAttributesInterfaces.h
mlir/include/mlir/Interfaces/FoldInterfaces.h
mlir/include/mlir/Interfaces/SideEffectInterfaces.h
mlir/include/mlir/Parser.h
mlir/include/mlir/Parser/AsmParserState.h
mlir/include/mlir/Pass/AnalysisManager.h
mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassInstrumentation.h
mlir/include/mlir/Pass/PassManager.h
mlir/include/mlir/Pass/PassOptions.h
mlir/include/mlir/Pass/PassRegistry.h
mlir/include/mlir/Reducer/PassDetail.h
mlir/include/mlir/Reducer/Passes.h
mlir/include/mlir/Reducer/ReductionNode.h
mlir/include/mlir/Reducer/ReductionPatternInterface.h
mlir/include/mlir/Reducer/Tester.h
mlir/include/mlir/Rewrite/FrozenRewritePatternSet.h
mlir/include/mlir/Rewrite/PatternApplicator.h
mlir/include/mlir/Support/DebugAction.h
mlir/include/mlir/Support/InterfaceSupport.h
mlir/include/mlir/Support/LLVM.h
mlir/include/mlir/Support/MathExtras.h
mlir/include/mlir/Support/MlirOptMain.h
mlir/include/mlir/Support/StorageUniquer.h
mlir/include/mlir/Support/ThreadLocalCache.h
mlir/include/mlir/Support/TypeID.h
mlir/include/mlir/TableGen/Argument.h
mlir/include/mlir/TableGen/AttrOrTypeDef.h
mlir/include/mlir/TableGen/Attribute.h
mlir/include/mlir/TableGen/Builder.h
mlir/include/mlir/TableGen/Class.h
mlir/include/mlir/TableGen/CodeGenHelpers.h
mlir/include/mlir/TableGen/Constraint.h
mlir/include/mlir/TableGen/Dialect.h
mlir/include/mlir/TableGen/Format.h
mlir/include/mlir/TableGen/GenInfo.h
mlir/include/mlir/TableGen/GenNameParser.h
mlir/include/mlir/TableGen/Interfaces.h
mlir/include/mlir/TableGen/Operator.h
mlir/include/mlir/TableGen/Pass.h
mlir/include/mlir/TableGen/Pattern.h
mlir/include/mlir/TableGen/Predicate.h
mlir/include/mlir/TableGen/Region.h
mlir/include/mlir/TableGen/SideEffects.h
mlir/include/mlir/TableGen/Successor.h
mlir/include/mlir/TableGen/Trait.h
mlir/include/mlir/TableGen/Type.h
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/include/mlir/Target/SPIRV/Deserialization.h
mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h
mlir/include/mlir/Target/SPIRV/Serialization.h
mlir/include/mlir/Tools/mlir-lsp-server/MlirLspServerMain.h
mlir/include/mlir/Tools/mlir-reduce/MlirReduceMain.h
mlir/include/mlir/Transforms/BufferUtils.h
mlir/include/mlir/Transforms/DialectConversion.h
mlir/include/mlir/Transforms/FoldUtils.h
mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
mlir/include/mlir/Transforms/InliningUtils.h
mlir/include/mlir/Transforms/LocationSnapshot.h
mlir/include/mlir/Transforms/LoopFusionUtils.h
mlir/include/mlir/Transforms/LoopUtils.h
mlir/include/mlir/Transforms/Passes.h
mlir/include/mlir/Transforms/Utils.h
mlir/include/mlir/Transforms/ViewOpGraph.h
mlir/lib/Analysis/AffineStructures.cpp
mlir/lib/Analysis/DataFlowAnalysis.cpp
mlir/lib/Analysis/NestedMatcher.cpp
mlir/lib/Analysis/Presburger/Simplex.cpp
mlir/lib/Bindings/Python/ExecutionEngineModule.cpp
mlir/lib/Bindings/Python/IRAffine.cpp
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/Pass.cpp
mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp
mlir/lib/Conversion/ArithmeticToSPIRV/ArithmeticToSPIRV.cpp
mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp
mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
mlir/lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp
mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
mlir/lib/Conversion/PDLToPDLInterp/Predicate.h
mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.h
mlir/lib/Conversion/PDLToPDLInterp/RootOrdering.h
mlir/lib/Conversion/PassDetail.h
mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp
mlir/lib/Conversion/SPIRVCommon/Pattern.h
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Conversion/VectorToROCDL/VectorToROCDL.cpp
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
mlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
mlir/lib/Dialect/Affine/Transforms/AffineScalarReplacement.cpp
mlir/lib/Dialect/Affine/Transforms/LoopTiling.cpp
mlir/lib/Dialect/Affine/Transforms/LoopUnroll.cpp
mlir/lib/Dialect/Affine/Transforms/LoopUnrollAndJam.cpp
mlir/lib/Dialect/Affine/Transforms/PassDetail.h
mlir/lib/Dialect/Affine/Transforms/SimplifyAffineStructures.cpp
mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
mlir/lib/Dialect/Arithmetic/IR/ArithmeticDialect.cpp
mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
mlir/lib/Dialect/Arithmetic/Transforms/Bufferize.cpp
mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp
mlir/lib/Dialect/Arithmetic/Transforms/PassDetail.h
mlir/lib/Dialect/Async/Transforms/PassDetail.h
mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
mlir/lib/Dialect/Bufferization/Transforms/PassDetail.h
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/GPU/Transforms/PassDetail.h
mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/TypeDetail.h
mlir/lib/Dialect/LLVMIR/Transforms/LegalizeForExport.cpp
mlir/lib/Dialect/LLVMIR/Transforms/PassDetail.h
mlir/lib/Dialect/Linalg/IR/LinalgTypes.cpp
mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
mlir/lib/Dialect/Linalg/Transforms/PassDetail.h
mlir/lib/Dialect/Math/IR/MathDialect.cpp
mlir/lib/Dialect/MemRef/IR/MemRefDialect.cpp
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp
mlir/lib/Dialect/Quant/Transforms/PassDetail.h
mlir/lib/Dialect/SCF/SCF.cpp
mlir/lib/Dialect/SCF/Transforms/Bufferize.cpp
mlir/lib/Dialect/SCF/Transforms/PassDetail.h
mlir/lib/Dialect/SPIRV/IR/SPIRVCanonicalization.cpp
mlir/lib/Dialect/SPIRV/IR/SPIRVGLSLCanonicalization.cpp
mlir/lib/Dialect/SPIRV/Transforms/PassDetail.h
mlir/lib/Dialect/SPIRV/Transforms/RewriteInsertsPass.cpp
mlir/lib/Dialect/Shape/Transforms/PassDetail.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/Dialect/StandardOps/Transforms/FuncConversions.cpp
mlir/lib/Dialect/StandardOps/Transforms/PassDetail.h
mlir/lib/Dialect/Tensor/IR/TensorDialect.cpp
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/lib/Dialect/Tensor/Transforms/PassDetail.h
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/lib/ExecutionEngine/JitRunner.cpp
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
mlir/lib/IR/AffineExprDetail.h
mlir/lib/IR/AffineMap.cpp
mlir/lib/IR/AffineMapDetail.h
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/BuiltinDialect.cpp
mlir/lib/IR/Diagnostics.cpp
mlir/lib/IR/Dialect.cpp
mlir/lib/IR/IntegerSetDetail.h
mlir/lib/IR/MLIRContext.cpp
mlir/lib/IR/SymbolTable.cpp
mlir/lib/IR/Verifier.cpp
mlir/lib/Parser/AffineParser.cpp
mlir/lib/Parser/AsmParserImpl.h
mlir/lib/Parser/AttributeParser.cpp
mlir/lib/Parser/Lexer.h
mlir/lib/Parser/Parser.cpp
mlir/lib/Parser/Parser.h
mlir/lib/Parser/ParserState.h
mlir/lib/Parser/Token.h
mlir/lib/Pass/IRPrinting.cpp
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassCrashRecovery.cpp
mlir/lib/Pass/PassDetail.h
mlir/lib/Pass/PassManagerOptions.cpp
mlir/lib/Pass/PassRegistry.cpp
mlir/lib/Pass/PassStatistics.cpp
mlir/lib/Reducer/OptReductionPass.cpp
mlir/lib/Reducer/ReductionTreePass.cpp
mlir/lib/Rewrite/ByteCode.cpp
mlir/lib/Rewrite/ByteCode.h
mlir/lib/Support/DebugCounter.cpp
mlir/lib/Support/StorageUniquer.cpp
mlir/lib/Support/Timing.cpp
mlir/lib/TableGen/Class.cpp
mlir/lib/TableGen/Predicate.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.h
mlir/lib/Target/LLVMIR/Dialect/AMX/AMXToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/ArmNeon/ArmNeonToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/ArmSVE/ArmSVEToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/ROCDL/ROCDLToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/X86Vector/X86VectorToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/TypeFromLLVM.cpp
mlir/lib/Target/LLVMIR/TypeToLLVM.cpp
mlir/lib/Transforms/BufferOptimizations.cpp
mlir/lib/Transforms/BufferResultsToOutParams.cpp
mlir/lib/Transforms/CSE.cpp
mlir/lib/Transforms/Canonicalizer.cpp
mlir/lib/Transforms/Inliner.cpp
mlir/lib/Transforms/LocationSnapshot.cpp
mlir/lib/Transforms/LoopFusion.cpp
mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
mlir/lib/Transforms/NormalizeMemRefs.cpp
mlir/lib/Transforms/PassDetail.h
mlir/lib/Transforms/PipelineDataTransfer.cpp
mlir/lib/Transforms/SCCP.cpp
mlir/lib/Transforms/StripDebugInfo.cpp
mlir/lib/Transforms/SymbolDCE.cpp
mlir/lib/Transforms/Utils/DialectConversion.cpp
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
mlir/lib/Transforms/Utils/RegionUtils.cpp
mlir/test/APITest.h
mlir/test/lib/Analysis/TestAliasAnalysis.cpp
mlir/test/lib/Analysis/TestCallGraph.cpp
mlir/test/lib/Analysis/TestLiveness.cpp
mlir/test/lib/Analysis/TestMatchReduction.cpp
mlir/test/lib/Analysis/TestMemRefBoundCheck.cpp
mlir/test/lib/Analysis/TestMemRefDependenceCheck.cpp
mlir/test/lib/Analysis/TestMemRefStrideCalculation.cpp
mlir/test/lib/Analysis/TestNumberOfExecutions.cpp
mlir/test/lib/Analysis/TestSlice.cpp
mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp
mlir/test/lib/Dialect/Affine/TestAffineLoopParametricTiling.cpp
mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp
mlir/test/lib/Dialect/Affine/TestVectorizationUtils.cpp
mlir/test/lib/Dialect/GPU/TestGpuMemoryPromotion.cpp
mlir/test/lib/Dialect/Linalg/TestLinalgCodegenStrategy.cpp
mlir/test/lib/Dialect/Linalg/TestLinalgHoisting.cpp
mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp
mlir/test/lib/Dialect/Math/TestAlgebraicSimplification.cpp
mlir/test/lib/Dialect/Math/TestExpandTanh.cpp
mlir/test/lib/Dialect/Math/TestPolynomialApproximation.cpp
mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp
mlir/test/lib/Dialect/Shape/TestShapeFunctions.cpp
mlir/test/lib/Dialect/StandardOps/TestDecomposeCallGraphTypes.cpp
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestDialect.h
mlir/test/lib/Dialect/Test/TestPatterns.cpp
mlir/test/lib/Dialect/Test/TestTraits.cpp
mlir/test/lib/Dialect/Test/TestTypes.h
mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp
mlir/test/lib/IR/TestDiagnostics.cpp
mlir/test/lib/IR/TestDominance.cpp
mlir/test/lib/IR/TestFunc.cpp
mlir/test/lib/IR/TestInterfaces.cpp
mlir/test/lib/IR/TestMatchers.cpp
mlir/test/lib/IR/TestOpaqueLoc.cpp
mlir/test/lib/IR/TestOperationEquals.cpp
mlir/test/lib/IR/TestPrintDefUse.cpp
mlir/test/lib/IR/TestPrintNesting.cpp
mlir/test/lib/IR/TestSideEffects.cpp
mlir/test/lib/IR/TestSymbolUses.cpp
mlir/test/lib/IR/TestVisitors.cpp
mlir/test/lib/Pass/TestPassManager.cpp
mlir/test/lib/Reducer/MLIRTestReducer.cpp
mlir/test/lib/Rewrite/TestPDLByteCode.cpp
mlir/test/lib/Transforms/TestConstantFold.cpp
mlir/test/lib/Transforms/TestInlining.cpp
mlir/test/lib/Transforms/TestLoopFusion.cpp
mlir/test/mlir-tblgen/attrdefs.td
mlir/test/mlir-tblgen/default-type-attr-print-parser.td
mlir/test/mlir-tblgen/typedefs.td
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h
mlir/tools/mlir-tblgen/DialectGen.cpp
mlir/tools/mlir-tblgen/FormatGen.h
mlir/tools/mlir-tblgen/OpClass.h
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
mlir/tools/mlir-tblgen/OpFormatGen.cpp
mlir/tools/mlir-tblgen/OpFormatGen.h
mlir/tools/mlir-tblgen/OpGenHelpers.h
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
mlir/tools/mlir-tblgen/RewriterGen.cpp
mlir/unittests/Conversion/PDLToPDLInterp/RootOrderingTest.cpp
mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp
mlir/unittests/Dialect/SparseTensor/MergerTest.cpp
mlir/unittests/IR/AttributeTest.cpp
mlir/unittests/IR/DialectTest.cpp
mlir/unittests/IR/InterfaceAttachmentTest.cpp
mlir/unittests/IR/OperationSupportTest.cpp
mlir/unittests/IR/ShapedTypeTest.cpp
mlir/unittests/IR/SubElementInterfaceTest.cpp
mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp
mlir/unittests/Pass/AnalysisManagerTest.cpp
mlir/unittests/Pass/PassManagerTest.cpp

index a392073..577cd81 100644 (file)
@@ -82,7 +82,7 @@ struct MyFunctionPass : public PassWrapper<MyFunctionPass,
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 /// Register this pass so that it can be built via from a textual pass pipeline.
 /// (Pass registration is discussed more below)
index 5e74d95..01bd10c 100644 (file)
@@ -21,7 +21,7 @@ using namespace toy;
 namespace {
 /// Include the patterns defined in the Declarative Rewrite framework.
 #include "ToyCombine.inc"
-} // end anonymous namespace
+} // namespace
 
 /// This is an example of a c++ rewrite pattern for the TransposeOp. It
 /// optimizes the following scenario: transpose(transpose(x)) -> x
index 1450801..b95e0f0 100644 (file)
@@ -20,7 +20,7 @@ class Pass;
 
 namespace toy {
 std::unique_ptr<Pass> createShapeInferencePass();
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_PASSES_H
index c0148ff..cfe5a87 100644 (file)
@@ -22,7 +22,7 @@ namespace toy {
 /// Include the auto-generated declarations.
 #include "toy/ShapeInferenceOpInterfaces.h.inc"
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_SHAPEINFERENCEINTERFACE_H_
index f9f32c2..d35679c 100644 (file)
@@ -105,7 +105,7 @@ public:
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create a Shape Inference pass.
 std::unique_ptr<mlir::Pass> mlir::toy::createShapeInferencePass() {
index 5e74d95..01bd10c 100644 (file)
@@ -21,7 +21,7 @@ using namespace toy;
 namespace {
 /// Include the patterns defined in the Declarative Rewrite framework.
 #include "ToyCombine.inc"
-} // end anonymous namespace
+} // namespace
 
 /// This is an example of a c++ rewrite pattern for the TransposeOp. It
 /// optimizes the following scenario: transpose(transpose(x)) -> x
index 6f07ba6..2f49636 100644 (file)
@@ -25,7 +25,7 @@ std::unique_ptr<Pass> createShapeInferencePass();
 /// for a subset of the Toy IR (e.g. matmul).
 std::unique_ptr<mlir::Pass> createLowerToAffinePass();
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_PASSES_H
index c0148ff..cfe5a87 100644 (file)
@@ -22,7 +22,7 @@ namespace toy {
 /// Include the auto-generated declarations.
 #include "toy/ShapeInferenceOpInterfaces.h.inc"
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_SHAPEINFERENCEINTERFACE_H_
index 4a03534..8ac869d 100644 (file)
@@ -266,7 +266,7 @@ struct TransposeOpLowering : public ConversionPattern {
   }
 };
 
-} // end anonymous namespace.
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ToyToAffineLoweringPass
@@ -283,7 +283,7 @@ struct ToyToAffineLoweringPass
   }
   void runOnFunction() final;
 };
-} // end anonymous namespace.
+} // namespace
 
 void ToyToAffineLoweringPass::runOnFunction() {
   auto function = getFunction();
index f9f32c2..d35679c 100644 (file)
@@ -105,7 +105,7 @@ public:
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create a Shape Inference pass.
 std::unique_ptr<mlir::Pass> mlir::toy::createShapeInferencePass() {
index 5e74d95..01bd10c 100644 (file)
@@ -21,7 +21,7 @@ using namespace toy;
 namespace {
 /// Include the patterns defined in the Declarative Rewrite framework.
 #include "ToyCombine.inc"
-} // end anonymous namespace
+} // namespace
 
 /// This is an example of a c++ rewrite pattern for the TransposeOp. It
 /// optimizes the following scenario: transpose(transpose(x)) -> x
index e878d71..b52f236 100644 (file)
@@ -29,7 +29,7 @@ std::unique_ptr<mlir::Pass> createLowerToAffinePass();
 /// well as `Affine` and `Std`, to the LLVM dialect for codegen.
 std::unique_ptr<mlir::Pass> createLowerToLLVMPass();
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_PASSES_H
index c0148ff..cfe5a87 100644 (file)
@@ -22,7 +22,7 @@ namespace toy {
 /// Include the auto-generated declarations.
 #include "toy/ShapeInferenceOpInterfaces.h.inc"
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_SHAPEINFERENCEINTERFACE_H_
index 4a03534..8ac869d 100644 (file)
@@ -266,7 +266,7 @@ struct TransposeOpLowering : public ConversionPattern {
   }
 };
 
-} // end anonymous namespace.
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ToyToAffineLoweringPass
@@ -283,7 +283,7 @@ struct ToyToAffineLoweringPass
   }
   void runOnFunction() final;
 };
-} // end anonymous namespace.
+} // namespace
 
 void ToyToAffineLoweringPass::runOnFunction() {
   auto function = getFunction();
index c21f9d7..648b9e8 100644 (file)
@@ -160,7 +160,7 @@ private:
         globalPtr, ArrayRef<Value>({cst0, cst0}));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ToyToLLVMLoweringPass
@@ -174,7 +174,7 @@ struct ToyToLLVMLoweringPass
   }
   void runOnOperation() final;
 };
-} // end anonymous namespace
+} // namespace
 
 void ToyToLLVMLoweringPass::runOnOperation() {
   // The first thing to define is the conversion target. This will define the
index f9f32c2..d35679c 100644 (file)
@@ -105,7 +105,7 @@ public:
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create a Shape Inference pass.
 std::unique_ptr<mlir::Pass> mlir::toy::createShapeInferencePass() {
index 5e74d95..01bd10c 100644 (file)
@@ -21,7 +21,7 @@ using namespace toy;
 namespace {
 /// Include the patterns defined in the Declarative Rewrite framework.
 #include "ToyCombine.inc"
-} // end anonymous namespace
+} // namespace
 
 /// This is an example of a c++ rewrite pattern for the TransposeOp. It
 /// optimizes the following scenario: transpose(transpose(x)) -> x
index 0b88244..57e9d13 100644 (file)
@@ -25,9 +25,9 @@ namespace mlir {
 namespace toy {
 namespace detail {
 struct StructTypeStorage;
-} // end namespace detail
-} // end namespace toy
-} // end namespace mlir
+} // namespace detail
+} // namespace toy
+} // namespace mlir
 
 /// Include the auto-generated header file containing the declaration of the toy
 /// dialect.
@@ -70,7 +70,7 @@ public:
   /// Returns the number of element type held by this struct.
   size_t getNumElementTypes() { return getElementTypes().size(); }
 };
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_DIALECT_H_
index e878d71..b52f236 100644 (file)
@@ -29,7 +29,7 @@ std::unique_ptr<mlir::Pass> createLowerToAffinePass();
 /// well as `Affine` and `Std`, to the LLVM dialect for codegen.
 std::unique_ptr<mlir::Pass> createLowerToLLVMPass();
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_PASSES_H
index c0148ff..cfe5a87 100644 (file)
@@ -22,7 +22,7 @@ namespace toy {
 /// Include the auto-generated declarations.
 #include "toy/ShapeInferenceOpInterfaces.h.inc"
 
-} // end namespace toy
-} // end namespace mlir
+} // namespace toy
+} // namespace mlir
 
 #endif // MLIR_TUTORIAL_TOY_SHAPEINFERENCEINTERFACE_H_
index 285d19c..8b63c0b 100644 (file)
@@ -461,9 +461,9 @@ struct StructTypeStorage : public mlir::TypeStorage {
   /// The following field contains the element types of the struct.
   llvm::ArrayRef<mlir::Type> elementTypes;
 };
-} // end namespace detail
-} // end namespace toy
-} // end namespace mlir
+} // namespace detail
+} // namespace toy
+} // namespace mlir
 
 /// Create an instance of a `StructType` with the given element types. There
 /// *must* be at least one element type.
index 4a03534..8ac869d 100644 (file)
@@ -266,7 +266,7 @@ struct TransposeOpLowering : public ConversionPattern {
   }
 };
 
-} // end anonymous namespace.
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ToyToAffineLoweringPass
@@ -283,7 +283,7 @@ struct ToyToAffineLoweringPass
   }
   void runOnFunction() final;
 };
-} // end anonymous namespace.
+} // namespace
 
 void ToyToAffineLoweringPass::runOnFunction() {
   auto function = getFunction();
index c21f9d7..648b9e8 100644 (file)
@@ -160,7 +160,7 @@ private:
         globalPtr, ArrayRef<Value>({cst0, cst0}));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ToyToLLVMLoweringPass
@@ -174,7 +174,7 @@ struct ToyToLLVMLoweringPass
   }
   void runOnOperation() final;
 };
-} // end anonymous namespace
+} // namespace
 
 void ToyToLLVMLoweringPass::runOnOperation() {
   // The first thing to define is the conversion target. This will define the
index f9f32c2..d35679c 100644 (file)
@@ -105,7 +105,7 @@ public:
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create a Shape Inference pass.
 std::unique_ptr<mlir::Pass> mlir::toy::createShapeInferencePass() {
index 95072ee..11dba6f 100644 (file)
@@ -21,7 +21,7 @@ using namespace toy;
 namespace {
 /// Include the patterns defined in the Declarative Rewrite framework.
 #include "ToyCombine.inc"
-} // end anonymous namespace
+} // namespace
 
 /// Fold constants.
 OpFoldResult ConstantOp::fold(ArrayRef<Attribute> operands) { return value(); }
index 98b0260..120a5be 100644 (file)
@@ -182,6 +182,6 @@ void getDependenceComponents(
     AffineForOp forOp, unsigned maxLoopDepth,
     std::vector<SmallVector<DependenceComponent, 2>> *depCompsVec);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_AFFINE_ANALYSIS_H
index 0f763f8..8235f03 100644 (file)
@@ -1088,6 +1088,6 @@ LogicalResult getRelationFromMap(AffineMap &map, FlatAffineRelation &rel);
 LogicalResult getRelationFromMap(const AffineValueMap &map,
                                  FlatAffineRelation &rel);
 
-} // end namespace mlir.
+} // namespace mlir.
 
 #endif // MLIR_ANALYSIS_AFFINESTRUCTURES_H
index 925af24..3ff9e8e 100644 (file)
@@ -212,7 +212,7 @@ struct AliasAnalysisTraits {
     ImplT impl;
   };
 };
-} // end namespace detail
+} // namespace detail
 
 //===----------------------------------------------------------------------===//
 // AliasAnalysis
@@ -278,6 +278,6 @@ private:
   SmallVector<std::unique_ptr<Concept>, 4> aliasImpls;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_ALIASANALYSIS_H_
index d8bf933..9669a3c 100644 (file)
@@ -29,6 +29,6 @@ public:
   /// Return the modify-reference behavior of `op` on `location`.
   ModRefResult getModRef(Operation *op, Value location);
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_ALIASANALYSIS_LOCALALIASANALYSIS_H_
index c2b6717..9238b95 100644 (file)
@@ -216,7 +216,7 @@ private:
   CallGraphNode externalNode;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 // Provide graph traits for traversing call graphs using standard graph
@@ -253,6 +253,6 @@ struct GraphTraits<const mlir::CallGraph *>
   static nodes_iterator nodes_begin(mlir::CallGraph *cg) { return cg->begin(); }
   static nodes_iterator nodes_end(mlir::CallGraph *cg) { return cg->end(); }
 };
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_ANALYSIS_CALLGRAPH_H
index 7566c4d..29a610e 100644 (file)
@@ -396,6 +396,6 @@ private:
   MLIRContext *context;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_DATAFLOWANALYSIS_H
index 8c32a0f..7489152 100644 (file)
@@ -142,6 +142,6 @@ private:
   friend class Liveness;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_LIVENESS_H
index 41c0e7c..3797398 100644 (file)
@@ -113,6 +113,6 @@ bool isOpwiseShiftValid(AffineForOp forOp, ArrayRef<uint64_t> shifts);
 /// reductions not covered by this generic matching.
 Value matchReduction(ArrayRef<BlockArgument> iterCarriedArgs, unsigned redPos,
                      SmallVectorImpl<Operation *> &combinerOps);
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_LOOP_ANALYSIS_H
index 1587a4e..f0a7088 100644 (file)
@@ -195,7 +195,7 @@ bool isParallelLoop(Operation &op);
 bool isReductionLoop(Operation &op);
 bool isLoadOrStore(Operation &op);
 
-} // end namespace matcher
-} // end namespace mlir
+} // namespace matcher
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_MLFUNCTIONMATCHER_H_
index aa30804..a950805 100644 (file)
@@ -102,6 +102,6 @@ private:
   Optional<int64_t> numberOfBlockExecutions;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_NUMBER_OF_EXECUTIONS_H
index 2664685..fa54092 100644 (file)
@@ -205,6 +205,6 @@ getSlice(Operation *op,
 /// Returns a topologically sorted SetVector.
 SetVector<Operation *> topologicalSort(const SetVector<Operation *> &toSort);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_SLICEANALYSIS_H_
index d1d2218..7c5b5b1 100644 (file)
@@ -380,6 +380,6 @@ unsigned getInnermostCommonLoopDepth(
     ArrayRef<Operation *> ops,
     SmallVectorImpl<AffineForOp> *surroundingLoops = nullptr);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_ANALYSIS_UTILS_H
index c2e4385..000516e 100644 (file)
@@ -45,7 +45,7 @@ private:
   void *opaqueData;
   uint64_t pos;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif // MLIR_CAPI_UTILS_H
index 886efb8..aa18558 100644 (file)
@@ -22,7 +22,7 @@ void populateArithmeticToLLVMConversionPatterns(LLVMTypeConverter &converter,
                                                 RewritePatternSet &patterns);
 
 std::unique_ptr<Pass> createConvertArithmeticToLLVMPass();
-} // end namespace arith
-} // end namespace mlir
+} // namespace arith
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_ARITHMETICTOLLVM_ARITHMETICTOLLVM_H
index 02a45fc..0e42608 100644 (file)
@@ -22,7 +22,7 @@ void populateArithmeticToSPIRVPatterns(SPIRVTypeConverter &typeConverter,
                                        RewritePatternSet &patterns);
 
 std::unique_ptr<Pass> createConvertArithmeticToSPIRVPass();
-} // end namespace arith
-} // end namespace mlir
+} // namespace arith
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_ARITHMETICTOSPIRV_ARITHMETICTOSPIRV_H
index 4838679..d1221d1 100644 (file)
@@ -22,7 +22,7 @@ using OwningRewritePatternList = RewritePatternSet;
 
 namespace scf {
 class ForOp;
-} // end namespace scf
+} // namespace scf
 
 /// Convert a perfect affine loop nest with the outermost loop identified by
 /// `forOp` into a gpu::Launch operation.  Map `numBlockDims` outer loops to
index 06e8911..da4f0f9 100644 (file)
@@ -455,6 +455,6 @@ private:
   friend class AffineForOp;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 639452f..c8194d3 100644 (file)
@@ -91,6 +91,6 @@ std::unique_ptr<OperationPass<FuncOp>> createSuperVectorizePass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Dialect/Affine/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_AFFINE_RANSFORMS_PASSES_H
index 87392a8..4fa592d 100644 (file)
@@ -89,8 +89,8 @@ public:
   static bool classof(Operation *op);
 };
 
-} // end namespace arith
-} // end namespace mlir
+} // namespace arith
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // Utility Functions
@@ -109,7 +109,7 @@ bool applyCmpPredicate(arith::CmpIPredicate predicate, const APInt &lhs,
 bool applyCmpPredicate(arith::CmpFPredicate predicate, const APFloat &lhs,
                        const APFloat &rhs);
 
-} // end namespace arith
-} // end namespace mlir
+} // namespace arith
+} // namespace mlir
 
 #endif // MLIR_DIALECT_ARITHMETIC_IR_ARITHMETIC_H_
index 096b2d3..09b6942 100644 (file)
@@ -14,7 +14,7 @@
 namespace mlir {
 namespace bufferization {
 class BufferizeTypeConverter;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace arith {
 
@@ -40,7 +40,7 @@ std::unique_ptr<Pass> createArithmeticExpandOpsPass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Dialect/Arithmetic/Transforms/Passes.h.inc"
 
-} // end namespace arith
-} // end namespace mlir
+} // namespace arith
+} // namespace mlir
 
 #endif // MLIR_DIALECT_ARITHMETIC_TRANSFORMS_PASSES_H_
index 37e1a0e..0d32155 100644 (file)
@@ -52,7 +52,7 @@ void populateBufferizeMaterializationLegality(ConversionTarget &target);
 void populateEliminateBufferizeMaterializationsPatterns(
     BufferizeTypeConverter &typeConverter, RewritePatternSet &patterns);
 
-} // end namespace bufferization
-} // end namespace mlir
+} // namespace bufferization
+} // namespace mlir
 
 #endif // MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_BUFFERIZE_H
index 9accb9c..78873cf 100644 (file)
@@ -26,7 +26,7 @@ std::unique_ptr<FunctionPass> createFinalizingBufferizePass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"
 
-} // end namespace bufferization
-} // end namespace mlir
+} // namespace bufferization
+} // namespace mlir
 
 #endif // MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_PASSES_H
index 1243022..3b0a6cc 100644 (file)
@@ -164,8 +164,8 @@ public:
 // Adds a `gpu.async.token` to the front of the argument list.
 void addAsyncDependency(Operation *op, Value token);
 
-} // end namespace gpu
-} // end namespace mlir
+} // namespace gpu
+} // namespace mlir
 
 #include "mlir/Dialect/GPU/GPUOpsEnums.h.inc"
 
index a4447be..c3542b5 100644 (file)
@@ -24,6 +24,6 @@ class GPUFuncOp;
 /// copies will be inserted in the beginning and in the end of the function.
 void promoteToWorkgroupMemory(gpu::GPUFuncOp op, unsigned arg);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_GPU_MEMORYPROMOTION_H
index ad89825..3e5f288 100644 (file)
@@ -59,7 +59,7 @@ ParallelLoopDimMapping getParallelLoopDimMappingAttr(Processor processor,
 /// - the mapping does not map multiple loops to the same processor.
 LogicalResult setMappingAttr(scf::ParallelOp ploopOp,
                              ArrayRef<ParallelLoopDimMapping> mapping);
-} // end namespace gpu
+} // namespace gpu
 
 /// Maps the parallel loops found in the given function to workgroups. The first
 /// loop encountered will be mapped to the global workgroup and the second loop
@@ -68,5 +68,5 @@ LogicalResult setMappingAttr(scf::ParallelOp ploopOp,
 /// mapped to sequential loops.
 void greedilyMapParallelSCFToGPU(Region &region);
 
-} // end namespace mlir
+} // namespace mlir
 #endif // MLIR_DIALECT_GPU_PARALLELLOOPMAPPER_H
index 9cd1318..f3a3856 100644 (file)
@@ -50,8 +50,8 @@ class LLVMContext;
 namespace sys {
 template <bool mt_only>
 class SmartMutex;
-} // end namespace sys
-} // end namespace llvm
+} // namespace sys
+} // namespace llvm
 
 namespace mlir {
 namespace LLVM {
@@ -131,7 +131,7 @@ private:
   SmallVector<LoopOptionsAttr::OptionValuePair> options;
 };
 
-} // end namespace LLVM
-} // end namespace mlir
+} // namespace LLVM
+} // namespace mlir
 
 #endif // MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
index 279ea4b..54b519b 100644 (file)
@@ -24,6 +24,6 @@ namespace mlir {
 /// are > 1 deallocates for `allocValue`, returns None, else returns the single
 /// deallocate if it exists or nullptr.
 llvm::Optional<Operation *> findDealloc(Value allocValue);
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_MEMREF_UTILS_MEMREFUTILS_H
index 9080b27..44f64cc 100644 (file)
@@ -36,7 +36,7 @@ namespace acc {
 /// combined and the final mapping value would be 5 (4 | 1).
 enum OpenACCExecMapping { NONE = 0, VECTOR = 1, WORKER = 2, GANG = 4 };
 
-} // end namespace acc
-} // end namespace mlir
+} // namespace acc
+} // namespace mlir
 
 #endif // MLIR_DIALECT_OPENACC_OPENACC_H_
index 49f5be0..485efaa 100644 (file)
@@ -96,6 +96,6 @@ LoopNest buildLoopNest(OpBuilder &builder, Location loc, ValueRange lbs,
                        function_ref<void(OpBuilder &, Location, ValueRange)>
                            bodyBuilder = nullptr);
 
-} // end namespace scf
-} // end namespace mlir
+} // namespace scf
+} // namespace mlir
 #endif // MLIR_DIALECT_SCF_H_
index b4f1135..7ed3e8c 100644 (file)
@@ -29,7 +29,7 @@ namespace scf {
 class IfOp;
 class ForOp;
 class ParallelOp;
-} // end namespace scf
+} // namespace scf
 
 /// Create a clone of `loop` with `newIterOperands` added as new initialization
 /// values and `newYieldedValues` added as new yielded values. The returned
@@ -77,5 +77,5 @@ getSCFMinMaxExpr(Value value, SmallVectorImpl<Value> &dims,
                  SmallVectorImpl<Value> &symbols,
                  llvm::function_ref<bool(Operation *)> loopFilter = nullptr);
 
-} // end namespace mlir
+} // namespace mlir
 #endif // MLIR_DIALECT_SCF_UTILS_H_
index f08e9db..b3503fc 100644 (file)
@@ -20,8 +20,8 @@ namespace spirv {
 
 enum class Decoration : uint32_t;
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #include "mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.h.inc"
 
index ac128ac..c5d18c5 100644 (file)
@@ -52,7 +52,7 @@ ArrayRef<Capability> getDirectImpliedCapabilities(Capability cap);
 /// third one will also be returned.
 SmallVector<Capability, 0> getRecursiveImpliedCapabilities(Capability cap);
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_DIALECT_SPIRV_IR_SPIRVENUMS_H_
index 4ec6cc5..0d4471e 100644 (file)
@@ -456,7 +456,7 @@ public:
                        Optional<StorageClass> storage = llvm::None);
 };
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_DIALECT_SPIRV_IR_SPIRVTYPES_H_
index 1cf83e6..4ed7e0a 100644 (file)
@@ -69,6 +69,6 @@ std::unique_ptr<FunctionPass> createShapeBufferizePass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Dialect/Shape/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_SHAPE_TRANSFORMS_PASSES_H_
index 856a704..fe9c3c6 100644 (file)
@@ -67,6 +67,6 @@ Value getIdentityValue(AtomicRMWKind op, Type resultType, OpBuilder &builder,
 Value getReductionOp(AtomicRMWKind op, OpBuilder &builder, Location loc,
                      Value lhs, Value rhs);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_IR_STANDARDOPS_IR_OPS_H
index c453e80..d96e176 100644 (file)
@@ -86,6 +86,6 @@ void populateDecomposeCallGraphTypesPatterns(MLIRContext *context,
                                              ValueDecomposer &decomposer,
                                              RewritePatternSet &patterns);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_STANDARDOPS_TRANSFORMS_DECOMPOSECALLGRAPHTYPES_H
index 4a27d3c..6187d59 100644 (file)
@@ -69,6 +69,6 @@ bool isLegalForReturnOpTypeConversionPattern(Operation *op,
 /// `isLegalForBranchOpInterfaceTypeConversionPattern` and
 /// `isLegalForReturnOpTypeConversionPattern`.
 bool isNotBranchOpInterfaceOrReturnLikeOp(Operation *op);
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_STANDARDOPS_TRANSFORMS_FUNCCONVERSIONS_H_
index cbf52d1..201dc97 100644 (file)
@@ -19,7 +19,7 @@
 namespace mlir {
 namespace bufferization {
 class BufferizeTypeConverter;
-} // end namespace bufferization
+} // namespace bufferization
 
 class GlobalCreator;
 class RewritePatternSet;
@@ -63,6 +63,6 @@ void populateStdExpandOpsPatterns(RewritePatternSet &patterns);
 #define GEN_PASS_REGISTRATION
 #include "mlir/Dialect/StandardOps/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_STANDARD_TRANSFORMS_PASSES_H_
index 4c3799c..61853d0 100644 (file)
@@ -103,6 +103,6 @@ private:
   OpBuilder &b;
   Location loc;
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_STANDARDOPS_UTILS_UTILS_H
index 9445dee..b62399c 100644 (file)
@@ -14,7 +14,7 @@
 namespace mlir {
 namespace bufferization {
 class BufferizeTypeConverter;
-} // end namespace bufferization
+} // namespace bufferization
 
 class RewritePatternSet;
 using OwningRewritePatternList = RewritePatternSet;
@@ -36,6 +36,6 @@ namespace tensor {
 #include "mlir/Dialect/Tensor/Transforms/Passes.h.inc"
 } // namespace tensor
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_TENSOR_TRANSFORMS_PASSES_H_
index a31c822..a11dedb 100644 (file)
@@ -31,8 +31,8 @@ namespace tosa {
 
 #include "mlir/Dialect/Tosa/IR/TosaInterfaces.h.inc"
 
-} // end namespace tosa
-} // end namespace mlir
+} // namespace tosa
+} // namespace mlir
 
 #define GET_OP_CLASSES
 #include "mlir/Dialect/Tosa/IR/TosaOps.h.inc"
index d708445..b0508c0 100644 (file)
@@ -19,6 +19,6 @@ namespace mlir {
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_DIALECT_TOSA_TRANSFORMS_PASSDETAIL_H
index c51cadf..c23f713 100644 (file)
@@ -93,7 +93,7 @@ public:
   }
 };
 
-} // end namespace OpTrait
-} // end namespace mlir
+} // namespace OpTrait
+} // namespace mlir
 
 #endif // MLIR_DIALECT_TRAITS
index bdd5909..b594525 100644 (file)
@@ -189,6 +189,6 @@ protected:
   Operation *op;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_UTILS_STRUCTUREDOPSUTILS_H
index 0ed4b83..6dd4b9a 100644 (file)
@@ -144,8 +144,8 @@ namespace impl {
 AffineMap getTransferMinorIdentityMap(ShapedType shapedType,
                                       VectorType vectorType);
 } // namespace impl
-} // end namespace vector
-} // end namespace mlir
+} // namespace vector
+} // namespace mlir
 
 #define GET_OP_CLASSES
 #include "mlir/Dialect/Vector/VectorOps.h.inc"
index 788e0c8..a9f4f24 100644 (file)
@@ -202,7 +202,7 @@ namespace matcher {
 /// adding even 1 extra bit in the IR for now.
 bool operatesOnSuperVectorsOf(Operation &op, VectorType subVectorType);
 
-} // end namespace matcher
-} // end namespace mlir
+} // namespace matcher
+} // namespace mlir
 
 #endif // MLIR_DIALECT_VECTOR_VECTORUTILS_H_
index 3baff4c..46647b6 100644 (file)
@@ -81,8 +81,8 @@ private:
   T vector[Dim];
   char padding[nextPowerOf2(sizeof(T[Dim])) - sizeof(T[Dim])];
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 // N-D vectors recurse down to 1-D.
 template <typename T, int Dim, int... Dims>
index a1cb088..0b74c11 100644 (file)
@@ -197,6 +197,6 @@ private:
   llvm::JITEventListener *perfListener;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_EXECUTIONENGINE_EXECUTIONENGINE_H_
index b33959e..793183c 100644 (file)
@@ -52,6 +52,6 @@ makeLLVMPassesTransformer(llvm::ArrayRef<const llvm::PassInfo *> llvmPasses,
                           llvm::TargetMachine *targetMachine,
                           unsigned optPassesInsertPos = 0);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // LIR_EXECUTIONENGINE_OPTUTILS_H_
index 259cc5e..a2aa1fd 100644 (file)
@@ -340,6 +340,6 @@ private:
   inline unsigned getDimStartIndex() const { return 0; }
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_AFFINE_EXPR_VISITOR_H
index 320891e..14bddf5 100644 (file)
@@ -24,7 +24,7 @@ namespace mlir {
 
 namespace detail {
 struct AffineMapStorage;
-} // end namespace detail
+} // namespace detail
 
 class Attribute;
 struct LogicalResult;
@@ -567,7 +567,7 @@ inline raw_ostream &operator<<(raw_ostream &os, AffineMap map) {
   map.print(os);
   return os;
 }
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 
index 691e6c7..eeb12ad 100644 (file)
@@ -23,7 +23,7 @@ class Operation;
 
 namespace detail {
 class AsmStateImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class provides management for the lifetime of the state used when
 /// printing the IR. It allows for alleviating the cost of recomputing the
@@ -66,6 +66,6 @@ private:
 /// various flags within the AsmPrinter.
 void registerAsmPrinterCLOptions();
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_ASMSTATE_H_
index dec3e69..97e1202 100644 (file)
@@ -109,7 +109,7 @@ private:
 
 namespace detail {
 class AttributeUniquer;
-} // end namespace detail
+} // namespace detail
 
 /// Base storage class appearing in an attribute. Derived storage classes should
 /// only be constructed within the context of the AttributeUniquer.
@@ -251,6 +251,6 @@ private:
 };
 } // namespace detail
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 3a2e8b1..9fe9f53 100644 (file)
@@ -227,7 +227,7 @@ private:
   friend InterfaceBase;
 };
 
-} // end namespace mlir.
+} // namespace mlir.
 
 namespace llvm {
 
index cafcf58..b270f2a 100644 (file)
@@ -18,7 +18,7 @@
 
 namespace llvm {
 class BitVector;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class TypeRange;
@@ -364,6 +364,6 @@ private:
 
   friend struct llvm::ilist_traits<Block>;
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_BLOCK_H
index 0988012..e6aea79 100644 (file)
@@ -94,6 +94,6 @@ private:
   DenseMap<Block *, Block *> blockMap;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_BLOCKANDVALUEMAPPING_H
index 5a2bece..c6371f5 100644 (file)
@@ -171,8 +171,8 @@ public:
   /// Allow implicit conversion to the underlying block iterator.
   operator const IteratorT &() const { return this->wrapped(); }
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 namespace llvm {
 
@@ -223,7 +223,7 @@ protected:
   static pointer getValuePtr(node_type *N);
   static const_pointer getValuePtr(const node_type *N);
 };
-} // end namespace ilist_detail
+} // namespace ilist_detail
 
 template <> struct ilist_traits<::mlir::Operation> {
   using Operation = ::mlir::Operation;
@@ -257,6 +257,6 @@ private:
   mlir::Region *getParentRegion();
 };
 
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_IR_BLOCK_SUPPORT_H
index 2ed1c84..834a70e 100644 (file)
@@ -312,6 +312,6 @@ auto ElementsAttr::try_value_begin() const
     return llvm::None;
   return iterator<T>(std::move(*indexer), 0);
 }
-} // end namespace mlir.
+} // namespace mlir.
 
 #endif // MLIR_IR_BUILTINATTRIBUTEINTERFACES_H
index 969bb95..0852678 100644 (file)
@@ -940,7 +940,7 @@ inline bool operator!=(StringRef lhs, StringAttr rhs) { return !(lhs == rhs); }
 
 inline Type StringAttr::getType() const { return Attribute::getType(); }
 
-} // end namespace mlir
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // Attribute Utilities
index 01c4f3f..36bc437 100644 (file)
@@ -46,7 +46,7 @@ public:
   OwningModuleRef(OwningOpRef<ModuleOp> &&other)
       : OwningOpRef<ModuleOp>(std::move(other)) {}
 };
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 /// Allow stealing the low bits of FuncOp.
@@ -73,6 +73,6 @@ public:
   }
   static constexpr int NumLowBitsAvailable = 3;
 };
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_IR_BUILTINOPS_H_
index 10d8a58..296b12c 100644 (file)
@@ -183,7 +183,7 @@ public:
   unsigned getMemorySpaceAsInt() const;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // Tablegen Type Declarations
@@ -531,6 +531,6 @@ bool isStrided(MemRefType t);
 /// Return null if the layout is not compatible with a strided layout.
 AffineMap getStridedLinearLayoutMap(MemRefType t);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_BUILTINTYPES_H
index ad1d227..0f7912d 100644 (file)
@@ -20,7 +20,7 @@ namespace llvm {
 class MemoryBuffer;
 class SMLoc;
 class SourceMgr;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class DiagnosticEngine;
@@ -34,7 +34,7 @@ class Value;
 
 namespace detail {
 struct DiagnosticEngineImpl;
-} // end namespace detail
+} // namespace detail
 
 /// Defines the different supported severity of a diagnostic.
 enum class DiagnosticSeverity {
@@ -516,7 +516,7 @@ private:
 
 namespace detail {
 struct SourceMgrDiagnosticHandlerImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class is a utility diagnostic handler for use with llvm::SourceMgr.
 class SourceMgrDiagnosticHandler : public ScopedDiagnosticHandler {
@@ -580,7 +580,7 @@ private:
 
 namespace detail {
 struct SourceMgrDiagnosticVerifierHandlerImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class is a utility diagnostic handler for use with llvm::SourceMgr that
 /// verifies that emitted diagnostics match 'expected-*' lines on the
@@ -613,7 +613,7 @@ private:
 
 namespace detail {
 struct ParallelDiagnosticHandlerImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class is a utility diagnostic handler for use when multi-threading some
 /// part of the compiler where diagnostics may be emitted. This handler ensures
index c668df0..d7dc511 100644 (file)
@@ -50,7 +50,7 @@ public:
   virtual ~Dialect();
 
   /// Utility function that returns if the given string is a valid dialect
-  /// namespace.
+  /// namespace
   static bool isValidNamespace(StringRef str);
 
   MLIRContext *getContext() const { return context; }
index 70afd02..bbe4da6 100644 (file)
@@ -127,6 +127,6 @@ struct FieldParser<
   }
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_DIALECTIMPLEMENTATION_H
index 3ffed3d..8649e48 100644 (file)
@@ -35,7 +35,7 @@ public:
 protected:
   DialectInterfaceBase(Dialect *dialect) : BaseT(dialect, getInterfaceID()) {}
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class represents an interface overridden for a single dialect.
 class DialectInterface {
index 83b2b81..d94d5be 100644 (file)
@@ -109,7 +109,7 @@ protected:
   mutable DenseMap<Region *, llvm::PointerIntPair<DomTree *, 1, bool>>
       dominanceInfos;
 };
-} // end namespace detail
+} // namespace detail
 
 /// A class for computing basic dominance information. Note that this
 /// class is aware of different types of regions and returns a
@@ -196,7 +196,7 @@ public:
   }
 };
 
-} //  end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 
@@ -222,5 +222,5 @@ struct GraphTraits<const mlir::DominanceInfoNode *> {
   static inline ChildIteratorType child_end(NodeRef N) { return N->end(); }
 };
 
-} // end namespace llvm
+} // namespace llvm
 #endif
index cc086ab..0964d9b 100644 (file)
@@ -796,8 +796,8 @@ Attribute FunctionLike<ConcreteType>::removeResultAttr(unsigned index,
   return removedAttr;
 }
 
-} // end namespace OpTrait
+} // namespace OpTrait
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_FUNCTIONSUPPORT_H
index f72e1a2..0e25747 100644 (file)
@@ -15,6 +15,6 @@ namespace mlir {
 /// NOTICE: Identifier is deprecated and usages of it should be replaced with
 /// StringAttr.
 using Identifier = StringAttr;
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 77e1a0c..47ffbf1 100644 (file)
@@ -31,7 +31,7 @@ namespace mlir {
 
 namespace detail {
 struct IntegerSetStorage;
-} // end namespace detail
+} // namespace detail
 
 class MLIRContext;
 
@@ -124,7 +124,7 @@ inline ::llvm::hash_code hash_value(IntegerSet arg) {
   return ::llvm::hash_value(arg.set);
 }
 
-} // end namespace mlir
+} // namespace mlir
 namespace llvm {
 
 // IntegerSet hash just like pointers.
index 1077c9f..76ae7a4 100644 (file)
@@ -97,7 +97,7 @@ inline ::llvm::hash_code hash_value(Location arg) {
   return hash_value(arg.impl);
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // Tablegen Attribute Declarations
index bc9a8a9..e201495 100644 (file)
@@ -17,7 +17,7 @@
 
 namespace llvm {
 class ThreadPool;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class DebugActionManager;
@@ -236,6 +236,6 @@ private:
 /// an MLIR context for initialization.
 void registerMLIRContextCLOptions();
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_MLIRCONTEXT_H
index 3f6720d..07a6ece 100644 (file)
@@ -225,7 +225,7 @@ struct RecursivePatternMatcher {
   std::tuple<OperandMatchers...> operandMatchers;
 };
 
-} // end namespace detail
+} // namespace detail
 
 /// Matches a constant foldable operation.
 inline detail::constant_op_matcher m_Constant() {
@@ -294,6 +294,6 @@ inline auto m_Any(Value *val) { return detail::AnyCapturedValueMatcher(val); }
 inline auto m_Val(Value v) { return detail::PatternMatcherValue(v); }
 } // namespace matchers
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_MATCHERS_H
index 2fc3cfb..ad461e8 100644 (file)
@@ -339,7 +339,7 @@ struct MultiOperandTraitBase : public TraitBase<ConcreteType, TraitType> {
     return this->getOperation()->getOperandTypes();
   }
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class provides the API for ops that are known to have no
 /// SSA operand.
@@ -448,7 +448,7 @@ struct MultiRegionTraitBase : public TraitBase<ConcreteType, TraitType> {
   region_iterator region_end() { return this->getOperation()->region_end(); }
   region_range getRegions() { return this->getOperation()->getRegions(); }
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class provides APIs for ops that are known to have a single region.
 template <typename ConcreteType>
@@ -563,7 +563,7 @@ struct MultiResultTraitBase : public TraitBase<ConcreteType, TraitType> {
     return this->getOperation()->getResultTypes();
   }
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class provides return value APIs for ops that are known to have a
 /// single result.  ResultType is the concrete type returned by getType().
@@ -712,7 +712,7 @@ struct MultiSuccessorTraitBase : public TraitBase<ConcreteType, TraitType> {
   succ_iterator succ_end() { return this->getOperation()->succ_end(); }
   succ_range getSuccessors() { return this->getOperation()->getSuccessors(); }
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class provides APIs for ops that are known to have a single successor.
 template <typename ConcreteType>
@@ -1418,7 +1418,7 @@ struct Tensorizable : public TraitBase<ConcreteType, Tensorizable> {
 /// behavior to vectors/tensors, and systematize conversion between these forms.
 bool hasElementwiseMappableTraits(Operation *op);
 
-} // end namespace OpTrait
+} // namespace OpTrait
 
 //===----------------------------------------------------------------------===//
 // Internal Trait Utilities
@@ -1906,7 +1906,7 @@ Value foldCastOp(Operation *op);
 LogicalResult verifyCastOp(Operation *op,
                            function_ref<bool(Type, Type)> areCastCompatible);
 } // namespace impl
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 
@@ -1927,6 +1927,6 @@ struct DenseMapInfo<
   static bool isEqual(T lhs, T rhs) { return lhs == rhs; }
 };
 
-} // end namespace llvm
+} // namespace llvm
 
 #endif
index 609f6be..4b763f9 100644 (file)
@@ -1354,7 +1354,7 @@ public:
   virtual void getAsmBlockArgumentNames(Block *block,
                                         OpAsmSetValueNameFn setNameFn) const {}
 };
-} // end namespace mlir
+} // namespace mlir
 
 //===--------------------------------------------------------------------===//
 // Operation OpAsm interface.
index e03986b..0f0f166 100644 (file)
@@ -717,7 +717,7 @@ inline raw_ostream &operator<<(raw_ostream &os, const Operation &op) {
   return os;
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 /// Provide isa functionality for operation casts.
@@ -743,6 +743,6 @@ template <class T>
 struct cast_convert_val<T, ::mlir::Operation *, ::mlir::Operation *> {
   static T doit(::mlir::Operation *val) { return T(val); }
 };
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_IR_OPERATION_H
index d16b19b..d6347b7 100644 (file)
@@ -29,7 +29,7 @@
 
 namespace llvm {
 class BitVector;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class Dialect;
@@ -424,7 +424,7 @@ std::pair<IteratorT, bool> findAttrSorted(IteratorT first, IteratorT last,
   return findAttrUnsorted(first, last, name);
 }
 
-} // end namespace impl
+} // namespace impl
 
 //===----------------------------------------------------------------------===//
 // NamedAttrList
@@ -688,7 +688,7 @@ private:
   /// A pointer to the operand storage.
   OpOperand *operandStorage;
 };
-} // end namespace detail
+} // namespace detail
 
 //===----------------------------------------------------------------------===//
 // OpPrintingFlags
@@ -1171,7 +1171,7 @@ struct OperationEquivalence {
 /// Enable Bitmask enums for OperationEquivalence::Flags.
 LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
 
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 template <>
@@ -1223,6 +1223,6 @@ struct PointerLikeTypeTraits<mlir::RegisteredOperationName>
   }
 };
 
-} // end namespace llvm
+} // namespace llvm
 
 #endif
index c7ea1c6..e509800 100644 (file)
@@ -62,6 +62,6 @@ private:
   OpTy op;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_OWNINGOPREF_H
index d02bda7..7aedec1 100644 (file)
@@ -1087,6 +1087,6 @@ private:
   PDLPatternModule pdlPatterns;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PATTERN_MATCH_H
index 4558ce4..44ede7b 100644 (file)
@@ -344,6 +344,6 @@ private:
   friend RangeBaseT;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_REGION_H
index 15433cd..c02bcc2 100644 (file)
@@ -368,7 +368,7 @@ public:
   }
 };
 
-} // end namespace OpTrait
+} // namespace OpTrait
 
 //===----------------------------------------------------------------------===//
 // Visibility parsing implementation.
@@ -379,9 +379,9 @@ namespace impl {
 /// nested) without quotes in a string attribute named 'attrName'.
 ParseResult parseOptionalVisibilityKeyword(OpAsmParser &parser,
                                            NamedAttrList &attrs);
-} // end namespace impl
+} // namespace impl
 
-} // end namespace mlir
+} // namespace mlir
 
 /// Include the generated symbol interfaces.
 #include "mlir/IR/SymbolInterfaces.h.inc"
index 3842231..0d60e95 100644 (file)
@@ -148,6 +148,6 @@ void parallelForEachN(MLIRContext *context, size_t begin, size_t end,
   parallelForEach(context, llvm::seq(begin, end), std::forward<FuncT>(func));
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_IR_THREADING_H
index 45f8fcb..6681e18 100644 (file)
@@ -115,7 +115,7 @@ private:
 
 namespace detail {
 struct TypeUniquer;
-} // end namespace detail
+} // namespace detail
 
 /// Base storage class appearing in a Type.
 class TypeStorage : public StorageUniquer::BaseStorage {
@@ -229,6 +229,6 @@ struct TypeUniquer {
 };
 } // namespace detail
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 04bf36e..d19d319 100644 (file)
@@ -97,6 +97,6 @@ public:
 
 using ResultElementTypeRange = iterator_range<ResultElementTypeIterator>;
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_SUPPORT_TYPEUTILITIES_H
index 0c415c7..8c82841 100644 (file)
@@ -252,7 +252,7 @@ template <typename U> U Type::cast() const {
   return U(impl);
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 
index 8b83905..ed1f8ea 100644 (file)
@@ -294,7 +294,7 @@ private:
   /// Allow access to owner and constructor.
   friend BlockArgument;
 };
-} // end namespace detail
+} // namespace detail
 
 /// This class represents an argument of a Block.
 class BlockArgument : public Value {
@@ -419,7 +419,7 @@ inline unsigned OpResultImpl::getResultNumber() const {
   return cast<InlineOpResult>(this)->getResultNumber();
 }
 
-} // end namespace detail
+} // namespace detail
 
 /// This is a value defined by a result of an operation.
 class OpResult : public Value {
@@ -533,6 +533,6 @@ public:
   }
 };
 
-} // end namespace llvm
+} // namespace llvm
 
 #endif
index d9d99dd..3e1a0f8 100644 (file)
@@ -17,6 +17,6 @@ class Operation;
 /// compiler bugs, on this operation and any nested operations. On error, this
 /// reports the error through the MLIRContext and returns failure.
 LogicalResult verify(Operation *op);
-} //  end namespace mlir
+} // namespace mlir
 
 #endif
index af2d053..7827a95 100644 (file)
@@ -200,7 +200,7 @@ walk(Operation *op, FuncTy &&callback) {
 /// Utility to provide the return type of a templated walk method.
 template <typename FnT>
 using walkResultType = decltype(walk(nullptr, std::declval<FnT>()));
-} // end namespace detail
+} // namespace detail
 
 } // namespace mlir
 
index cc8e26e..1b842e8 100644 (file)
@@ -23,7 +23,7 @@ namespace mlir {
 struct CallInterfaceCallable : public PointerUnion<SymbolRefAttr, Value> {
   using PointerUnion<SymbolRefAttr, Value>::PointerUnion;
 };
-} // end namespace mlir
+} // namespace mlir
 
 /// Include the generated interface declarations.
 #include "mlir/Interfaces/CallInterfaces.h.inc"
index da3549f..9d65d10 100644 (file)
@@ -140,7 +140,7 @@ struct ReturnLike : public TraitBase<ConcreteType, ReturnLike> {
 };
 } // namespace OpTrait
 
-} // end namespace mlir
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // ControlFlow Interfaces
index 5a224d9..e27fcc0 100644 (file)
@@ -32,6 +32,6 @@ public:
   }
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_INTERFACES_DECODEATTRIBUTESINTERFACES_H_
index 133819d..6278e31 100644 (file)
@@ -44,6 +44,6 @@ public:
   virtual bool shouldMaterializeInto(Region *region) const { return false; }
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_INTERFACES_FOLDINTERFACES_H_
index 33a6ba6..bc2f856 100644 (file)
@@ -257,7 +257,7 @@ bool isOpTriviallyDead(Operation *op);
 /// `isOpTriviallyDead` if `op` was unused.
 bool wouldOpBeTriviallyDead(Operation *op);
 
-} // end namespace mlir
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // SideEffect Interfaces
index 5f5d528..443fbb7 100644 (file)
@@ -21,7 +21,7 @@ namespace llvm {
 class SourceMgr;
 class SMDiagnostic;
 class StringRef;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class AsmParserState;
@@ -71,7 +71,7 @@ inline OwningOpRef<ContainerOpT> constructContainerOpForParserIfNecessary(
     return OwningOpRef<ContainerOpT>();
   return opRef;
 }
-} // end namespace detail
+} // namespace detail
 
 /// This parses the file specified by the indicated SourceMgr and appends parsed
 /// operations to the given block. If the block is non-empty, the operations are
@@ -266,6 +266,6 @@ Type parseType(llvm::StringRef typeStr, MLIRContext *context, size_t &numRead);
 IntegerSet parseIntegerSet(llvm::StringRef str, MLIRContext *context,
                            bool printDiagnosticInfo = true);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PARSER_H
index cf955bb..f5b27fa 100644 (file)
@@ -177,6 +177,6 @@ private:
   std::unique_ptr<Impl> impl;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PARSER_ASMPARSERSTATE_H
index d584081..9dab7b7 100644 (file)
@@ -94,7 +94,7 @@ std::enable_if_t<!llvm::is_detected<has_is_invalidated, AnalysisT>::value, bool>
 isInvalidated(AnalysisT &analysis, const PreservedAnalyses &pa) {
   return !pa.isPreserved<AnalysisT>();
 }
-} // end namespace analysis_impl
+} // namespace analysis_impl
 
 /// The abstract polymorphic base class representing an analysis.
 struct AnalysisConcept {
@@ -401,6 +401,6 @@ private:
   detail::NestedAnalysisMap analyses;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PASS_ANALYSISMANAGER_H
index 3a9865d..308df1c 100644 (file)
@@ -422,6 +422,6 @@ protected:
   }
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PASS_PASS_H
index 88c8516..c87be04 100644 (file)
@@ -19,7 +19,7 @@ class Pass;
 
 namespace detail {
 struct PassInstrumentorImpl;
-} // end namespace detail
+} // namespace detail
 
 /// PassInstrumentation provides several entry points into the pass manager
 /// infrastructure. Instrumentations should be added directly to a PassManager
@@ -120,7 +120,7 @@ private:
   std::unique_ptr<detail::PassInstrumentorImpl> impl;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 namespace llvm {
 template <> struct DenseMapInfo<mlir::PassInstrumentation::PipelineParentInfo> {
@@ -143,6 +143,6 @@ template <> struct DenseMapInfo<mlir::PassInstrumentation::PipelineParentInfo> {
            lhs.parentPass == rhs.parentPass;
   }
 };
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_PASS_PASSINSTRUMENTATION_H_
index 0846888..1389276 100644 (file)
@@ -23,7 +23,7 @@
 
 namespace llvm {
 class Any;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class AnalysisManager;
@@ -39,7 +39,7 @@ struct OpPassManagerImpl;
 class OpToOpPassAdaptor;
 class PassCrashReproducerGenerator;
 struct PassExecutionState;
-} // end namespace detail
+} // namespace detail
 
 //===----------------------------------------------------------------------===//
 // OpPassManager
@@ -421,6 +421,6 @@ void applyPassManagerCLOptions(PassManager &pm);
 /// to the pass manager.
 void applyDefaultTimingPassManagerCLOptions(PassManager &pm);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PASS_PASSMANAGER_H
index 01fcde2..13c4434 100644 (file)
@@ -242,7 +242,7 @@ private:
   /// A list of all of the opaque options.
   std::vector<OptionBase *> options;
 };
-} // end namespace detail
+} // namespace detail
 
 //===----------------------------------------------------------------------===//
 // PassPipelineOptions
@@ -276,7 +276,7 @@ public:
 struct EmptyPipelineOptions : public PassPipelineOptions<EmptyPipelineOptions> {
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PASS_PASSOPTIONS_H_
 
index 8e07fc3..7a7da38 100644 (file)
@@ -24,7 +24,7 @@ class Pass;
 
 namespace detail {
 class PassOptions;
-} // end namespace detail
+} // namespace detail
 
 /// A registry function that adds passes to the given pass manager. This should
 /// also parse options and return success() if parsing succeeded.
@@ -210,7 +210,7 @@ LogicalResult parsePassPipeline(StringRef pipeline, OpPassManager &pm,
 
 namespace detail {
 struct PassPipelineCLParserImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class implements a command-line parser for MLIR passes. It registers a
 /// cl option with a given argument and description. This parser will register
@@ -262,6 +262,6 @@ private:
   std::unique_ptr<detail::PassPipelineCLParserImpl> impl;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_PASS_PASSREGISTRY_H_
index 3b6fa57..ed47fa6 100644 (file)
@@ -16,6 +16,6 @@ namespace mlir {
 #define GEN_PASS_CLASSES
 #include "mlir/Reducer/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REDUCER_PASSDETAIL_H
index 438f47b..c0d46bf 100644 (file)
@@ -20,6 +20,6 @@ std::unique_ptr<Pass> createOptReductionPass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Reducer/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REDUCER_PASSES_H
index 6cdbd23..c938a1b 100644 (file)
@@ -192,6 +192,6 @@ class ReductionNode::iterator<SinglePath>
   ArrayRef<ReductionNode *> getNeighbors(ReductionNode *node);
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REDUCER_REDUCTIONNODE_H
index 887d120..a85562f 100644 (file)
@@ -51,6 +51,6 @@ protected:
   DialectReductionPatternInterface(Dialect *dialect) : Base(dialect) {}
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REDUCER_REDUCTIONPATTERNINTERFACE_H
index 5969d63..9fe95ad 100644 (file)
@@ -53,6 +53,6 @@ private:
   ArrayRef<std::string> testScriptArgs;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 00c6216..74ddba3 100644 (file)
@@ -14,7 +14,7 @@
 namespace mlir {
 namespace detail {
 class PDLByteCode;
-} // end namespace detail
+} // namespace detail
 
 /// This class represents a frozen set of patterns that can be processed by a
 /// pattern applicator. This class is designed to enable caching pattern lists
@@ -92,6 +92,6 @@ private:
   std::shared_ptr<Impl> impl;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REWRITE_FROZENREWRITEPATTERNSET_H
index 9314496..a2e2286 100644 (file)
@@ -21,7 +21,7 @@ class PatternRewriter;
 
 namespace detail {
 class PDLByteCodeMutableState;
-} // end namespace detail
+} // namespace detail
 
 /// This class manages the application of a group of rewrite patterns, with a
 /// user-provided cost model.
@@ -75,6 +75,6 @@ private:
   std::unique_ptr<detail::PDLByteCodeMutableState> mutableByteCodeState;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_REWRITE_PATTERNAPPLICATOR_H
index 74f0f4c..227d213 100644 (file)
@@ -223,6 +223,6 @@ private:
   friend class DebugActionManager;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_SUPPORT_DEBUGACTION_H
index 1a8c33e..92103fd 100644 (file)
@@ -270,7 +270,7 @@ private:
   SmallVector<std::pair<TypeID, void *>> interfaces;
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif
index b8f6bbe..3418f9e 100644 (file)
@@ -70,7 +70,7 @@ class APFloat;
 template <typename Fn> class function_ref;
 template <typename IteratorT> class iterator_range;
 class raw_ostream;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 // Casting operators.
index 65429e5..622a7d3 100644 (file)
@@ -53,6 +53,6 @@ inline int64_t lcm(int64_t a, int64_t b) {
   assert((lcm >= a && lcm >= b) && "LCM overflow");
   return lcm;
 }
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_SUPPORT_MATHEXTRAS_H_
index 51a26d0..666d83a 100644 (file)
@@ -22,7 +22,7 @@
 namespace llvm {
 class raw_ostream;
 class MemoryBuffer;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 class DialectRegistry;
@@ -93,6 +93,6 @@ inline int asMainReturnCode(LogicalResult r) {
   return r.succeeded() ? EXIT_SUCCESS : EXIT_FAILURE;
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_SUPPORT_MLIROPTMAIN_H
index 170c77d..d03d30e 100644 (file)
@@ -326,6 +326,6 @@ private:
     return DenseMapInfo<DerivedKey>::getHashValue(derivedKey);
   }
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif
index 3b5d6f0..083956b 100644 (file)
@@ -112,6 +112,6 @@ private:
   /// this object.
   llvm::sys::SmartMutex<true> instanceMutex;
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_SUPPORT_THREADLOCALCACHE_H
index c966ba4..badab11 100644 (file)
@@ -138,7 +138,7 @@ TypeID TypeID::get() {
   return detail::TypeIDExported::get<Trait>();
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 // Declare/define an explicit specialization for TypeID: this forces the
 // compiler to emit a strong definition for a class and controls which
@@ -193,6 +193,6 @@ template <> struct PointerLikeTypeTraits<mlir::TypeID> {
   static constexpr int NumLowBitsAvailable = 3;
 };
 
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_SUPPORT_TYPEID_H
index 1d89a76..5a8f788 100644 (file)
@@ -28,7 +28,7 @@
 
 namespace llvm {
 class StringRef;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -61,7 +61,7 @@ struct NamedTypeConstraint {
 // Operation argument: either attribute or operand
 using Argument = llvm::PointerUnion<NamedAttribute *, NamedTypeConstraint *>;
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_ARGUMENT_H_
index 303edfd..9f2375b 100644 (file)
@@ -260,7 +260,7 @@ public:
   using AttrOrTypeDef::AttrOrTypeDef;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_ATTRORTYPEDEF_H
index f839712..043a355 100644 (file)
@@ -21,7 +21,7 @@
 namespace llvm {
 class DefInit;
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -241,7 +241,7 @@ public:
 // Name of infer type op interface.
 extern const char *inferTypeOpInterface;
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_ATTRIBUTE_H_
index b901c84..a5e6d01 100644 (file)
@@ -23,7 +23,7 @@ namespace llvm {
 class Init;
 class Record;
 class SMLoc;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -79,7 +79,7 @@ private:
   SmallVector<Parameter> parameters;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_BUILDER_H_
index 11fa261..1f310fe 100644 (file)
@@ -424,8 +424,8 @@ private:
   SmallVector<MemberInitializer> initializers;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 /// The OR of two method properties should return method properties. Ensure that
 /// this function is visible to `Class`.
index b82f646..573a4fa 100644 (file)
@@ -64,7 +64,7 @@ public:
 
   ~NamespaceEmitter() {
     for (StringRef ns : llvm::reverse(namespaces))
-      os << "} // end namespace " << ns << "\n";
+      os << "} // namespace " << ns << "\n";
   }
 
 private:
@@ -243,7 +243,7 @@ struct stringifier<Optional<OptionalT>> {
                                : std::string();
   }
 };
-} // end namespace detail
+} // namespace detail
 
 /// Generically convert a value to a std::string.
 template <typename T> std::string stringify(T &&t) {
index ebb3d29..4e099aa 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace llvm {
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -77,7 +77,7 @@ struct AppliedConstraint {
   std::vector<std::string> entities;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_CONSTRAINT_H_
index d56b228..3a37889 100644 (file)
@@ -19,7 +19,7 @@
 
 namespace llvm {
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -102,7 +102,7 @@ private:
   const llvm::Record *def;
   std::vector<StringRef> dependentDialects;
 };
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_DIALECT_H_
index 6879dbf..1772a90 100644 (file)
@@ -271,7 +271,7 @@ inline FmtStrVecObject tgfmt(StringRef fmt, const FmtContext *ctx,
   return FmtStrVecObject(fmt, ctx, params);
 }
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_FORMAT_H_
index 16ed559..6a9364d 100644 (file)
@@ -15,7 +15,7 @@
 
 namespace llvm {
 class RecordKeeper;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 
@@ -67,6 +67,6 @@ struct GenRegistration {
   GenRegistration(StringRef arg, StringRef description, GenFunction function);
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_GENINFO_H_
index b029951..4373067 100644 (file)
@@ -26,6 +26,6 @@ struct GenNameParser : public llvm::cl::parser<const GenInfo *> {
   void printOptionInfo(const llvm::cl::Option &O,
                        size_t GlobalWidth) const override;
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_GENNAMEPARSER_H_
index a346209..0ddfdf2 100644 (file)
@@ -16,7 +16,7 @@
 namespace llvm {
 class Init;
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -123,7 +123,7 @@ struct TypeInterface : public Interface {
 
   static bool classof(const Interface *interface);
 };
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_INTERFACES_H_
index e8cc3d7..44f1044 100644 (file)
@@ -32,7 +32,7 @@ namespace llvm {
 class DefInit;
 class Record;
 class StringInit;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -370,7 +370,7 @@ private:
   bool allResultsHaveKnownTypes;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_OPERATOR_H_
index 968c854..715420e 100644 (file)
@@ -14,7 +14,7 @@
 
 namespace llvm {
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -112,7 +112,7 @@ private:
   std::vector<PassStatistic> statistics;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_PASS_H_
index ac8c98e..3c7fe6d 100644 (file)
@@ -28,7 +28,7 @@ namespace llvm {
 class DagInit;
 class Init;
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -508,8 +508,8 @@ private:
   RecordOperatorMap *recordOpMap;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 namespace llvm {
 template <>
@@ -547,6 +547,6 @@ struct DenseMapInfo<mlir::tblgen::DagLeaf> {
     return lhs.def == rhs.def;
   }
 };
-} // end namespace llvm
+} // namespace llvm
 
 #endif // MLIR_TABLEGEN_PATTERN_H_
index eb3fe53..6c1b762 100644 (file)
@@ -24,7 +24,7 @@ class Init;
 class ListInit;
 class Record;
 class SMLoc;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -122,7 +122,7 @@ public:
   StringRef getSuffix() const;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_PREDICATE_H_
index 423ef72..4b8dc92 100644 (file)
@@ -36,7 +36,7 @@ struct NamedRegion {
   Region constraint;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_REGION_H_
index c5ced66..4dcc6c9 100644 (file)
@@ -52,7 +52,7 @@ public:
   static bool classof(const Trait *t);
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_SIDEEFFECTS_H_
index 0659a98..64f0386 100644 (file)
@@ -38,7 +38,7 @@ struct NamedSuccessor {
   Successor constraint;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_SUCCESSOR_H_
index 52d056d..c3d0d2a 100644 (file)
@@ -20,7 +20,7 @@
 namespace llvm {
 class Init;
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -110,7 +110,7 @@ public:
   std::vector<StringRef> getAlwaysDeclaredMethods() const;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_TRAIT_H_
index 7fc8926..1828e88 100644 (file)
@@ -20,7 +20,7 @@
 namespace llvm {
 class DefInit;
 class Record;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -72,7 +72,7 @@ public:
   Dialect getDialect() const;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TABLEGEN_TYPE_H_
index cdba5a8..983a5fd 100644 (file)
@@ -39,7 +39,7 @@ namespace LLVM {
 
 namespace detail {
 class DebugTranslation;
-} // end namespace detail
+} // namespace detail
 
 class LLVMFuncOp;
 
index ab7cce6..e39258b 100644 (file)
@@ -29,7 +29,7 @@ class ModuleOp;
 OwningOpRef<spirv::ModuleOp> deserialize(ArrayRef<uint32_t> binary,
                                          MLIRContext *context);
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_TARGET_SPIRV_DESERIALIZATION_H
index f12ca45..dc2b8c7 100644 (file)
@@ -41,7 +41,7 @@ uint32_t getPrefixedOpcode(uint32_t wordCount, spirv::Opcode opcode);
 /// Encodes an SPIR-V `literal` string into the given `binary` vector.
 LogicalResult encodeStringLiteralInto(SmallVectorImpl<uint32_t> &binary,
                                       StringRef literal);
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_TARGET_SPIRV_BINARY_UTILS_H_
index d8431dc..25033e2 100644 (file)
@@ -28,7 +28,7 @@ class ModuleOp;
 LogicalResult serialize(ModuleOp module, SmallVectorImpl<uint32_t> &binary,
                         bool emitDebugInfo = false);
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_TARGET_SPIRV_SERIALIZATION_H
index dcfece9..14912f1 100644 (file)
@@ -23,6 +23,6 @@ struct LogicalResult;
 LogicalResult MlirLspServerMain(int argc, char **argv,
                                 DialectRegistry &registry);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRLSPSERVER_MLIRLSPSERVERMAIN_H
index 03ac6b8..0e6b589 100644 (file)
@@ -17,6 +17,6 @@ class MLIRContext;
 
 LogicalResult mlirReduceMain(int argc, char **argv, MLIRContext &context);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRREDUCE_MLIRREDUCEMAIN_H
index 8929124..d9d0696 100644 (file)
@@ -137,6 +137,6 @@ private:
   // dependence to the memref dialect for this.
   DenseMap<Attribute, Operation *> globals;
 };
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_BUFFERUTILS_H
index d5fb293..d840c99 100644 (file)
@@ -518,7 +518,7 @@ void populateFuncOpTypeConversionPattern(RewritePatternSet &patterns,
 
 namespace detail {
 struct ConversionPatternRewriterImpl;
-} // end namespace detail
+} // namespace detail
 
 /// This class implements a pattern rewriter for use with ConversionPatterns. It
 /// extends the base PatternRewriter and provides special conversion specific
@@ -946,6 +946,6 @@ LogicalResult applyAnalysisConversion(
     const FrozenRewritePatternSet &patterns,
     DenseSet<Operation *> &convertedOps,
     function_ref<void(Diagnostic &)> notifyCallback = nullptr);
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_DIALECTCONVERSION_H_
index 7f4166c..49af0f4 100644 (file)
@@ -138,6 +138,6 @@ private:
   DialectInterfaceCollection<DialectFoldInterface> interfaces;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_FOLDUTILS_H
index bb0af5b..d9d2721 100644 (file)
@@ -94,6 +94,6 @@ bool applyOpPatternsAndFold(ArrayRef<Operation *> ops,
                             const FrozenRewritePatternSet &patterns,
                             bool strict);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_GREEDYPATTERNREWRITEDRIVER_H_
index 1bf318c..a664ae4 100644 (file)
@@ -244,6 +244,6 @@ LogicalResult inlineCall(InlinerInterface &interface, CallOpInterface call,
                          CallableOpInterface callable, Region *src,
                          bool shouldCloneInlinedRegion = true);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_INLINING_UTILS_H
index 9012494..1da1145 100644 (file)
@@ -61,6 +61,6 @@ std::unique_ptr<Pass> createLocationSnapshotPass(OpPrintingFlags flags,
 /// Overload utilizing pass options for initialization.
 std::unique_ptr<Pass> createLocationSnapshotPass();
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H
index 87a71b6..02eeb3e 100644 (file)
@@ -165,6 +165,6 @@ bool getFusionComputeCost(AffineForOp srcForOp, LoopNestStats &srcStats,
 void gatherProducerConsumerMemrefs(ArrayRef<Operation *> srcOps,
                                    ArrayRef<Operation *> dstOps,
                                    DenseSet<Value> &producerConsumerMemrefs);
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_LOOP_FUSION_UTILS_H
index f2651be..70e7395 100644 (file)
@@ -32,7 +32,7 @@ class ValueRange;
 namespace scf {
 class ForOp;
 class ParallelOp;
-} // end namespace scf
+} // namespace scf
 
 /// Unrolls this for operation completely if the trip count is known to be
 /// constant. Returns failure otherwise.
@@ -323,6 +323,6 @@ separateFullTiles(MutableArrayRef<AffineForOp> nest,
 /// Move loop invariant code out of `looplike`.
 LogicalResult moveLoopInvariantCode(LoopLikeOpInterface looplike);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_LOOP_UTILS_H
index 8ec6110..e6cfda8 100644 (file)
@@ -137,6 +137,6 @@ std::unique_ptr<OperationPass<ModuleOp>> createNormalizeMemRefsPass();
 #define GEN_PASS_REGISTRATION
 #include "mlir/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_PASSES_H
index bac6519..5280c26 100644 (file)
@@ -30,7 +30,7 @@ class OpBuilder;
 
 namespace memref {
 class AllocOp;
-} // end namespace memref
+} // namespace memref
 
 /// Replaces all "dereferencing" uses of `oldMemRef` with `newMemRef` while
 /// optionally remapping the old memref's indices using the supplied affine map,
@@ -147,6 +147,6 @@ Operation *createComposedAffineApplyOp(OpBuilder &builder, Location loc,
 void createAffineComputationSlice(Operation *opInst,
                                   SmallVectorImpl<AffineApplyOp> *sliceOps);
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_UTILS_H
index ec1b6c2..9fd2fe2 100644 (file)
@@ -23,6 +23,6 @@ class Pass;
 std::unique_ptr<Pass>
 createPrintOpGraphPass(raw_ostream &os = llvm::errs());
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_TRANSFORMS_VIEWOPGRAPH_H_
index ea600ee..34bd07e 100644 (file)
@@ -66,7 +66,7 @@ private:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 // Flattens the expressions in map. Returns failure if 'expr' was unable to be
 // flattened (i.e., semi-affine expressions not handled yet).
index b91d2de..c664211 100644 (file)
@@ -211,7 +211,7 @@ private:
   /// A symbol table used for O(1) symbol lookups during simplification.
   SymbolTableCollection symbolTable;
 };
-} // end anonymous namespace
+} // namespace
 
 ForwardDataFlowSolver::ForwardDataFlowSolver(
     ForwardDataFlowAnalysisBase &analysis, Operation *op)
index bd5ac0b..a72b3cb 100644 (file)
@@ -171,5 +171,5 @@ bool isLoadOrStore(Operation &op) {
   return isa<AffineLoadOp, AffineStoreOp>(op);
 }
 
-} // end namespace matcher
-} // end namespace mlir
+} // namespace matcher
+} // namespace mlir
index dbfc118..0e7ab34 100644 (file)
@@ -141,7 +141,7 @@ bool signMatchesDirection(int64_t elem, Direction direction) {
 Direction flippedDirection(Direction direction) {
   return direction == Direction::Up ? Direction::Down : Simplex::Direction::Up;
 }
-} // anonymous namespace
+} // namespace
 
 /// Find a pivot to change the sample value of the row in the specified
 /// direction. The returned pivot row will involve `row` if and only if the
index b5a0f84..8142091 100644 (file)
@@ -62,7 +62,7 @@ private:
   std::vector<py::object> referencedObjects;
 };
 
-} // anonymous namespace
+} // namespace
 
 /// Create the `mlir.execution_engine` module here.
 PYBIND11_MODULE(_mlirExecutionEngine, m) {
index 272de0d..faf01e5 100644 (file)
@@ -397,7 +397,7 @@ public:
 private:
   PyAffineMap affineMap;
 };
-} // end namespace
+} // namespace
 
 bool PyAffineMap::operator==(const PyAffineMap &other) {
   return mlirAffineMapEqual(affineMap, other.affineMap);
index 0d34914..cd57552 100644 (file)
@@ -2012,7 +2012,7 @@ private:
   PyOperationRef operation;
 };
 
-} // end namespace
+} // namespace
 
 //------------------------------------------------------------------------------
 // Populates the core exports of the 'ir' submodule.
index 2c38a3a..dba2231 100644 (file)
@@ -48,7 +48,7 @@ private:
   MlirPassManager passManager;
 };
 
-} // anonymous namespace
+} // namespace
 
 /// Create the `mlir.passmanager` here.
 void mlir::python::populatePassManagerSubmodule(py::module &m) {
index d5802e2..0467dd9 100644 (file)
@@ -722,7 +722,7 @@ public:
   }
 };
 
-} // end namespace
+} // namespace
 
 void mlir::populateAffineToStdConversionPatterns(RewritePatternSet &patterns) {
   // clang-format off
index 07078c7..f8d59e0 100644 (file)
@@ -108,7 +108,7 @@ struct CmpFOpLowering : public ConvertOpToLLVMPattern<arith::CmpFOp> {
                   ConversionPatternRewriter &rewriter) const override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ConstantOpLowering
@@ -252,7 +252,7 @@ struct ConvertArithmeticToLLVMPass
       signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Pattern Population
index 9f1e0a4..da62168 100644 (file)
@@ -190,7 +190,7 @@ public:
                   ConversionPatternRewriter &rewriter) const override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Conversion Helpers
@@ -845,7 +845,7 @@ struct ConvertArithmeticToSPIRVPass
       signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::arith::createConvertArithmeticToSPIRVPass() {
   return std::make_unique<ConvertArithmeticToSPIRVPass>();
index ac43d1a..9768211 100644 (file)
@@ -173,7 +173,7 @@ struct LowerGpuOpsToNVVMOpsPass
   }
 };
 
-} // anonymous namespace
+} // namespace
 
 void mlir::configureGpuToNVVMConversionLegality(ConversionTarget &target) {
   target.addIllegalOp<FuncOp>();
index 55935e7..f52e589 100644 (file)
@@ -356,7 +356,7 @@ struct WmmaElementwiseOpToNVVMLowering
   }
 };
 
-} // anonymous namespace
+} // namespace
 
 namespace mlir {
 
index b074e41..1a570dc 100644 (file)
@@ -87,7 +87,7 @@ struct LowerGpuOpsToROCDLOpsPass
   }
 };
 
-} // anonymous namespace
+} // namespace
 
 void mlir::configureGpuToROCDLConversionLegality(ConversionTarget &target) {
   target.addIllegalOp<FuncOp>();
index 45222e5..e106ebf 100644 (file)
@@ -74,7 +74,7 @@ private:
   static constexpr unsigned kVulkanLaunchNumConfigOperands = 3;
 };
 
-} // anonymous namespace
+} // namespace
 
 void ConvertGpuLaunchFuncToVulkanLaunchFunc::runOnOperation() {
   bool done = false;
index 200fc3e..b8d1a85 100644 (file)
@@ -166,7 +166,7 @@ private:
   static constexpr unsigned kVulkanLaunchNumConfigOperands = 3;
 };
 
-} // anonymous namespace
+} // namespace
 
 void VulkanLaunchFuncToVulkanCallsPass::runOnOperation() {
   initializeCachedTypes();
index d69c24e..87dcd27 100644 (file)
@@ -135,7 +135,7 @@ private:
   /// generated operations.
   SetVector<Value> locOps;
 };
-} // end anonymous namespace
+} // namespace
 
 PatternLowering::PatternLowering(FuncOp matcherFunc, ModuleOp rewriterModule)
     : builder(matcherFunc.getContext()), matcherFunc(matcherFunc),
index 1b7a3bb..4a7dcdc 100644 (file)
@@ -71,7 +71,7 @@ enum Kind : unsigned {
   TypeAnswer,
   UnsignedAnswer,
 };
-} // end namespace Predicates
+} // namespace Predicates
 
 /// Base class for all predicates, used to allow efficient pointer comparison.
 template <typename ConcreteT, typename BaseT, typename Key,
@@ -639,7 +639,7 @@ private:
   MLIRContext *ctx;
 };
 
-} // end namespace pdl_to_pdl_interp
-} // end namespace mlir
+} // namespace pdl_to_pdl_interp
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_PDLTOPDLINTERP_PREDICATE_H_
index 2466a80..7e2219c 100644 (file)
@@ -690,7 +690,7 @@ struct OrderedPredicateList {
   Value root;
   DenseSet<OrderedPredicate *> predicates;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Returns true if the given matcher refers to the same predicate as the given
 /// ordered predicate. This means that the position and questions of the two
index 796eb76..9ce88d4 100644 (file)
@@ -208,7 +208,7 @@ private:
   ChildMapT children;
 };
 
-} // end namespace pdl_to_pdl_interp
-} // end namespace mlir
+} // namespace pdl_to_pdl_interp
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_PDLTOPDLINTERP_PREDICATETREE_H_
index 8fcd320..642b6a0 100644 (file)
@@ -131,7 +131,7 @@ private:
   DenseMap<Value, Value> parents;
 };
 
-} // end namespace pdl_to_pdl_interp
-} // end namespace mlir
+} // namespace pdl_to_pdl_interp
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_PDLTOPDLINTERP_ROOTORDERING_H_
index 5b4bc92..d9f4713 100644 (file)
@@ -21,76 +21,76 @@ void registerDialect(DialectRegistry &registry);
 
 namespace acc {
 class OpenACCDialect;
-} // end namespace acc
+} // namespace acc
 
 namespace arith {
 class ArithmeticDialect;
-} // end namespace arith
+} // namespace arith
 
 namespace complex {
 class ComplexDialect;
-} // end namespace complex
+} // namespace complex
 
 namespace gpu {
 class GPUDialect;
 class GPUModuleOp;
-} // end namespace gpu
+} // namespace gpu
 
 namespace LLVM {
 class LLVMDialect;
-} // end namespace LLVM
+} // namespace LLVM
 
 namespace NVVM {
 class NVVMDialect;
-} // end namespace NVVM
+} // namespace NVVM
 
 namespace math {
 class MathDialect;
-} // end namespace math
+} // namespace math
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace omp {
 class OpenMPDialect;
-} // end namespace omp
+} // namespace omp
 
 namespace pdl_interp {
 class PDLInterpDialect;
-} // end namespace pdl_interp
+} // namespace pdl_interp
 
 namespace ROCDL {
 class ROCDLDialect;
-} // end namespace ROCDL
+} // namespace ROCDL
 
 namespace scf {
 class SCFDialect;
-} // end namespace scf
+} // namespace scf
 
 namespace spirv {
 class SPIRVDialect;
-} // end namespace spirv
+} // namespace spirv
 
 namespace tensor {
 class TensorDialect;
-} // end namespace tensor
+} // namespace tensor
 
 namespace tosa {
 class TosaDialect;
-} // end namespace tosa
+} // namespace tosa
 
 namespace vector {
 class VectorDialect;
-} // end namespace vector
+} // namespace vector
 
 namespace arm_neon {
 class ArmNeonDialect;
-} // end namespace arm_neon
+} // namespace arm_neon
 
 #define GEN_PASS_CLASSES
 #include "mlir/Conversion/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // CONVERSION_PASSDETAIL_H_
index 90d870f..657f041 100644 (file)
@@ -451,7 +451,7 @@ struct SCFToOpenMPPass : public ConvertSCFToOpenMPBase<SCFToOpenMPPass> {
   }
 };
 
-} // end namespace
+} // namespace
 
 std::unique_ptr<OperationPass<ModuleOp>> mlir::createConvertSCFToOpenMPPass() {
   return std::make_unique<SCFToOpenMPPass>();
index 26ffeec..3933899 100644 (file)
@@ -39,7 +39,7 @@ public:
   }
 };
 
-} // end namespace spirv
-} // end namespace mlir
+} // namespace spirv
+} // namespace mlir
 
 #endif // MLIR_CONVERSION_SPIRVCOMMON_PATTERN_H
index fcaba6e..200834a 100644 (file)
@@ -1052,7 +1052,7 @@ struct LLVMLoweringPass : public ConvertStandardToLLVMBase<LLVMLoweringPass> {
                StringAttr::get(m.getContext(), this->dataLayout));
   }
 };
-} // end namespace
+} // namespace
 
 std::unique_ptr<OperationPass<ModuleOp>> mlir::createLowerToLLVMPass() {
   return std::make_unique<LLVMLoweringPass>();
index 50b4c3a..a9a3f53 100644 (file)
@@ -145,7 +145,7 @@ public:
         vecTy, dwordConfig, int32Zero, int32Zero, int1False, int1False);
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::populateVectorToROCDLConversionPatterns(
     LLVMTypeConverter &converter, RewritePatternSet &patterns) {
index 48affcd..edbcba7 100644 (file)
@@ -204,7 +204,7 @@ struct AffineInlinerInterface : public DialectInlinerInterface {
   /// Affine regions should be analyzed recursively.
   bool shouldAnalyzeRecursively(Operation *op) const final { return true; }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // AffineDialect
@@ -944,7 +944,7 @@ void SimplifyAffineOp<AffineOpTy>::replaceAffineOp(
     ArrayRef<Value> mapOperands) const {
   rewriter.replaceOpWithNewOp<AffineOpTy>(op, map, mapOperands);
 }
-} // end anonymous namespace.
+} // namespace
 
 void AffineApplyOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                 MLIRContext *context) {
@@ -1651,7 +1651,7 @@ struct AffineForEmptyLoopFolder : public OpRewritePattern<AffineForOp> {
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void AffineForOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                               MLIRContext *context) {
@@ -2033,7 +2033,7 @@ struct AlwaysTrueOrFalseIf : public OpRewritePattern<AffineIfOp> {
     return success();
   }
 };
-} // end anonymous namespace.
+} // namespace
 
 static LogicalResult verify(AffineIfOp op) {
   // Verify that we have a condition attribute.
index dad2cab..218764d 100644 (file)
@@ -72,7 +72,7 @@ struct AffineDataCopyGeneration
   Value zeroIndex = nullptr;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Generates copies for memref's living in 'slowMemorySpace' into newly created
 /// buffers in 'fastMemorySpace', and replaces memory operations to the former
index a6d5f43..b6f9e4c 100644 (file)
@@ -47,7 +47,7 @@ struct LoopInvariantCodeMotion
   void runOnFunction() override;
   void runOnAffineForOp(AffineForOp forOp);
 };
-} // end anonymous namespace
+} // namespace
 
 static bool
 checkInvarianceOfNestedIfOps(Operation *op, Value indVar, ValueRange iterArgs,
index e1b635a..d3df213 100644 (file)
@@ -75,7 +75,7 @@ struct AffineScalarReplacement
                        PostDominanceInfo &postDominanceInfo);
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Creates a pass to perform optimizations relying on memref dataflow such as
 /// store to load forwarding, elimination of dead stores, and dead allocs.
index 5a42c56..69d21c6 100644 (file)
@@ -49,7 +49,7 @@ struct LoopTiling : public AffineLoopTilingBase<LoopTiling> {
   bool avoidMaxMinBounds = true;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Creates a pass to perform loop tiling on all suitable loop nests of a
 /// Function.
index 9682104..f876153 100644 (file)
@@ -59,7 +59,7 @@ struct LoopUnroll : public AffineLoopUnrollBase<LoopUnroll> {
   /// Unroll this for op. Returns failure if nothing was done.
   LogicalResult runOnAffineForOp(AffineForOp forOp);
 };
-} // end anonymous namespace
+} // namespace
 
 /// Returns true if no other affine.for ops are nested within.
 static bool isInnermostAffineForOp(AffineForOp forOp) {
index 76da2b0..cf8e151 100644 (file)
@@ -61,7 +61,7 @@ struct LoopUnrollAndJam : public AffineLoopUnrollAndJamBase<LoopUnrollAndJam> {
 
   void runOnFunction() override;
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<OperationPass<FuncOp>>
 mlir::createLoopUnrollAndJamPass(int unrollJamFactor) {
index 3ba6fa1..c3d55a6 100644 (file)
@@ -18,19 +18,19 @@ void registerDialect(DialectRegistry &registry);
 
 namespace linalg {
 class LinalgDialect;
-} // end namespace linalg
+} // namespace linalg
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace vector {
 class VectorDialect;
-} // end namespace vector
+} // namespace vector
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Affine/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_AFFINE_TRANSFORMS_PASSDETAIL_H_
index 2753389..04417b9 100644 (file)
@@ -69,7 +69,7 @@ struct SimplifyAffineStructures
   DenseMap<Attribute, Attribute> simplifiedAttributes;
 };
 
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<OperationPass<FuncOp>>
 mlir::createSimplifyAffineStructuresPass() {
index 827556d..0e41d02 100644 (file)
@@ -611,7 +611,7 @@ struct Vectorize : public AffineVectorizeBase<Vectorize> {
   void runOnFunction() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 Vectorize::Vectorize(ArrayRef<int64_t> virtualVectorSize) {
   vectorSizes = virtualVectorSize;
@@ -764,7 +764,7 @@ private:
   void registerValueScalarReplacementImpl(Value replaced, Value replacement);
 };
 
-} // end namespace
+} // namespace
 
 /// Registers the vector replacement of a scalar operation and its result
 /// values. Both operations must have the same number of results.
index f65f866..ea4acbc 100644 (file)
@@ -27,7 +27,7 @@ struct ArithmeticInlinerInterface : public DialectInlinerInterface {
     return true;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void arith::ArithmeticDialect::initialize() {
   addOperations<
index b65b152..dc4809a 100644 (file)
@@ -73,7 +73,7 @@ static arith::CmpIPredicateAttr invertPredicate(arith::CmpIPredicateAttr pred) {
 
 namespace {
 #include "ArithmeticCanonicalization.inc"
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ConstantOp
index 9a0e8c7..a7691e5 100644 (file)
@@ -55,7 +55,7 @@ struct ArithmeticBufferizePass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void mlir::arith::populateArithmeticBufferizePatterns(
     bufferization::BufferizeTypeConverter &typeConverter,
index e97afac..d9ab927 100644 (file)
@@ -223,7 +223,7 @@ struct ArithmeticExpandOpsPass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void mlir::arith::populateArithmeticExpandOpsPatterns(
     RewritePatternSet &patterns) {
index 1f3f274..0947804 100644 (file)
@@ -17,15 +17,15 @@ class StandardOpsDialect;
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Arithmetic/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_ARITHMETIC_TRANSFORMS_PASSDETAIL_H_
index 6d23214..9eb93bb 100644 (file)
@@ -16,7 +16,7 @@ namespace mlir {
 
 namespace arith {
 class ArithmeticDialect;
-} // end namespace arith
+} // namespace arith
 
 namespace async {
 class AsyncDialect;
index 84980bf..601ba95 100644 (file)
@@ -28,7 +28,7 @@ struct BufferizationInlinerInterface : public DialectInlinerInterface {
     return true;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Bufferization Dialect
index 5f93007..f81d726 100644 (file)
@@ -100,7 +100,7 @@ struct SimplifyClones : public OpRewritePattern<CloneOp> {
   }
 };
 
-} // namespace.
+} // namespace
 
 void CloneOp::getCanonicalizationPatterns(OwningRewritePatternList &results,
                                           MLIRContext *context) {
index d82170b..49a39b6 100644 (file)
@@ -665,7 +665,7 @@ struct BufferDeallocationPass : BufferDeallocationBase<BufferDeallocationPass> {
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // BufferDeallocationPass construction
index 4565707..37f8811 100644 (file)
@@ -17,15 +17,15 @@ class StandardOpsDialect;
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_BUFFERIZATION_TRANSFORMS_PASSDETAIL_H_
index dc1949f..579c385 100644 (file)
@@ -1177,7 +1177,7 @@ struct SimplifyDimOfAllocOp : public OpRewritePattern<memref::DimOp> {
   }
 };
 
-} // end anonymous namespace.
+} // namespace
 
 void AllocOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                           MLIRContext *context) {
index c83ac30..ab352a0 100644 (file)
@@ -17,6 +17,6 @@ namespace mlir {
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/GPU/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_GPU_TRANSFORMS_PASSDETAIL_H_
index e8ad4ec..6f488b0 100644 (file)
@@ -104,7 +104,7 @@ private:
 
   std::string getRocmPath();
 };
-} // end namespace
+} // namespace
 
 SerializeToHsacoPass::SerializeToHsacoPass(const SerializeToHsacoPass &other)
     : PassWrapper<SerializeToHsacoPass, gpu::SerializeToBlobPass>(other) {}
index 2c320a3..1688fa4 100644 (file)
@@ -1502,7 +1502,7 @@ struct EnumTraits {};
 
 REGISTER_ENUM_TYPE(Linkage);
 REGISTER_ENUM_TYPE(UnnamedAddr);
-} // end namespace
+} // namespace
 
 /// Parse an enum from the keyword, or default to the provided default value.
 /// The return type is the enum type by default, unless overriden with the
index cf8e468..0481d15 100644 (file)
@@ -426,8 +426,8 @@ struct LLVMTypeAndSizeStorage : public TypeStorage {
   unsigned numElements;
 };
 
-} // end namespace detail
-} // end namespace LLVM
-} // end namespace mlir
+} // namespace detail
+} // namespace LLVM
+} // namespace mlir
 
 #endif // DIALECT_LLVMIR_IR_TYPEDETAIL_H
index 93b400f..3bf306d 100644 (file)
@@ -63,7 +63,7 @@ struct LegalizeForExportPass
     LLVM::ensureDistinctSuccessors(getOperation());
   }
 };
-} // end namespace
+} // namespace
 
 std::unique_ptr<Pass> LLVM::createLegalizeForExportPass() {
   return std::make_unique<LegalizeForExportPass>();
index 2a46e12..8449f77 100644 (file)
@@ -16,6 +16,6 @@ namespace mlir {
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_LLVMIR_TRANSFORMS_PASSDETAIL_H_
index 4ea37ce..4d00435 100644 (file)
@@ -53,7 +53,7 @@ struct LinalgInlinerInterface : public DialectInlinerInterface {
                         ArrayRef<Value> valuesToRepl) const final {}
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // LinalgDialect
index ede2f96..bd6e8cd 100644 (file)
@@ -339,7 +339,7 @@ struct LinalgBufferizePass : public LinalgBufferizeBase<LinalgBufferizePass> {
       signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<OperationPass<FuncOp>> mlir::createLinalgBufferizePass() {
   return std::make_unique<LinalgBufferizePass>();
index f90b5e5..58f5845 100644 (file)
@@ -56,7 +56,7 @@ struct LinalgComprehensiveModuleBufferize
     vector_ext::registerBufferizableOpInterfaceExternalModels(registry);
   }
 };
-} // end namespace
+} // namespace
 
 static void applyEnablingTransformations(ModuleOp moduleOp) {
   RewritePatternSet patterns(moduleOp.getContext());
index 01a8d14..b499dbb 100644 (file)
@@ -20,31 +20,31 @@ void registerDialect(DialectRegistry &registry);
 
 namespace arith {
 class ArithmeticDialect;
-} // end namespace arith
+} // namespace arith
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace linalg {
 class LinalgDialect;
-} // end namespace linalg
+} // namespace linalg
 
 namespace scf {
 class SCFDialect;
-} // end namespace scf
+} // namespace scf
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace vector {
 class VectorDialect;
-} // end namespace vector
+} // namespace vector
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Linalg/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_LINALG_TRANSFORMS_PASSDETAIL_H_
index eb21400..0f7307c 100644 (file)
@@ -26,7 +26,7 @@ struct MathInlinerInterface : public DialectInlinerInterface {
     return true;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::math::MathDialect::initialize() {
   addOperations<
index 057cb46..f273558 100644 (file)
@@ -30,7 +30,7 @@ struct MemRefInlinerInterface : public DialectInlinerInterface {
     return true;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::memref::MemRefDialect::initialize() {
   addOperations<
index 938197d..b9a7812 100644 (file)
@@ -191,7 +191,7 @@ struct SimplifyDeadAlloc : public OpRewritePattern<T> {
     return success();
   }
 };
-} // end anonymous namespace.
+} // namespace
 
 void AllocOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                           MLIRContext *context) {
@@ -676,7 +676,7 @@ struct DimOfMemRefReshape : public OpRewritePattern<DimOp> {
   }
 };
 
-} // end anonymous namespace.
+} // namespace
 
 void DimOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                         MLIRContext *context) {
@@ -1473,8 +1473,8 @@ Wrapper operator*(Wrapper a, int64_t b) {
     return Wrapper(ShapedType::kDynamicStrideOrOffset);
   return Wrapper(a.v * b);
 }
-} // end namespace saturated_arith
-} // end namespace
+} // namespace saturated_arith
+} // namespace
 
 /// A subview result type can be fully inferred from the source type and the
 /// static representation of offsets, sizes and strides. Special sentinels
@@ -2190,7 +2190,7 @@ struct ViewOpMemrefCastFolder : public OpRewritePattern<ViewOp> {
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void ViewOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                          MLIRContext *context) {
index 31475ec..96f6ea5 100644 (file)
@@ -40,7 +40,7 @@ struct PointerLikeModel
     return pointer.cast<T>().getElementType();
   }
 };
-} // end namespace
+} // namespace
 
 void OpenMPDialect::initialize() {
   addOperations<
index 2c6299f..64844ef 100644 (file)
@@ -32,7 +32,7 @@ struct QuantizedConstRewrite : public OpRewritePattern<QuantizeCastOp> {
                                 PatternRewriter &rewriter) const override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Matches a [constant] -> [qbarrier] where the qbarrier results type is
 /// quantized and the operand type is quantizable.
index 8727bfc..4d6fb3e 100644 (file)
@@ -16,6 +16,6 @@ namespace mlir {
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Quant/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_QUANT_TRANSFORMS_PASSDETAIL_H_
index e28accc..c7f1436 100644 (file)
@@ -54,7 +54,7 @@ struct SCFInlinerInterface : public DialectInlinerInterface {
     }
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // SCFDialect
index 399a5b1..a3f9b5b 100644 (file)
@@ -36,7 +36,7 @@ struct SCFBufferizePass : public SCFBufferizeBase<SCFBufferizePass> {
       return signalPassFailure();
   };
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::createSCFBufferizePass() {
   return std::make_unique<SCFBufferizePass>();
index 7dfdb20..49f67c2 100644 (file)
@@ -20,23 +20,23 @@ class AffineDialect;
 
 namespace arith {
 class ArithmeticDialect;
-} // end namespace arith
+} // namespace arith
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace tensor {
 class TensorDialect;
-} // end namespace tensor
+} // namespace tensor
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/SCF/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_LOOPOPS_TRANSFORMS_PASSDETAIL_H_
index c512586..0588549 100644 (file)
@@ -108,7 +108,7 @@ struct CombineChainedAccessChain
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void spirv::AccessChainOp::getCanonicalizationPatterns(
     RewritePatternSet &results, MLIRContext *context) {
@@ -414,7 +414,7 @@ LogicalResult ConvertSelectionOpToSelect::canCanonicalizeSelection(
 
   return success();
 }
-} // end anonymous namespace
+} // namespace
 
 void spirv::SelectionOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                      MLIRContext *context) {
index 9c72dbb..ccd4c1d 100644 (file)
@@ -18,7 +18,7 @@ using namespace mlir;
 
 namespace {
 #include "SPIRVCanonicalization.inc"
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace spirv {
index cb4f01f..da4f3c5 100644 (file)
@@ -15,11 +15,11 @@ namespace mlir {
 
 namespace spirv {
 class ModuleOp;
-} // end namespace spirv
+} // namespace spirv
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/SPIRV/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_SPIRV_TRANSFORMS_PASSDETAIL_H_
index b89312f..c381ee5 100644 (file)
@@ -38,7 +38,7 @@ private:
                         SmallVectorImpl<spirv::CompositeInsertOp> &insertions);
 };
 
-} // anonymous namespace
+} // namespace
 
 void RewriteInsertsPass::runOnOperation() {
   SmallVector<SmallVector<spirv::CompositeInsertOp, 4>, 4> workList;
index 6f130c8..d1d54b9 100644 (file)
@@ -15,15 +15,15 @@ namespace mlir {
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Shape/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_SHAPE_TRANSFORMS_PASSDETAIL_H_
index 5e5d056..8404aa6 100644 (file)
@@ -134,7 +134,7 @@ struct SparseTensorConversionPass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::createSparsificationPass() {
   return std::make_unique<SparsificationPass>();
index a974a4f..1a43c09 100644 (file)
@@ -94,7 +94,7 @@ struct StdInlinerInterface : public DialectInlinerInterface {
       valuesToRepl[it.index()].replaceAllUsesWith(it.value());
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // StandardOpsDialect
@@ -749,7 +749,7 @@ struct CondBranchTruthPropagation : public OpRewritePattern<CondBranchOp> {
     return success(replaced);
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void CondBranchOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                MLIRContext *context) {
index 58dda48..2cd22ef 100644 (file)
@@ -35,7 +35,7 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::populateCallOpTypeConversionPattern(RewritePatternSet &patterns,
                                                TypeConverter &converter) {
@@ -85,7 +85,7 @@ public:
 private:
   function_ref<bool(BranchOpInterface, int)> shouldConvertBranchOperand;
 };
-} // end anonymous namespace
+} // namespace
 
 namespace {
 /// Only needed to support partial conversion of functions where this pattern
@@ -105,7 +105,7 @@ public:
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::populateBranchOpInterfaceTypeConversionPattern(
     RewritePatternSet &patterns, TypeConverter &typeConverter,
index 38bf42c..eadd026 100644 (file)
@@ -18,15 +18,15 @@ class AtomicRMWOp;
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/StandardOps/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_STANDARD_TRANSFORMS_PASSDETAIL_H_
index 860e0b8..0c18089 100644 (file)
@@ -30,7 +30,7 @@ struct TensorInlinerInterface : public DialectInlinerInterface {
     return true;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // TensorDialect Methods
index 7f1bd74..6edfe47 100644 (file)
@@ -313,7 +313,7 @@ struct DimOfCastOp : public OpRewritePattern<DimOp> {
     return success();
   }
 };
-} // end anonymous namespace.
+} // namespace
 
 void DimOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                         MLIRContext *context) {
index 5c95f24..858a0eb 100644 (file)
@@ -15,19 +15,19 @@ namespace mlir {
 
 namespace bufferization {
 class BufferizationDialect;
-} // end namespace bufferization
+} // namespace bufferization
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace scf {
 class SCFDialect;
-} // end namespace scf
+} // namespace scf
 
 #define GEN_PASS_CLASSES
 #include "mlir/Dialect/Tensor/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // DIALECT_TENSOR_TRANSFORMS_PASSDETAIL_H_
index 601e660..898bc25 100644 (file)
@@ -60,7 +60,7 @@ struct TosaInlinerInterface : public DialectInlinerInterface {
             isa<tosa::WhileOp>(dest->getParentOp()));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // TOSA control flow support.
index c1fcca2..e623089 100644 (file)
@@ -383,7 +383,7 @@ public:
     (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::tosa::createTosaDecomposeTransposeConvPass() {
   return std::make_unique<TosaDecomposeTransposeConv>();
index cd94be1..33a1e34 100644 (file)
@@ -320,7 +320,7 @@ public:
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::tosa::createTosaInferShapesPass() {
   return std::make_unique<TosaInferShapes>();
index 36b2287..d3b2297 100644 (file)
@@ -227,7 +227,7 @@ struct ConvertTosaOp<tosa::ArithmeticRightShiftOp>
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace {
 /// Pass that enables broadcast by making all input arrays have the same
@@ -262,7 +262,7 @@ public:
     (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::tosa::createTosaMakeBroadcastablePass() {
   return std::make_unique<TosaMakeBroadcastable>();
index bbe7b74..9768483 100644 (file)
@@ -2302,7 +2302,7 @@ public:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void ExtractStridedSliceOp::getCanonicalizationPatterns(
     RewritePatternSet &results, MLIRContext *context) {
@@ -3910,7 +3910,7 @@ public:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void vector::TransposeOp::getCanonicalizationPatterns(
     RewritePatternSet &results, MLIRContext *context) {
@@ -4005,7 +4005,7 @@ public:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void CreateMaskOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                MLIRContext *context) {
index 5ecce56..e45e5c9 100644 (file)
@@ -108,7 +108,7 @@ struct CompileAndExecuteConfig {
       runtimeSymbolMap;
 };
 
-} // end anonymous namespace
+} // namespace
 
 static OwningModuleRef parseMLIRInput(StringRef inputFilename,
                                       MLIRContext *context) {
index 193e305..9a5c8e4 100644 (file)
@@ -681,7 +681,7 @@ static SparseTensorCOO<V> *openSparseTensorCOO(char *filename, uint64_t rank,
   return tensor;
 }
 
-} // anonymous namespace
+} // namespace
 
 extern "C" {
 
index 1c38e54..dfc1054 100644 (file)
@@ -92,6 +92,6 @@ struct AffineConstantExprStorage : public AffineExprStorage {
   int64_t constant;
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 #endif // MLIR_IR_AFFINEEXPRDETAIL_H_
index 153742f..686dbe8 100644 (file)
@@ -89,7 +89,7 @@ private:
   ArrayRef<Attribute> operandConsts;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Returns a single constant result affine map.
 AffineMap AffineMap::getConstantMap(int64_t val, MLIRContext *context) {
index d3090e3..c0a906b 100644 (file)
@@ -51,7 +51,7 @@ struct AffineMapStorage : public StorageUniquer::BaseStorage {
   }
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif // AFFINEMAPDETAIL_H_
index d3c239d..5d5f896 100644 (file)
@@ -146,7 +146,7 @@ struct AsmPrinterOptions {
       llvm::cl::desc("Print assuming in local scope by default"),
       llvm::cl::Hidden};
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::ManagedStatic<AsmPrinterOptions> clOptions;
 
@@ -267,7 +267,7 @@ static raw_ostream &operator<<(raw_ostream &os, NewLineCounter &newLine) {
   ++newLine.curLine;
   return os << '\n';
 }
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // AliasInitializer
@@ -538,7 +538,7 @@ private:
   /// A dummy output stream.
   mutable llvm::raw_null_ostream os;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Sanitize the given name such that it can be used as a valid identifier. If
 /// the string needs to be modified in any way, the provided buffer is used to
@@ -745,7 +745,7 @@ private:
   /// An allocator used for alias names.
   llvm::BumpPtrAllocator aliasAllocator;
 };
-} // end anonymous namespace
+} // namespace
 
 void AliasState::initialize(
     Operation *op, const OpPrintingFlags &printerFlags,
@@ -869,7 +869,7 @@ private:
 
   DialectInterfaceCollection<OpAsmDialectInterface> &interfaces;
 };
-} // end anonymous namespace
+} // namespace
 
 SSANameState::SSANameState(
     Operation *op, const OpPrintingFlags &printerFlags,
@@ -1215,8 +1215,8 @@ private:
   /// An optional location map to be populated.
   AsmState::LocationMap *locationMap;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 AsmState::AsmState(Operation *op, const OpPrintingFlags &printerFlags,
                    LocationMap *locationMap)
@@ -2479,7 +2479,7 @@ private:
   // This is the current indentation level for nested structures.
   unsigned currentIndent = 0;
 };
-} // end anonymous namespace
+} // namespace
 
 void OperationPrinter::printTopLevelOperation(Operation *op) {
   // Output the aliases at the top level that can't be deferred.
index 53d5608..2fa4baa 100644 (file)
@@ -59,7 +59,7 @@ struct BuiltinOpAsmDialectInterface : public OpAsmDialectInterface {
     return AliasResult::NoAlias;
   }
 };
-} // end anonymous namespace.
+} // namespace
 
 void BuiltinDialect::initialize() {
   registerTypes();
index 8400870..fc25258 100644 (file)
@@ -372,8 +372,8 @@ struct SourceMgrDiagnosticHandlerImpl {
   /// Mapping between file name and buffer ID's.
   llvm::StringMap<unsigned> filenameToBufId;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 /// Return a processable FileLineColLoc from the given location.
 static Optional<FileLineColLoc> getFileLineColLoc(Location loc) {
@@ -610,8 +610,8 @@ struct SourceMgrDiagnosticVerifierHandlerImpl {
   llvm::Regex expected = llvm::Regex("expected-(error|note|remark|warning) "
                                      "*(@([+-][0-9]+|above|below))? *{{(.*)}}");
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 /// Given a diagnostic kind, return a human readable string for it.
 static StringRef getDiagKindStr(DiagnosticSeverity kind) {
@@ -947,8 +947,8 @@ struct ParallelDiagnosticHandlerImpl : public llvm::PrettyStackTraceEntry {
   /// The context to emit the diagnostics to.
   MLIRContext *context;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 ParallelDiagnosticHandler::ParallelDiagnosticHandler(MLIRContext *ctx)
     : impl(new ParallelDiagnosticHandlerImpl(ctx)) {}
index 56bd669..631dc41 100644 (file)
@@ -178,7 +178,7 @@ Dialect::getOperationPrinter(Operation *op) const {
 }
 
 /// Utility function that returns if the given string is a valid dialect
-/// namespace.
+/// namespace
 bool Dialect::isValidNamespace(StringRef str) {
   llvm::Regex dialectNameRegex("^[a-zA-Z_][a-zA-Z_0-9\\$]*$");
   return dialectNameRegex.match(str);
index 451c159..262617d 100644 (file)
@@ -52,6 +52,6 @@ struct IntegerSetStorage : public StorageUniquer::BaseStorage {
   }
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 #endif // INTEGERSETDETAIL_H_
index 670faf1..1e10d60 100644 (file)
@@ -71,7 +71,7 @@ struct MLIRContextOptions {
       llvm::cl::desc("When a diagnostic is emitted, also print the stack trace "
                      "as an attached note")};
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::ManagedStatic<MLIRContextOptions> clOptions;
 
@@ -110,7 +110,7 @@ struct ScopedWriterLock {
   }
   llvm::sys::SmartRWMutex<true> *mutex;
 };
-} // end anonymous namespace.
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // MLIRContextImpl
@@ -250,7 +250,7 @@ public:
       attrMapping.second->~AbstractAttribute();
   }
 };
-} // end namespace mlir
+} // namespace mlir
 
 MLIRContext::MLIRContext(Threading setting)
     : MLIRContext(DialectRegistry(), setting) {}
index 1dbb116..961f6c1 100644 (file)
@@ -619,7 +619,7 @@ struct SymbolScope {
   /// The IR unit representing this scope.
   llvm::PointerUnion<Operation *, Region *> limit;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Collect all of the symbol scopes from 'symbol' to (inclusive) 'limit'.
 static SmallVector<SymbolScope, 2> collectSymbolScopes(Operation *symbol,
index f041f9e..840a315 100644 (file)
@@ -62,7 +62,7 @@ private:
   LogicalResult verifyDominanceOfContainedRegions(Operation &op,
                                                   DominanceInfo &domInfo);
 };
-} // end anonymous namespace
+} // namespace
 
 LogicalResult OperationVerifier::verifyOpAndDominance(Operation &op) {
   SmallVector<Operation *> opsWithIsolatedRegions;
index 80cf470..e8c4a02 100644 (file)
@@ -99,7 +99,7 @@ private:
   unsigned numSymbolOperands;
   SmallVector<std::pair<StringRef, AffineExpr>, 4> dimsAndSymbols;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create an affine binary high precedence op expression (mul's, div's, mod).
 /// opLoc is the location of the op token to be used to report errors
index e8c70b7..7bbbbc7 100644 (file)
@@ -516,6 +516,6 @@ protected:
   bool emittedError = false;
 };
 } // namespace detail
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_LIB_PARSER_ASMPARSERIMPL_H
index 63b8542..13da92c 100644 (file)
@@ -485,7 +485,7 @@ private:
   /// Storage used when parsing elements that were stored as hex values.
   Optional<Token> hexStorage;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Parse the elements of a tensor literal. If 'allowHex' is true, the parser
 /// may also parse a tensor literal that is store as a hex string.
index 8ba8133..8f24d08 100644 (file)
@@ -68,6 +68,6 @@ private:
   void operator=(const Lexer &) = delete;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_LIB_PARSER_LEXER_H
index 1818e42..87d8f4b 100644 (file)
@@ -487,7 +487,7 @@ private:
   /// The top level operation that holds all of the parsed operations.
   Operation *topLevelOp;
 };
-} // end anonymous namespace
+} // namespace
 
 OperationParser::OperationParser(ParserState &state, ModuleOp topLevelOp)
     : Parser(state), opBuilder(topLevelOp.getRegion()), topLevelOp(topLevelOp) {
@@ -1588,7 +1588,7 @@ private:
   /// The backing operation parser.
   OperationParser &parser;
 };
-} // end anonymous namespace.
+} // namespace
 
 FailureOr<OperationName> OperationParser::parseCustomOperationName() {
   std::string opName = getTokenSpelling().str();
@@ -2025,7 +2025,7 @@ private:
   /// Parse an attribute alias declaration.
   ParseResult parseTypeAliasDef();
 };
-} // end anonymous namespace
+} // namespace
 
 /// Parses an attribute alias declaration.
 ///
index 9a1894d..da0c81c 100644 (file)
@@ -301,7 +301,7 @@ protected:
   /// non-trivial state here, add it to the ParserState class.
   ParserState &state;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif // MLIR_LIB_PARSER_PARSER_H
index f5fafff..5ab6754 100644 (file)
@@ -91,7 +91,7 @@ struct ParserState {
   SmallVector<StringRef> defaultDialectStack{"builtin"};
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif // MLIR_LIB_PARSER_PARSERSTATE_H
index d4d09f9..4f5e948 100644 (file)
@@ -119,6 +119,6 @@ private:
   StringRef spelling;
 };
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // MLIR_LIB_PARSER_TOKEN_H
index 2094770..403d88d 100644 (file)
@@ -92,7 +92,7 @@ private:
   /// configuration asked for change detection.
   DenseMap<Pass *, OperationFingerPrint> beforePassFingerPrints;
 };
-} // end anonymous namespace
+} // namespace
 
 static void printIR(Operation *op, bool printModuleScope, raw_ostream &out,
                     OpPrintingFlags flags) {
@@ -248,7 +248,7 @@ struct BasicIRPrinterConfig : public PassManager::IRPrinterConfig {
   /// The stream to output to.
   raw_ostream &out;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Add an instrumentation to print the IR before and after pass execution,
 /// using the provided configuration.
index 57ede84..c7bbf4a 100644 (file)
@@ -131,8 +131,8 @@ struct OpPassManagerImpl {
   /// OpPassManager.
   OpPassManager::Nesting nesting;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 void OpPassManagerImpl::mergeInto(OpPassManagerImpl &rhs) {
   assert(name == rhs.name && "merging unrelated pass managers");
@@ -786,8 +786,8 @@ struct PassInstrumentorImpl {
   /// Set of registered instrumentations.
   std::vector<std::unique_ptr<PassInstrumentation>> instrumentations;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 PassInstrumentor::PassInstrumentor() : impl(new PassInstrumentorImpl()) {}
 PassInstrumentor::~PassInstrumentor() {}
index fdc995c..46fec82 100644 (file)
@@ -362,7 +362,7 @@ private:
   /// The generator used to create crash reproducers.
   PassCrashReproducerGenerator &generator;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // FileReproducerStream
@@ -386,7 +386,7 @@ private:
   /// ToolOutputFile corresponding to opened `filename`.
   std::unique_ptr<llvm::ToolOutputFile> outputFile = nullptr;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // PassManager
index 24782fc..230551c 100644 (file)
@@ -119,6 +119,6 @@ private:
   std::unique_ptr<Impl> impl;
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 #endif // MLIR_PASS_PASSDETAIL_H_
index f5780ab..c9ba4e4 100644 (file)
@@ -78,7 +78,7 @@ struct PassManagerOptions {
           clEnumValN(PassDisplayMode::Pipeline, "pipeline",
                      "display the results with a nested pipeline view"))};
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::ManagedStatic<PassManagerOptions> options;
 
index a7fb9ec..eae5091 100644 (file)
@@ -302,7 +302,7 @@ private:
   std::vector<PipelineElement> pipeline;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Try to initialize this pipeline with the given pipeline text. An option is
 /// given to enable accurate error reporting.
@@ -521,7 +521,7 @@ struct PassArgData {
   /// pipeline.
   TextualPipeline pipeline;
 };
-} // end anonymous namespace
+} // namespace
 
 namespace llvm {
 namespace cl {
@@ -539,8 +539,8 @@ struct OptionValue<PassArgData> final
 
   PassArgData value;
 };
-} // end namespace cl
-} // end namespace llvm
+} // namespace cl
+} // namespace llvm
 
 namespace {
 
@@ -687,8 +687,8 @@ struct PassPipelineCLParserImpl {
   /// The set of passes and pass pipelines to run.
   llvm::cl::list<PassArgData, bool, PassNameParser> passList;
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 /// Construct a pass pipeline parser with the given command line description.
 PassPipelineCLParser::PassPipelineCLParser(StringRef arg, StringRef description)
index 425aeae..8b1b020 100644 (file)
@@ -23,7 +23,7 @@ struct Statistic {
   const char *name, *desc;
   unsigned value;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Utility to print a pass entry in the statistics output.
 static void printPassEntry(raw_ostream &os, unsigned indent, StringRef pass,
index e0c2944..806ce67 100644 (file)
@@ -31,7 +31,7 @@ public:
   void runOnOperation() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Runs the pass instance in the pass pipeline.
 void OptReductionPass::runOnOperation() {
index 4ff31b4..859f64a 100644 (file)
@@ -199,7 +199,7 @@ private:
   FrozenRewritePatternSet reducerPatterns;
 };
 
-} // end anonymous namespace
+} // namespace
 
 LogicalResult ReductionTreePass::initialize(MLIRContext *context) {
   RewritePatternSet patterns(context);
index bd1cd7b..bd98ce0 100644 (file)
@@ -160,7 +160,7 @@ enum OpCode : ByteCodeField {
   /// Compare a range of types with a set of constants.
   SwitchTypes,
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ByteCode Generation
@@ -479,7 +479,7 @@ struct ByteCodeLiveRange {
   /// The value range storage index for this range.
   Optional<unsigned> valueRangeIndex;
 };
-} // end anonymous namespace
+} // namespace
 
 void Generator::generate(ModuleOp module) {
   FuncOp matcherFunc = module.lookupSymbol<FuncOp>(
@@ -1313,7 +1313,7 @@ public:
     return allocatedValueRanges;
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void ByteCodeExecutor::executeApplyConstraint(PatternRewriter &rewriter) {
   LLVM_DEBUG(llvm::dbgs() << "Executing ApplyConstraint:\n");
index a26c3b2..e423ff2 100644 (file)
@@ -19,7 +19,7 @@
 namespace mlir {
 namespace pdl_interp {
 class RecordMatchOp;
-} // end namespace pdl_interp
+} // namespace pdl_interp
 
 namespace detail {
 class PDLByteCode;
@@ -208,7 +208,7 @@ private:
   ByteCodeField maxLoopLevel = 0;
 };
 
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 #endif // MLIR_REWRITE_BYTECODE_H_
index 30864b2..930d5d3 100644 (file)
@@ -34,7 +34,7 @@ struct DebugCounterOptions {
       llvm::cl::desc("Print out debug counter information after all counters "
                      "have been accumulated")};
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::ManagedStatic<DebugCounterOptions> clOptions;
 
index 06978ce..9291199 100644 (file)
@@ -257,7 +257,7 @@ private:
   function_ref<void(BaseStorage *)> destructorFn;
 #endif
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace detail {
@@ -328,7 +328,7 @@ struct StorageUniquerImpl {
   /// Flag specifying if multi-threading is enabled within the uniquer.
   bool threadingIsEnabled = true;
 };
-} // end namespace detail
+} // namespace detail
 } // namespace mlir
 
 StorageUniquer::StorageUniquer() : impl(new StorageUniquerImpl()) {}
index 11afe1e..63e0732 100644 (file)
@@ -549,7 +549,7 @@ struct DefaultTimingManagerOptions {
           clEnumValN(DisplayMode::Tree, "tree",
                      "display the results ina with a nested tree view"))};
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::ManagedStatic<DefaultTimingManagerOptions> options;
 
index 0c38fa5..9b7124e 100644 (file)
@@ -207,8 +207,8 @@ raw_ostream &operator<<(raw_ostream &os, Visibility visibility) {
   }
   return os;
 }
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 //===----------------------------------------------------------------------===//
 // ParentClass definitions
index dd71540..554b662 100644 (file)
@@ -110,7 +110,7 @@ struct PredNode {
   std::string prefix;
   std::string suffix;
 };
-} // end anonymous namespace
+} // namespace
 
 // Get a predicate tree node kind based on the kind used in the predicate
 // TableGen record.
@@ -131,7 +131,7 @@ static PredCombinerKind getPredCombinerKind(const Pred &pred) {
 namespace {
 // Substitution<pattern, replacement>.
 using Subst = std::pair<StringRef, StringRef>;
-} // end anonymous namespace
+} // namespace
 
 /// Perform the given substitutions on 'str' in-place.
 static void performSubstitutions(std::string &str,
index 062b882..3706d06 100644 (file)
@@ -67,8 +67,8 @@ private:
   llvm::DICompileUnit *compileUnit;
 };
 
-} // end namespace detail
-} // end namespace LLVM
-} // end namespace mlir
+} // namespace detail
+} // namespace LLVM
+} // namespace mlir
 
 #endif // MLIR_LIB_TARGET_LLVMIR_DEBUGTRANSLATION_H_
index f923367..776559c 100644 (file)
@@ -40,7 +40,7 @@ public:
     return failure();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerAMXDialectTranslation(DialectRegistry &registry) {
   registry.insert<amx::AMXDialect>();
index eb49a53..22ea731 100644 (file)
@@ -41,7 +41,7 @@ public:
     return failure();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerArmNeonDialectTranslation(DialectRegistry &registry) {
   registry.insert<arm_neon::ArmNeonDialect>();
index 27ce8a8..364e63d 100644 (file)
@@ -40,7 +40,7 @@ public:
     return failure();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerArmSVEDialectTranslation(DialectRegistry &registry) {
   registry.insert<arm_sve::ArmSVEDialect>();
index cc8800d..8d19f46 100644 (file)
@@ -471,7 +471,7 @@ public:
     return convertOperationImpl(*op, builder, moduleTranslation);
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerLLVMDialectTranslation(DialectRegistry &registry) {
   registry.insert<LLVM::LLVMDialect>();
index a45cd7a..4b5ca8f 100644 (file)
@@ -108,7 +108,7 @@ public:
     return success();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerNVVMDialectTranslation(DialectRegistry &registry) {
   registry.insert<NVVM::NVVMDialect>();
index f6f7be1..c8dd7fe 100644 (file)
@@ -492,7 +492,7 @@ public:
                    LLVM::ModuleTranslation &moduleTranslation) const final;
 };
 
-} // end namespace
+} // namespace
 
 /// Given an OpenACC MLIR operation, create the corresponding LLVM IR
 /// (including OpenACC runtime calls).
index d623dbb..96b7644 100644 (file)
@@ -900,7 +900,7 @@ public:
                    LLVM::ModuleTranslation &moduleTranslation) const final;
 };
 
-} // end namespace
+} // namespace
 
 /// Given an OpenMP MLIR operation, create the corresponding LLVM IR
 /// (including OpenMP runtime calls).
index 348424a..a0c61b8 100644 (file)
@@ -80,7 +80,7 @@ public:
     return success();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerROCDLDialectTranslation(DialectRegistry &registry) {
   registry.insert<ROCDL::ROCDLDialect>();
index ec8b5c1..f2ddc2a 100644 (file)
@@ -41,7 +41,7 @@ public:
     return failure();
   }
 };
-} // end namespace
+} // namespace
 
 void mlir::registerX86VectorDialectTranslation(DialectRegistry &registry) {
   registry.insert<x86vector::X86VectorDialect>();
index 681e244..c987198 100644 (file)
@@ -150,9 +150,9 @@ private:
   MLIRContext &context;
 };
 
-} // end namespace detail
-} // end namespace LLVM
-} // end namespace mlir
+} // namespace detail
+} // namespace LLVM
+} // namespace mlir
 
 LLVM::TypeFromLLVMIRTranslator::TypeFromLLVMIRTranslator(MLIRContext &context)
     : impl(new detail::TypeFromLLVMIRTranslatorImpl(context)) {}
index cb62956..aadd72a 100644 (file)
@@ -170,9 +170,9 @@ private:
   /// type instead of creating a new type.
   llvm::DenseMap<Type, llvm::Type *> knownTranslations;
 };
-} // end namespace detail
-} // end namespace LLVM
-} // end namespace mlir
+} // namespace detail
+} // namespace LLVM
+} // namespace mlir
 
 LLVM::TypeToLLVMIRTranslator::TypeToLLVMIRTranslator(llvm::LLVMContext &context)
     : impl(new detail::TypeToLLVMIRTranslatorImpl(context)) {}
index ee4f5d5..64a005d 100644 (file)
@@ -418,7 +418,7 @@ private:
   std::function<bool(Value)> isSmallAlloc;
 };
 
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::createBufferHoistingPass() {
   return std::make_unique<BufferHoistingPass>();
index 8ae4436..2abdccc 100644 (file)
@@ -136,7 +136,7 @@ struct BufferResultsToOutParamsPass
       return signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::createBufferResultsToOutParamsPass() {
   return std::make_unique<BufferResultsToOutParamsPass>();
index c7b09b5..bc265a4 100644 (file)
@@ -49,7 +49,7 @@ struct SimpleOperationInfo : public llvm::DenseMapInfo<Operation *> {
         OperationEquivalence::IgnoreLocations);
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace {
 /// Simple common sub-expression elimination.
@@ -91,7 +91,7 @@ private:
   std::vector<Operation *> opsToErase;
   DominanceInfo *domInfo = nullptr;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Attempt to eliminate a redundant operation.
 LogicalResult CSE::simplifyOperation(ScopedMapTy &knownValues, Operation *op,
index 22cc32f..745477d 100644 (file)
@@ -52,7 +52,7 @@ struct Canonicalizer : public CanonicalizerBase<Canonicalizer> {
   GreedyRewriteConfig config;
   FrozenRewritePatternSet patterns;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Create a Canonicalizer pass.
 std::unique_ptr<Pass> mlir::createCanonicalizerPass() {
index 03219c4..32b12e7 100644 (file)
@@ -123,7 +123,7 @@ private:
   /// A symbol table to use when resolving call lookups.
   SymbolTableCollection &symbolTable;
 };
-} // end anonymous namespace
+} // namespace
 
 CGUseList::CGUseList(Operation *op, CallGraph &cg,
                      SymbolTableCollection &symbolTable)
@@ -279,7 +279,7 @@ private:
   std::vector<CallGraphNode *> nodes;
   llvm::scc_iterator<const CallGraph *> &parentIterator;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Run a given transformation over the SCCs of the callgraph in a bottom up
 /// traversal.
@@ -311,7 +311,7 @@ struct ResolvedCall {
   CallOpInterface call;
   CallGraphNode *sourceNode, *targetNode;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Collect all of the callable operations within the given range of blocks. If
 /// `traverseNestedCGNodes` is true, this will also collect call operations
@@ -559,7 +559,7 @@ private:
   /// during optimization.
   SmallVector<llvm::StringMap<OpPassManager>, 8> opPipelines;
 };
-} // end anonymous namespace
+} // namespace
 
 InlinerPass::InlinerPass() : InlinerPass(defaultInlinerOptPipeline) {}
 InlinerPass::InlinerPass(std::function<void(OpPassManager &)> defaultPipeline)
index 4e77b1d..f23a3ee 100644 (file)
@@ -140,7 +140,7 @@ struct LocationSnapshotPass
   /// The printing flags to use when creating the snapshot.
   OpPrintingFlags flags;
 };
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<Pass> mlir::createLocationSnapshotPass(OpPrintingFlags flags,
                                                        StringRef fileName,
index 24ef03b..1a3de13 100644 (file)
@@ -59,7 +59,7 @@ struct LoopFusion : public AffineLoopFusionBase<LoopFusion> {
   void runOnFunction() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<OperationPass<FuncOp>>
 mlir::createLoopFusionPass(unsigned fastMemorySpace,
@@ -726,7 +726,7 @@ void gatherEscapingMemrefs(unsigned id, MemRefDependenceGraph *mdg,
   }
 }
 
-} // end anonymous namespace
+} // namespace
 
 // Initializes the data dependence graph by walking operations in 'f'.
 // Assigns each node in the graph a node id based on program order in 'f'.
@@ -1972,7 +1972,7 @@ public:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 void LoopFusion::runOnFunction() {
   MemRefDependenceGraph g;
index 2bef6c5..71a2410 100644 (file)
@@ -32,7 +32,7 @@ struct LoopInvariantCodeMotion
     : public LoopInvariantCodeMotionBase<LoopInvariantCodeMotion> {
   void runOnOperation() override;
 };
-} // end anonymous namespace
+} // namespace
 
 // Checks whether the given op can be hoisted by checking that
 // - the op and any of its contained operations do not depend on SSA values
index c3fa7fe..b890bc7 100644 (file)
@@ -41,7 +41,7 @@ struct NormalizeMemRefs : public NormalizeMemRefsBase<NormalizeMemRefs> {
   Operation *createOpResultsNormalized(FuncOp funcOp, Operation *oldOp);
 };
 
-} // end anonymous namespace
+} // namespace
 
 std::unique_ptr<OperationPass<ModuleOp>> mlir::createNormalizeMemRefsPass() {
   return std::make_unique<NormalizeMemRefs>();
index 06ec234..9b84619 100644 (file)
@@ -21,11 +21,11 @@ void registerDialect(DialectRegistry &registry);
 
 namespace arith {
 class ArithmeticDialect;
-} // end namespace arith
+} // namespace arith
 
 namespace memref {
 class MemRefDialect;
-} // end namespace memref
+} // namespace memref
 
 namespace bufferization {
 class BufferizationDialect;
@@ -34,6 +34,6 @@ class BufferizationDialect;
 #define GEN_PASS_CLASSES
 #include "mlir/Transforms/Passes.h.inc"
 
-} // end namespace mlir
+} // namespace mlir
 
 #endif // TRANSFORMS_PASSDETAIL_H_
index 500203b..1613ecc 100644 (file)
@@ -38,7 +38,7 @@ struct PipelineDataTransfer
   std::vector<AffineForOp> forOps;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Creates a pass to pipeline explicit movement of data across levels of the
 /// memory hierarchy.
index 3d725d7..7a2f994 100644 (file)
@@ -239,7 +239,7 @@ namespace {
 struct SCCP : public SCCPBase<SCCP> {
   void runOnOperation() override;
 };
-} // end anonymous namespace
+} // namespace
 
 void SCCP::runOnOperation() {
   Operation *op = getOperation();
index 39db964..99e1151 100644 (file)
@@ -18,7 +18,7 @@ namespace {
 struct StripDebugInfo : public StripDebugInfoBase<StripDebugInfo> {
   void runOnOperation() override;
 };
-} // end anonymous namespace
+} // namespace
 
 void StripDebugInfo::runOnOperation() {
   auto unknownLoc = UnknownLoc::get(&getContext());
index 2c65d63..0319cb9 100644 (file)
@@ -28,7 +28,7 @@ struct SymbolDCE : public SymbolDCEBase<SymbolDCE> {
                                 bool symbolTableIsHidden,
                                 DenseSet<Operation *> &liveSymbols);
 };
-} // end anonymous namespace
+} // namespace
 
 void SymbolDCE::runOnOperation() {
   Operation *symbolTableOp = getOperation();
index ad34eeb..97c6a4d 100644 (file)
@@ -147,7 +147,7 @@ private:
   /// Current value mappings.
   BlockAndValueMapping mapping;
 };
-} // end anonymous namespace
+} // namespace
 
 Value ConversionValueMapping::lookupOrDefault(Value from,
                                               Type desiredType) const {
@@ -408,7 +408,7 @@ private:
   /// The original output type. This is only used for argument conversions.
   Type origOutputType;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Build an unresolved materialization operation given an output type and set
 /// of input operands.
@@ -593,7 +593,7 @@ struct ArgConverter {
   /// An ordered set of unresolved materializations during conversion.
   SmallVectorImpl<UnresolvedMaterialization> &unresolvedMaterializations;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Rewrite Application
@@ -1018,8 +1018,8 @@ struct ConversionPatternRewriterImpl {
   llvm::ScopedPrinter logger{llvm::dbgs()};
 #endif
 };
-} // end namespace detail
-} // end namespace mlir
+} // namespace detail
+} // namespace mlir
 
 /// Detach any operations nested in the given operation from their parent
 /// blocks, and erase the given operation. This can be used when the nested
@@ -2396,7 +2396,7 @@ private:
   /// *not* to be legalizable to the target.
   DenseSet<Operation *> *trackedOps;
 };
-} // end anonymous namespace
+} // namespace
 
 LogicalResult OperationConverter::convert(ConversionPatternRewriter &rewriter,
                                           Operation *op) {
@@ -3086,7 +3086,7 @@ struct FunctionLikeSignatureConversion : public ConversionPattern {
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void mlir::populateFunctionLikeTypeConversionPattern(
     StringRef functionLikeOpName, RewritePatternSet &patterns,
index 5e9f6dd..e9ea661 100644 (file)
@@ -101,7 +101,7 @@ private:
   llvm::ScopedPrinter logger{llvm::dbgs()};
 #endif
 };
-} // end anonymous namespace
+} // namespace
 
 GreedyPatternRewriteDriver::GreedyPatternRewriteDriver(
     MLIRContext *ctx, const FrozenRewritePatternSet &patterns,
@@ -436,7 +436,7 @@ private:
   bool opErasedViaPatternRewrites = false;
 };
 
-} // anonymous namespace
+} // namespace
 
 /// Performs the rewrites and folding only on `op`. The simplification
 /// converges if the op is erased as a result of being folded, replaced, or
@@ -543,7 +543,7 @@ private:
   llvm::SmallDenseSet<Operation *, 4> strictModeFilteredOps;
 };
 
-} // end anonymous namespace
+} // namespace
 
 /// Performs the specified rewrites on `ops` while also trying to fold these ops
 /// as well as any other ops that were in turn created due to these rewrite
index d7d8661..023b1d6 100644 (file)
@@ -417,7 +417,7 @@ struct BlockEquivalenceData {
   /// produced within the block before this operation.
   DenseMap<Operation *, unsigned> opOrderIndex;
 };
-} // end anonymous namespace
+} // namespace
 
 BlockEquivalenceData::BlockEquivalenceData(Block *block)
     : block(block), hash(0) {
@@ -477,7 +477,7 @@ private:
   /// replaced by arguments when the cluster gets merged.
   std::set<std::pair<int, int>> operandsToMerge;
 };
-} // end anonymous namespace
+} // namespace
 
 LogicalResult BlockMergeCluster::addToCluster(BlockEquivalenceData &blockData) {
   if (leaderData.hash != blockData.hash)
index deb58cd..b549a0b 100644 (file)
@@ -33,7 +33,7 @@ struct TestRegistration {
     test_detail::tests().push_back(func);
   }
 };
-} // end namespace test_detail
+} // namespace test_detail
 
 /// Declares a test function with the given name and adds it to the list of
 /// known tests.  The body of the function must follow immediately.  Example:
index af550d4..2b4899e 100644 (file)
@@ -79,7 +79,7 @@ struct TestAliasAnalysisPass
     llvm::errs() << ": " << result << "\n";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Testing ModRefResult
@@ -125,7 +125,7 @@ struct TestAliasAnalysisModRefPass
     llvm::errs() << ": " << result << "\n";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Pass Registration
index eff356c..e945e55 100644 (file)
@@ -29,7 +29,7 @@ struct TestCallGraphPass
     getAnalysis<CallGraph>().print(llvm::errs());
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 94d0e96..287f742 100644 (file)
@@ -30,7 +30,7 @@ struct TestLivenessPass : public PassWrapper<TestLivenessPass, FunctionPass> {
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index bbc15c6..dde27f3 100644 (file)
@@ -75,7 +75,7 @@ struct TestMatchReductionPass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 974cea2..e49f986 100644 (file)
@@ -36,7 +36,7 @@ struct TestMemRefBoundCheck
   void runOnFunction() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 void TestMemRefBoundCheck::runOnFunction() {
   getFunction().walk([](Operation *opInst) {
index 3be9dc1..d3e6788 100644 (file)
@@ -36,7 +36,7 @@ struct TestMemRefDependenceCheck
   void runOnFunction() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 // Returns a result string which represents the direction vector (if there was
 // a dependence), returns the string "false" otherwise.
index 39e60db..8142024 100644 (file)
@@ -23,7 +23,7 @@ struct TestMemRefStrideCalculation
   }
   void runOnFunction() override;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Traverse AllocOp and compute strides of each MemRefType independently.
 void TestMemRefStrideCalculation::runOnFunction() {
index 1eb73b0..5684096 100644 (file)
@@ -52,7 +52,7 @@ struct TestNumberOfOperationExecutionsPass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 962df76..dbdcfd9 100644 (file)
@@ -39,7 +39,7 @@ struct TestTopologicalSortPass
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 332f1fe..df74cf7 100644 (file)
@@ -53,7 +53,7 @@ private:
       llvm::cl::init(false)};
 };
 
-} // end anonymous namespace
+} // namespace
 
 void TestAffineDataCopy::runOnFunction() {
   // Gather all AffineForOps by loop depth.
index bad3732..a0e0082 100644 (file)
@@ -28,7 +28,7 @@ struct TestAffineLoopParametricTiling
   }
   void runOnFunction() override;
 };
-} // end anonymous namespace
+} // namespace
 
 /// Checks if the function enclosing the loop nest has any arguments passed to
 /// it, which can be used as tiling parameters. Assumes that atleast 'n'
index 22df6da..542e109 100644 (file)
@@ -38,7 +38,7 @@ struct TestAffineLoopUnswitching
   constexpr static unsigned kMaxIterations = 5;
 };
 
-} // end anonymous namespace
+} // namespace
 
 void TestAffineLoopUnswitching::runOnFunction() {
   // Each hoisting invalidates a lot of IR around. Just stop the walk after the
index 5205b25..8a88d15 100644 (file)
@@ -44,7 +44,7 @@ private:
                                 llvm::cl::OneOrMore, llvm::cl::CommaSeparated};
 };
 
-} // end anonymous namespace
+} // namespace
 
 void TestLoopPermutation::runOnFunction() {
 
index b2f0ef9..d9dfe7b 100644 (file)
@@ -91,7 +91,7 @@ struct VectorizerTestPass
   void testVecAffineLoopNest();
 };
 
-} // end anonymous namespace
+} // namespace
 
 void VectorizerTestPass::testVectorShapeRatio(llvm::raw_ostream &outs) {
   auto f = getFunction();
index 6d9c3be..6c3e6ff 100644 (file)
@@ -48,7 +48,7 @@ class TestGpuMemoryPromotionPass
     }
   }
 };
-} // end namespace
+} // namespace
 
 namespace mlir {
 void registerTestGpuMemoryPromotionPass() {
index 9424046..15ff86c 100644 (file)
@@ -206,7 +206,7 @@ void TestLinalgCodegenStrategy::runStrategy(
   if (failed(runPipeline(dynamicPM, funcOp)))
     return signalPassFailure();
 }
-} // end anonymous namespace
+} // namespace
 
 // For now, just assume it is the zero of type.
 // In the future, it should be the zero of type + op.
index 2507ae8..0aa5cfd 100644 (file)
@@ -38,7 +38,7 @@ struct TestLinalgHoisting
       llvm::cl::desc("Test hoisting transfer_read/transfer_write pairs"),
       llvm::cl::init(false)};
 };
-} // end anonymous namespace
+} // namespace
 
 void TestLinalgHoisting::runOnFunction() {
   if (testHoistRedundantTransfers) {
index 20219de..05f6448 100644 (file)
@@ -129,7 +129,7 @@ struct TestLinalgTransforms
                      "tiled_loop"),
       llvm::cl::init("for")};
 };
-} // end anonymous namespace
+} // namespace
 
 static void applyPatterns(FuncOp funcOp) {
   MLIRContext *ctx = funcOp.getContext();
index 2b73956..9977065 100644 (file)
@@ -32,7 +32,7 @@ struct TestMathAlgebraicSimplificationPass
     return "Test math algebraic simplification";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void TestMathAlgebraicSimplificationPass::runOnFunction() {
   RewritePatternSet patterns(&getContext());
index ef43d10..bd5e09d 100644 (file)
@@ -23,7 +23,7 @@ struct TestExpandTanhPass
   StringRef getArgument() const final { return "test-expand-tanh"; }
   StringRef getDescription() const final { return "Test expanding tanh"; }
 };
-} // end anonymous namespace
+} // namespace
 
 void TestExpandTanhPass::runOnFunction() {
   RewritePatternSet patterns(&getContext());
index d1aa779..6f34215 100644 (file)
@@ -48,7 +48,7 @@ struct TestMathPolynomialApproximationPass
                      "X86Vector dialect"),
       llvm::cl::init(false)};
 };
-} // end anonymous namespace
+} // namespace
 
 void TestMathPolynomialApproximationPass::runOnFunction() {
   RewritePatternSet patterns(&getContext());
index f68cf63..09c6c3f 100644 (file)
@@ -28,7 +28,7 @@ struct PrintOpAvailability
     return "Test SPIR-V op availability";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void PrintOpAvailability::runOnFunction() {
   auto f = getFunction();
@@ -140,7 +140,7 @@ struct ConvertToSubgroupBallot : public RewritePattern {
   LogicalResult matchAndRewrite(Operation *op,
                                 PatternRewriter &rewriter) const override;
 };
-} // end anonymous namespace
+} // namespace
 
 void ConvertToTargetEnv::runOnFunction() {
   MLIRContext *context = &getContext();
index 03ab46a..5bfec82 100644 (file)
@@ -25,7 +25,7 @@ struct ReportShapeFnPass
     return "Test pass to report associated shape functions";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void ReportShapeFnPass::runOnOperation() {
   auto module = getOperation();
index 8804df4..c6d61d9 100644 (file)
@@ -88,7 +88,7 @@ struct TestDecomposeCallGraphTypes
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index cb09ea4..73d4243 100644 (file)
@@ -224,7 +224,7 @@ public:
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // TestDialect
@@ -374,7 +374,7 @@ struct FoldToCallOpPattern : public OpRewritePattern<FoldToCallOp> {
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void FoldToCallOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                MLIRContext *context) {
@@ -855,7 +855,7 @@ struct TestRemoveOpWithInnerOps
     return success();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 void TestOpWithRegionPattern::getCanonicalizationPatterns(
     RewritePatternSet &results, MLIRContext *context) {
@@ -972,7 +972,7 @@ namespace {
 struct TestResource : public SideEffects::Resource::Base<TestResource> {
   StringRef getName() final { return "<Test>"; }
 };
-} // end anonymous namespace
+} // namespace
 
 static void testSideEffectOpGetEffect(
     Operation *op,
index cd77d62..184158c 100644 (file)
@@ -50,6 +50,6 @@ class RewritePatternSet;
 namespace test {
 void registerTestDialect(::mlir::DialectRegistry &registry);
 void populateTestReductionPatterns(::mlir::RewritePatternSet &patterns);
-} // end namespace test
+} // namespace test
 
 #endif // MLIR_TESTDIALECT_H
index ed84b8c..e2e054c 100644 (file)
@@ -63,7 +63,7 @@ static Attribute OpMTest(PatternRewriter &rewriter, Value val) {
 
 namespace {
 #include "TestPatterns.inc"
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Test Reduce Pattern Interface
@@ -139,7 +139,7 @@ struct TestPatternDriver : public PassWrapper<TestPatternDriver, FunctionPass> {
     (void)applyPatternsAndFoldGreedily(getFunction(), std::move(patterns));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ReturnType Driver.
@@ -225,7 +225,7 @@ struct TestReturnTypeDriver
     }
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace {
 struct TestDerivedAttributeDriver
@@ -236,7 +236,7 @@ struct TestDerivedAttributeDriver
   }
   void runOnFunction() override;
 };
-} // end anonymous namespace
+} // namespace
 
 void TestDerivedAttributeDriver::runOnFunction() {
   getFunction().walk([](DerivedAttributeOpInterface dOp) {
@@ -743,7 +743,7 @@ struct TestLegalizePatternDriver
   /// The mode of conversion to use.
   ConversionMode mode;
 };
-} // end anonymous namespace
+} // namespace
 
 static llvm::cl::opt<TestLegalizePatternDriver::ConversionMode>
     legalizerConversionMode(
@@ -871,7 +871,7 @@ struct TestRemappedValue
     }
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Test patterns without a specific root operation kind
@@ -911,7 +911,7 @@ struct TestUnknownRootOpDriver
       signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Test type conversions
@@ -1127,7 +1127,7 @@ struct TestTypeConversionDriver
       signalPassFailure();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Test Block Merging
index bb78a4b..a19c3b1 100644 (file)
@@ -39,7 +39,7 @@ struct TestTraitFolder : public PassWrapper<TestTraitFolder, FunctionPass> {
                                        RewritePatternSet(&getContext()));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTestTraitsPass() { PassRegistration<TestTraitFolder>(); }
index 0b05003..91650af 100644 (file)
@@ -69,7 +69,7 @@ inline mlir::AsmPrinter &operator<<(mlir::AsmPrinter &printer,
   return printer << param.value;
 }
 
-} // end namespace mlir
+} // namespace mlir
 
 #include "TestTypeInterfaces.h.inc"
 
index 99bf14b..8a30446 100644 (file)
@@ -197,7 +197,7 @@ void TosaTestQuantUtilAPI::runOnFunction() {
   (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
 }
 
-} // anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTosaTestQuantUtilAPIPass() {
index 4d67e07..f7e13bc 100644 (file)
@@ -583,7 +583,7 @@ struct TestVectorReduceToContractPatternsPatterns
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index f7371f8..96c162d 100644 (file)
@@ -50,7 +50,7 @@ struct TestElementsAttrInterface
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index bb76107..8bff82a 100644 (file)
@@ -57,7 +57,7 @@ struct TestDiagnosticFilterPass
       llvm::cl::desc("Specifies the diagnostic file name filters.")};
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index ccc2ffe..b49b73c 100644 (file)
@@ -120,7 +120,7 @@ struct TestDominancePass : public PassWrapper<TestDominancePass, FunctionPass> {
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index a2d0c79..556ee05 100644 (file)
@@ -149,7 +149,7 @@ struct TestFuncSetType
     }
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTestFunc() {
index bafcdcb..823c607 100644 (file)
@@ -40,7 +40,7 @@ struct TestTypeInterfaces
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 98b2033..a4007cd 100644 (file)
@@ -22,7 +22,7 @@ struct TestMatchers : public PassWrapper<TestMatchers, FunctionPass> {
     return "Test C++ pattern matchers.";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 // This could be done better but is not worth the variadic template trouble.
 template <typename Matcher>
index 35d31a0..ea268bf 100644 (file)
@@ -82,7 +82,7 @@ struct TestOpaqueLoc
   }
 };
 
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 0ef6dfe..dc655ab 100644 (file)
@@ -46,7 +46,7 @@ struct TestOperationEqualPass
       llvm::outs() << " compares NOT equals!\n";
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTestOperationEqualPass() {
index cff3619..6fa37b9 100644 (file)
@@ -63,7 +63,7 @@ struct TestPrintDefUsePass
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTestPrintDefUsePass() { PassRegistration<TestPrintDefUsePass>(); }
index 7149435..e2841fe 100644 (file)
@@ -88,7 +88,7 @@ struct TestPrintNestingPass
     return llvm::outs();
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerTestPrintNestingPass() {
index 68b419b..d56414d 100644 (file)
@@ -69,7 +69,7 @@ struct SideEffectsPass
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerSideEffectTestPasses() { PassRegistration<SideEffectsPass>(); }
index 22ff2ad..914dd25 100644 (file)
@@ -115,7 +115,7 @@ struct SymbolReplacementPass
     });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 void registerSymbolTestPasses() {
index c92ccc3..c662d75 100644 (file)
@@ -161,7 +161,7 @@ struct TestIRVisitorsPass
     testNoSkipErasureCallbacks(op);
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 0202a5b..243bd8b 100644 (file)
@@ -98,7 +98,7 @@ struct TestStatisticPass
     getOperation()->walk([&](Operation *) { ++opCount; });
   }
 };
-} // end anonymous namespace
+} // namespace
 
 static void testNestedPipeline(OpPassManager &pm) {
   // Nest a module pipeline that contains:
index 5893020..77e8fc5 100644 (file)
@@ -29,7 +29,7 @@ struct TestReducer : public PassWrapper<TestReducer, OperationPass<>> {
   void runOnOperation() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 void TestReducer::runOnOperation() {
   getOperation()->walk([&](Operation *op) {
index 159c623..1f893e6 100644 (file)
@@ -109,7 +109,7 @@ struct TestPDLByteCodePass
                                        std::move(patternList));
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index e9f78b3..ef5c995 100644 (file)
@@ -26,7 +26,7 @@ struct TestConstantFold : public PassWrapper<TestConstantFold, FunctionPass> {
   void foldOperation(Operation *op, OperationFolder &helper);
   void runOnFunction() override;
 };
-} // end anonymous namespace
+} // namespace
 
 void TestConstantFold::foldOperation(Operation *op, OperationFolder &helper) {
   auto processGeneratedConstants = [this](Operation *op) {
index 3a761fb..f4ccede 100644 (file)
@@ -64,7 +64,7 @@ struct Inliner : public PassWrapper<Inliner, FunctionPass> {
     }
   }
 };
-} // end anonymous namespace
+} // namespace
 
 namespace mlir {
 namespace test {
index 83b3e4f..380d4e6 100644 (file)
@@ -49,7 +49,7 @@ struct TestLoopFusion : public PassWrapper<TestLoopFusion, FunctionPass> {
   void runOnFunction() override;
 };
 
-} // end anonymous namespace
+} // namespace
 
 // Run fusion dependence check on 'loops[i]' and 'loops[j]' at loop depths
 // in range ['loopDepth' + 1, 'maxLoopDepth'].
index ec2188b..34c8588 100644 (file)
@@ -9,7 +9,7 @@ include "mlir/IR/OpBase.td"
 // DECL: namespace mlir {
 // DECL: class AsmParser;
 // DECL: class AsmPrinter;
-// DECL: } // end namespace mlir
+// DECL: } // namespace mlir
 
 // DEF: #ifdef GET_ATTRDEF_LIST
 // DEF: #undef GET_ATTRDEF_LIST
index 4b6a783..2ec3f65 100644 (file)
@@ -45,7 +45,7 @@ def AttrA : TestAttr<"AttrA"> {
 // ATTR:     return;
 // ATTR: }
 
-// ATTR: } // end namespace test
+// ATTR: } // namespace test
 
 def TypeA : TestType<"TypeA"> {
   let mnemonic = "type_a";
@@ -73,4 +73,4 @@ def TypeA : TestType<"TypeA"> {
 // TYPE:     return;
 // TYPE: }
 
-// TYPE: } // end namespace test
+// TYPE: } // namespace test
index 7bbbf5a..0e4ee23 100644 (file)
@@ -9,7 +9,7 @@ include "mlir/IR/OpBase.td"
 // DECL: namespace mlir {
 // DECL: class AsmParser;
 // DECL: class AsmPrinter;
-// DECL: } // end namespace mlir
+// DECL: } // namespace mlir
 
 // DEF: #ifdef GET_TYPEDEF_LIST
 // DEF: #undef GET_TYPEDEF_LIST
index 8e245fc..eac8e56 100644 (file)
@@ -173,7 +173,7 @@ private:
   /// The prefix/suffix of the TableGen def name, either "Attr" or "Type".
   StringRef defType;
 };
-} // end anonymous namespace
+} // namespace
 
 DefGen::DefGen(const AttrOrTypeDef &def)
     : def(def), params(def.getParameters()), defCls(def.getCppClassName()),
@@ -651,7 +651,7 @@ struct TypeDefGenerator : public DefGenerator {
       : DefGenerator(records.getAllDerivedDefinitions("TypeDef"), os, "Type",
                      "Type", /*isAttrGenerator=*/false) {}
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // GEN: Declarations
@@ -663,7 +663,7 @@ static const char *const typeDefDeclHeader = R"(
 namespace mlir {
 class AsmParser;
 class AsmPrinter;
-} // end namespace mlir
+} // namespace mlir
 )";
 
 bool DefGenerator::emitDecls(StringRef selectedDialect) {
index 94e81f1..22b9b36 100644 (file)
@@ -152,7 +152,7 @@ public:
   using Base::Base;
 };
 
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Format Strings
@@ -268,7 +268,7 @@ private:
   bool shouldEmitSpace;
   bool lastWasPunctuation;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // ParserGen
@@ -559,7 +559,7 @@ private:
   /// Seen attribute or type parameters.
   llvm::BitVector seenParams;
 };
-} // end anonymous namespace
+} // namespace
 
 FailureOr<AttrOrTypeFormat> FormatParser::parse() {
   std::vector<std::unique_ptr<Element>> elements;
index 6f24de5..c371aee 100644 (file)
@@ -25,7 +25,7 @@ void generateAttrOrTypeFormat(const AttrOrTypeDef &def, MethodBody &parser,
 /// E.g. 'value' -> 'getValue'.
 std::string getParameterAccessorName(llvm::StringRef name);
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
index 33c15fb..de596b4 100644 (file)
@@ -41,7 +41,7 @@ namespace {
 using DialectFilterIterator =
     llvm::filter_iterator<ArrayRef<llvm::Record *>::iterator,
                           std::function<bool(const llvm::Record *)>>;
-} // end anonymous namespace
+} // namespace
 
 /// Given a set of records for a T, filter the ones that correspond to
 /// the given dialect.
index 3a43476..b5c4419 100644 (file)
@@ -21,7 +21,7 @@
 
 namespace llvm {
 class SourceMgr;
-} // end namespace llvm
+} // namespace llvm
 
 namespace mlir {
 namespace tblgen {
@@ -158,7 +158,7 @@ bool isValidLiteral(StringRef value,
 /// Whether a failure in parsing the assembly format should be a fatal error.
 extern llvm::cl::opt<bool> formatErrorIsFatal;
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRTBLGEN_FORMATGEN_H_
index 5258bd1..b0558a0 100644 (file)
@@ -43,7 +43,7 @@ private:
   ParentClass &parent;
 };
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRTBLGEN_OPCLASS_H_
index f845845..f84646c 100644 (file)
@@ -260,7 +260,7 @@ private:
   // True if code is being generate for an op. False for an adaptor.
   const bool emitForOp;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Op emitter
@@ -446,7 +446,7 @@ private:
   const StaticVerifierFunctionEmitter &staticVerifierEmitter;
 };
 
-} // end anonymous namespace
+} // namespace
 
 // Populate the format context `ctx` with substitutions of attributes, operands
 // and results.
@@ -2539,7 +2539,7 @@ private:
   Class adaptor;
   StaticVerifierFunctionEmitter &staticVerifierEmitter;
 };
-} // end anonymous namespace
+} // namespace
 
 OpOperandAdaptorEmitter::OpOperandAdaptorEmitter(
     const Operator &op, StaticVerifierFunctionEmitter &staticVerifierEmitter)
index 0878551..4223c2d 100644 (file)
@@ -134,7 +134,7 @@ using ResultVariable =
 /// This class represents a variable that refers to a successor.
 using SuccessorVariable =
     VariableElement<NamedSuccessor, Element::Kind::SuccessorVariable>;
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // DirectiveElement
@@ -263,7 +263,7 @@ private:
   /// The spelling of the literal for this element.
   StringRef literal;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // WhitespaceElement
@@ -306,7 +306,7 @@ public:
 private:
   bool value;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // OptionalElement
@@ -354,7 +354,7 @@ private:
   /// WhitespaceElement).
   unsigned parseStart;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // OperationFormat
@@ -468,7 +468,7 @@ struct OperationFormat {
   SmallVector<const NamedAttribute *, 8> usedAttributes;
   llvm::StringSet<> inferredAttributes;
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Parser Gen
@@ -795,7 +795,7 @@ enum class ArgumentLengthKind {
   /// The argument is a single element, i.e. always represents 1 element.
   Single
 };
-} // end anonymous namespace
+} // namespace
 
 /// Get the length kind for the given constraint.
 static ArgumentLengthKind
@@ -2305,7 +2305,7 @@ private:
   llvm::DenseSet<const NamedRegion *> seenRegions;
   llvm::DenseSet<const NamedSuccessor *> seenSuccessors;
 };
-} // end anonymous namespace
+} // namespace
 
 LogicalResult FormatParser::parse() {
   llvm::SMLoc loc = curToken.getLoc();
index ebafec0..88dbc99 100644 (file)
@@ -22,7 +22,7 @@ class Operator;
 // Generate the assembly format for the given operator.
 void generateOpFormat(const Operator &constOp, OpClass &opClass);
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif // MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_
index d4b35d2..166d247 100644 (file)
@@ -24,7 +24,7 @@ namespace tblgen {
 std::vector<llvm::Record *>
 getRequestedOpDefinitions(const llvm::RecordKeeper &recordKeeper);
 
-} // end namespace tblgen
-} // end namespace mlir
+} // namespace tblgen
+} // namespace mlir
 
 #endif //  MLIR_TOOLS_MLIRTBLGEN_OPGENHELPERS_H_
index b28cfbb..366a236 100644 (file)
@@ -148,7 +148,7 @@ struct TypeInterfaceGenerator : public InterfaceGenerator {
                             "(*static_cast<const ConcreteType *>(this))");
   }
 };
-} // end anonymous namespace
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // GEN: Interface definitions
@@ -443,7 +443,7 @@ void InterfaceGenerator::emitInterfaceDecl(Interface interface) {
   os << "template <typename " << valueTemplate << ">\n";
   os << "struct " << interface.getName() << "Trait;\n";
 
-  os << "\n} // end namespace detail\n";
+  os << "\n} // namespace detail\n";
 
   // Emit the main interface class declaration.
   os << llvm::formatv("class {0} : public ::mlir::{3}<{1}, detail::{2}> {\n"
@@ -570,7 +570,7 @@ struct InterfaceGenRegistration {
   std::string genDeclDesc, genDefDesc, genDocDesc;
   mlir::GenRegistration genDecls, genDefs, genDocs;
 };
-} // end anonymous namespace
+} // namespace
 
 static InterfaceGenRegistration<AttrInterfaceGenerator> attrGen("attr",
                                                                 "attribute");
index 2a98497..0389219 100644 (file)
@@ -50,7 +50,7 @@ struct format_provider<mlir::tblgen::Pattern::IdentifierLine> {
     os << v.first << ":" << v.second;
   }
 };
-} // end namespace llvm
+} // namespace llvm
 
 //===----------------------------------------------------------------------===//
 // PatternEmitter
@@ -328,7 +328,7 @@ private:
   StaticVerifierFunctionEmitter staticVerifierEmitter;
 };
 
-} // end anonymous namespace
+} // namespace
 
 PatternEmitter::PatternEmitter(Record *pat, RecordOperatorMap *mapper,
                                raw_ostream &os, StaticMatcherHelper &helper)
index 0b58838..5d9b1af 100644 (file)
@@ -109,4 +109,4 @@ TEST_F(RootOrderingTest, contraction) {
   check(10, {{v[0], {}}, {v[2], v[0]}, {v[3], v[2]}, {v[1], v[3]}});
 }
 
-} // end namespace
+} // namespace
index 5125413..d308154 100644 (file)
@@ -169,4 +169,4 @@ TEST(QuantizationUtilsTest, convertRankedSparseAttrUniform) {
   EXPECT_EQ(firstValue.cast<IntegerAttr>().getInt(), 5);
 }
 
-} // end namespace
+} // namespace
index 1cb4d08..9ec6c1b 100644 (file)
@@ -198,7 +198,7 @@ protected:
   }
 };
 
-} // anonymous namespace
+} // namespace
 
 /// Vector addition of 2 vectors, i.e.:
 ///   a(i) = b(i) + c(i)
index f76ab45..b46fda3 100644 (file)
@@ -250,4 +250,4 @@ TEST(SparseElementsAttrTest, GetZero) {
   EXPECT_TRUE(zeroStringValue.getType() == stringTy);
 }
 
-} // end namespace
+} // namespace
index ddabec5..ca89e82 100644 (file)
@@ -142,4 +142,4 @@ TEST(Dialect, RepeatedInterfaceRegistrationDeath) {
 #endif
 }
 
-} // end namespace
+} // namespace
index b1c8038..a9b5547 100644 (file)
@@ -398,4 +398,4 @@ TEST(InterfaceAttachment, OperationDelayedContextAppend) {
   EXPECT_FALSE(isa<TestExternalOpInterface>(opI.getOperation()));
 }
 
-} // end namespace
+} // namespace
index 6510116..759c00a 100644 (file)
@@ -271,4 +271,4 @@ TEST(NamedAttrListTest, TestAppendAssign) {
   attrs.assign({});
   ASSERT_TRUE(attrs.empty());
 }
-} // end namespace
+} // namespace
index 9c2a93e..b46029f 100644 (file)
@@ -127,4 +127,4 @@ TEST(ShapedTypeTest, CloneVector) {
             VectorType::get(vectorNewShape, vectorNewType));
 }
 
-} // end namespace
+} // namespace
index 78356fd..292628a 100644 (file)
@@ -32,4 +32,4 @@ TEST(SubElementInterfaceTest, Nested) {
             ArrayRef<Attribute>({trueAttr, falseAttr, boolArrayAttr}));
 }
 
-} // end namespace
+} // namespace
index 90f8e76..ca7006c 100644 (file)
@@ -225,7 +225,7 @@ struct DLTestDialect : Dialect {
   }
 };
 
-} // end namespace
+} // namespace
 
 TEST(DataLayout, FallbackDefault) {
   const char *ir = R"MLIR(
index a5dcd18..f6c1c1e 100644 (file)
@@ -246,4 +246,4 @@ TEST(AnalysisManagerTest, DependentAnalysis2Ctors) {
   EXPECT_TRUE(an.ctor2called);
 }
 
-} // end namespace
+} // namespace
index a3f8e21..bd6ef04 100644 (file)
@@ -87,7 +87,7 @@ struct InvalidPass : Pass {
         *static_cast<const InvalidPass *>(this));
   }
 };
-} // anonymous namespace
+} // namespace
 
 TEST(PassManagerTest, InvalidPass) {
   MLIRContext context;
@@ -127,4 +127,4 @@ TEST(PassManagerTest, InvalidPass) {
   ASSERT_DEATH(pm.addPass(std::make_unique<InvalidPass>()), "");
 }
 
-} // end namespace
+} // namespace