Home | History | Annotate | Download | only in IPO
      1 //===- SCCP.h - Sparse Conditional Constant Propagation ---------*- 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 //
     10 // This pass implements  interprocedural sparse conditional constant
     11 // propagation and merging.
     12 //
     13 // Specifically, this:
     14 //   * Assumes values are constant unless proven otherwise
     15 //   * Assumes BasicBlocks are dead unless proven otherwise
     16 //   * Proves values to be constant, and replaces them with constants
     17 //   * Proves conditional branches to be unconditional
     18 //
     19 //===----------------------------------------------------------------------===//
     20 
     21 #ifndef LLVM_TRANSFORMS_IPO_SCCP_H
     22 #define LLVM_TRANSFORMS_IPO_SCCP_H
     23 
     24 #include "llvm/IR/Module.h"
     25 #include "llvm/IR/PassManager.h"
     26 
     27 namespace llvm {
     28 /// Pass to perform interprocedural constant propagation.
     29 class IPSCCPPass : public PassInfoMixin<IPSCCPPass> {
     30 public:
     31   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
     32 };
     33 }
     34 #endif // LLVM_TRANSFORMS_IPO_SCCP_H
     35