mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Expose constant prop of an instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ee997ba42
commit
a3c2dee477
@ -17,6 +17,11 @@ struct ConstantPropogation : public Pass {
|
||||
// folding
|
||||
static bool doConstantPropogation(Method *M);
|
||||
|
||||
// doConstantPropogation - Constant prop a specific instruction. Returns true
|
||||
// and potentially moves the iterator if constant propogation was performed.
|
||||
//
|
||||
static bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I);
|
||||
|
||||
inline bool doPerMethodWork(Method *M) {
|
||||
return doConstantPropogation(M);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user