Expose constant prop of an instruction
authorChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 18:50:11 +0000 (18:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 18:50:11 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar/ConstantProp.h

index f094ec5496f538b5e6df117b28e4868522b256c6..e77a9c060062897d11595d93cd5f6915fad1ac5a 100644 (file)
@@ -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);
   }