mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
1bffea0341
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@836 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
709 B
C++
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
|