[llvm] fd71c95 - [IPO] Modernize OpenMPOptPass and OpenMPOptCGSCCPass (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 12:48:19 PDT 2023
Author: Kazu Hirata
Date: 2023-04-16T12:48:14-07:00
New Revision: fd71c95be3442d4bbae8bde74fa4a93109e41db9
URL: https://github.com/llvm/llvm-project/commit/fd71c95be3442d4bbae8bde74fa4a93109e41db9
DIFF: https://github.com/llvm/llvm-project/commit/fd71c95be3442d4bbae8bde74fa4a93109e41db9.diff
LOG: [IPO] Modernize OpenMPOptPass and OpenMPOptCGSCCPass (NFC)
Identified with readability-redundant-member-init.
Added:
Modified:
llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/OpenMPOpt.h b/llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
index 73aee47bfef50..3f9e846aed769 100644
--- a/llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
+++ b/llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
@@ -37,7 +37,7 @@ KernelSet getDeviceKernels(Module &M);
/// OpenMP optimizations pass.
class OpenMPOptPass : public PassInfoMixin<OpenMPOptPass> {
public:
- OpenMPOptPass() : LTOPhase(ThinOrFullLTOPhase::None) {}
+ OpenMPOptPass() = default;
OpenMPOptPass(ThinOrFullLTOPhase LTOPhase) : LTOPhase(LTOPhase) {}
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
@@ -48,7 +48,7 @@ class OpenMPOptPass : public PassInfoMixin<OpenMPOptPass> {
class OpenMPOptCGSCCPass : public PassInfoMixin<OpenMPOptCGSCCPass> {
public:
- OpenMPOptCGSCCPass() : LTOPhase(ThinOrFullLTOPhase::None) {}
+ OpenMPOptCGSCCPass() = default;
OpenMPOptCGSCCPass(ThinOrFullLTOPhase LTOPhase) : LTOPhase(LTOPhase) {}
PreservedAnalyses run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM,
More information about the llvm-commits
mailing list