llvm-6502/include/llvm/Transforms/HoistPHIConstants.h
2001-10-15 17:31:51 +00:00

21 lines
709 B
C++

//===- 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 StatelessPass<HoistPHIConstants> {
// doPerMethodWork - This method does the work. Always successful.
//
static bool doPerMethodWork(Method *M);
};
#endif