aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/HoistPHIConstants.h
blob: 931269bc0b13f3a38fc522c070ffb3973f7a91bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//===- llvm/Transforms/HoistPHIConstants.h - Normalize PHI nodes -*- C++ -*--=//
//
// HoistPHIConstants - Remove literal constants that are arguments of PHI nodes
// by inserting cast instructions in the preceeding basic blocks, and changing
// constant references into references of the casted value.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TRANSFORMS_HOISTPHICONSTANTS_H
#define LLVM_TRANSFORMS_HOISTPHICONSTANTS_H

#include "llvm/Transforms/Pass.h"

struct HoistPHIConstants : public Pass {
  static bool doHoistPHIConstants(Method *M);


  virtual bool doPerMethodWork(Method *M) { return doHoistPHIConstants(M); }
};

#endif