]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
Merge llvm-project main llvmorg-13-init-16847-g88e66fa60ae5
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / include / llvm / Transforms / AggressiveInstCombine / AggressiveInstCombine.h
1 //===- AggressiveInstCombine.h - AggressiveInstCombine pass -----*- 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 /// \file
9 ///
10 /// This file provides the primary interface to the aggressive instcombine pass.
11 /// This pass is suitable for use in the new pass manager. For a pass that works
12 /// with the legacy pass manager, please use
13 /// \c createAggressiveInstCombinerPass().
14 ///
15 //===----------------------------------------------------------------------===//
16
17 #ifndef LLVM_TRANSFORMS_AGGRESSIVEINSTCOMBINE_AGGRESSIVEINSTCOMBINE_H
18 #define LLVM_TRANSFORMS_AGGRESSIVEINSTCOMBINE_AGGRESSIVEINSTCOMBINE_H
19
20 #include "llvm/IR/PassManager.h"
21
22 namespace llvm {
23
24 class AggressiveInstCombinePass
25     : public PassInfoMixin<AggressiveInstCombinePass> {
26
27 public:
28   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
29 };
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
39 #endif