1 //===- AggressiveInstCombine.h - AggressiveInstCombine pass -----*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 /// \file 10 /// 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(). 15 /// 16 //===----------------------------------------------------------------------===// 17 18 #ifndef LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H 19 #define LLVM_TRANSFORMS_AGGRESSIVE_INSTCOMBINE_INSTCOMBINE_H 20 21 #include "llvm/IR/Function.h" 22 #include "llvm/IR/PassManager.h" 23 24 namespace llvm { 25 26 class AggressiveInstCombinePass 27 : public PassInfoMixin<AggressiveInstCombinePass> { 28 29 public: 30 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); 31 }; 32 33 //===----------------------------------------------------------------------===// 34 // 35 // AggressiveInstCombiner - Combine expression patterns to form expressions with 36 // fewer, simple instructions. This pass does not modify the CFG. 37 // 38 FunctionPass *createAggressiveInstCombinerPass(); 39 } 40 41 #endif 42