[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.
[llvm-complete.git] / include / llvm / Transforms / Scalar / WarnMissedTransforms.h
blob2d5942a3f569012a800d91e93c87e3c19645cad2
1 //===- WarnMissedTransforms.h -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Emit warnings if forced code transformations have not been performed.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_SCALAR_WARNMISSEDTRANSFORMS_H
14 #define LLVM_TRANSFORMS_SCALAR_WARNMISSEDTRANSFORMS_H
16 #include "llvm/IR/PassManager.h"
18 namespace llvm {
19 class Function;
20 class Loop;
21 class LPMUpdater;
23 // New pass manager boilerplate.
24 class WarnMissedTransformationsPass
25 : public PassInfoMixin<WarnMissedTransformationsPass> {
26 public:
27 explicit WarnMissedTransformationsPass() {}
29 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
32 // Legacy pass manager boilerplate.
33 Pass *createWarnMissedTransformationsPass();
34 void initializeWarnMissedTransformationsLegacyPass(PassRegistry &);
35 } // end namespace llvm
37 #endif // LLVM_TRANSFORMS_SCALAR_WARNMISSEDTRANSFORMS_H