llvm-6502/include/llvm/Transforms/HoistPHIConstants.h

22 lines
689 B
C
Raw Normal View History

//===- 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