[Polly] Mark classes as final by default. NFC.
authorMichael Kruse <llvm-project@meinersbur.de>
Tue, 17 May 2022 15:55:27 +0000 (10:55 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Tue, 17 May 2022 17:05:39 +0000 (12:05 -0500)
commitbd93df937a6441db4aff67191ca0bb486554c34b
treec01bbb88269d582197145efe059165e5c077e2be
parentd92cec4c96eb85096cc64643764e1370fc08eafc
[Polly] Mark classes as final by default. NFC.

This make is obivious that a class was not intended to be derived from.

NPM analysis pass can unfortunately not marked as final because they are
derived from a llvm::Checker<T> template internally by the NPM.

Also normalize the use of classes/structs
 * NPM passes are structs
 * Legacy passes are classes
 * structs that have methods and are not a visitor pattern are classes
 * structs have public inheritance by default, remove "public" keyword
 * Use typedef'ed type instead of inline forward declaration
66 files changed:
llvm/include/llvm/Analysis/DOTGraphTraitsPass.h
polly/include/polly/CodeGen/BlockGenerators.h
polly/include/polly/CodeGen/CodeGeneration.h
polly/include/polly/CodeGen/IRBuilder.h
polly/include/polly/CodeGen/IslAst.h
polly/include/polly/CodeGen/IslExprBuilder.h
polly/include/polly/CodeGen/LoopGeneratorsGOMP.h
polly/include/polly/CodeGen/LoopGeneratorsKMP.h
polly/include/polly/CodeGen/PerfMonitor.h
polly/include/polly/CodePreparation.h
polly/include/polly/DeLICM.h
polly/include/polly/DeadCodeElimination.h
polly/include/polly/DependenceInfo.h
polly/include/polly/ForwardOpTree.h
polly/include/polly/JSONExporter.h
polly/include/polly/ManualOptimizer.h
polly/include/polly/MatmulOptimizer.h
polly/include/polly/PolyhedralInfo.h
polly/include/polly/PruneUnprofitable.h
polly/include/polly/ScheduleOptimizer.h
polly/include/polly/ScheduleTreeTransform.h
polly/include/polly/ScopBuilder.h
polly/include/polly/ScopDetection.h
polly/include/polly/ScopDetectionDiagnostic.h
polly/include/polly/ScopGraphPrinter.h
polly/include/polly/ScopInfo.h
polly/include/polly/ScopPass.h
polly/include/polly/Simplify.h
polly/include/polly/Support/DumpFunctionPass.h
polly/include/polly/Support/DumpModulePass.h
polly/include/polly/Support/GICHelper.h
polly/include/polly/Support/ISLTools.h
polly/include/polly/Support/SCEVAffinator.h
polly/include/polly/Support/ScopHelper.h
polly/include/polly/Support/VirtualInstruction.h
polly/lib/Analysis/DependenceInfo.cpp
polly/lib/Analysis/PolyhedralInfo.cpp
polly/lib/Analysis/PruneUnprofitable.cpp
polly/lib/Analysis/ScopDetection.cpp
polly/lib/Analysis/ScopGraphPrinter.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/CodeGeneration.cpp
polly/lib/CodeGen/CodegenCleanup.cpp
polly/lib/CodeGen/IslAst.cpp
polly/lib/CodeGen/IslNodeBuilder.cpp
polly/lib/CodeGen/ManagedMemoryRewrite.cpp
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/lib/Exchange/JSONExporter.cpp
polly/lib/Support/DumpFunctionPass.cpp
polly/lib/Support/DumpModulePass.cpp
polly/lib/Support/RegisterPasses.cpp
polly/lib/Support/SCEVValidator.cpp
polly/lib/Support/ScopHelper.cpp
polly/lib/Transform/Canonicalization.cpp
polly/lib/Transform/CodePreparation.cpp
polly/lib/Transform/DeLICM.cpp
polly/lib/Transform/DeadCodeElimination.cpp
polly/lib/Transform/FlattenSchedule.cpp
polly/lib/Transform/ForwardOpTree.cpp
polly/lib/Transform/ManualOptimizer.cpp
polly/lib/Transform/MatmulOptimizer.cpp
polly/lib/Transform/MaximalStaticExpansion.cpp
polly/lib/Transform/ScheduleOptimizer.cpp
polly/lib/Transform/ScheduleTreeTransform.cpp
polly/lib/Transform/ScopInliner.cpp
polly/lib/Transform/Simplify.cpp