1 //===- WarnMissedTransforms.h -----------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
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"
23 // New pass manager boilerplate.
24 class WarnMissedTransformationsPass
25 : public PassInfoMixin
<WarnMissedTransformationsPass
> {
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