1 //===- AggressiveInstCombine.h - AggressiveInstCombine pass -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file provides the primary interface to the aggressive instcombine pass.
12 /// This pass is suitable for use in the new pass manager. For a pass that works
13 /// with the legacy pass manager, please use
14 /// \c createAggressiveInstCombinerPass().
16 //===----------------------------------------------------------------------===//
18 #ifndef LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H
19 #define LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H
21 #include "llvm/IR/Function.h"
22 #include "llvm/IR/PassManager.h"
26 class AggressiveInstCombinePass
27 : public PassInfoMixin<AggressiveInstCombinePass> {
30 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
33 //===----------------------------------------------------------------------===//
35 // AggressiveInstCombiner - Combine expression patterns to form expressions with
36 // fewer, simple instructions. This pass does not modify the CFG.
38 FunctionPass *createAggressiveInstCombinerPass();