AggressiveInstCombine.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- AggressiveInstCombine.h - AggressiveInstCombine pass -----*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. /// \file
  14. ///
  15. /// This file provides the primary interface to the aggressive instcombine pass.
  16. /// This pass is suitable for use in the new pass manager. For a pass that works
  17. /// with the legacy pass manager, please use
  18. /// \c createAggressiveInstCombinerPass().
  19. ///
  20. //===----------------------------------------------------------------------===//
  21. #ifndef LLVM_TRANSFORMS_AGGRESSIVEINSTCOMBINE_AGGRESSIVEINSTCOMBINE_H
  22. #define LLVM_TRANSFORMS_AGGRESSIVEINSTCOMBINE_AGGRESSIVEINSTCOMBINE_H
  23. #include "llvm/IR/PassManager.h"
  24. #include "llvm/Pass.h"
  25. namespace llvm {
  26. class AggressiveInstCombinePass
  27. : public PassInfoMixin<AggressiveInstCombinePass> {
  28. public:
  29. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  30. };
  31. //===----------------------------------------------------------------------===//
  32. //
  33. // AggressiveInstCombiner - Combine expression patterns to form expressions with
  34. // fewer, simple instructions. This pass does not modify the CFG.
  35. //
  36. FunctionPass *createAggressiveInstCombinerPass();
  37. }
  38. #endif
  39. #ifdef __GNUC__
  40. #pragma GCC diagnostic pop
  41. #endif