diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2022-05-17 10:55:27 -0500 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2022-05-17 12:05:39 -0500 |
| commit | bd93df937a6441db4aff67191ca0bb486554c34b (patch) | |
| tree | c01bbb88269d582197145efe059165e5c077e2be /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | d92cec4c96eb85096cc64643764e1370fc08eafc (diff) | |
[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
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 111edc1b0ed8..2b6ae8584c54 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -346,7 +346,7 @@ static int computeSizeInBytes(const Type *T) { /// for generating GPU specific user nodes. /// /// @see GPUNodeBuilder::createUser -class GPUNodeBuilder : public IslNodeBuilder { +class GPUNodeBuilder final : public IslNodeBuilder { public: GPUNodeBuilder(PollyIRBuilder &Builder, ScopAnnotator &Annotator, const DataLayout &DL, LoopInfo &LI, ScalarEvolution &SE, @@ -409,7 +409,7 @@ private: GPUArch Arch; /// Class to free isl_ids. - class IslIdDeleter { + class IslIdDeleter final { public: void operator()(__isl_take isl_id *Id) { isl_id_free(Id); }; }; @@ -2558,7 +2558,7 @@ alignPwAffs(const std::vector<__isl_take isl_pw_aff *> &&PwAffs, } namespace { -class PPCGCodeGeneration : public ScopPass { +class PPCGCodeGeneration final : public ScopPass { public: static char ID; |
