From a3c2dee477d009d0eb2916b2fdf78686f6877924 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Nov 2001 18:50:11 +0000 Subject: [PATCH] Expose constant prop of an instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Scalar/ConstantProp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h index f094ec5496f..e77a9c06006 100644 --- a/include/llvm/Transforms/Scalar/ConstantProp.h +++ b/include/llvm/Transforms/Scalar/ConstantProp.h @@ -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); } -- 2.34.1