From: Matthijs Kooijman Date: Tue, 17 Jun 2008 13:54:33 +0000 (+0000) Subject: Forgot to commit the ValueTracking header file along with r52396. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=de9256ad2e33a203e97328e285c3909f67aad4b0;p=oota-llvm.git Forgot to commit the ValueTracking header file along with r52396. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52401 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 4804fc5d2ee..73f87713cb2 100644 --- a/include/llvm/Analysis/ValueTracking.h +++ b/include/llvm/Analysis/ValueTracking.h @@ -62,6 +62,13 @@ namespace llvm { const unsigned *idx_begin, const unsigned *idx_end, Instruction *InsertBefore = 0); + + /// This is a convenience wrapper for finding values indexed by a single index + /// only. + inline Value *FindInsertedValue(Value *V, const unsigned Idx, + Instruction *InsertBefore = 0) { + return FindInsertedValue(V, &Idx, &Idx + 1, InsertBefore); + } } // end namespace llvm #endif