1 //===- AggressiveInstCombine.h - AggressiveInstCombine pass -----*- 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 //===----------------------------------------------------------------------===//
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().
15 //===----------------------------------------------------------------------===//
17 #ifndef LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H
18 #define LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H
20 #include "llvm/IR/Function.h"
21 #include "llvm/IR/PassManager.h"
25 class AggressiveInstCombinePass
26 : public PassInfoMixin
<AggressiveInstCombinePass
> {
29 PreservedAnalyses
run(Function
&F
, FunctionAnalysisManager
&AM
);
32 //===----------------------------------------------------------------------===//
34 // AggressiveInstCombiner - Combine expression patterns to form expressions with
35 // fewer, simple instructions. This pass does not modify the CFG.
37 FunctionPass
*createAggressiveInstCombinerPass();