[llvm-commits] [llvm] r52401 - /llvm/trunk/include/llvm/Analysis/ValueTracking.h
Matthijs Kooijman
matthijs at stdin.nl
Tue Jun 17 06:54:33 PDT 2008
Author: matthijs
Date: Tue Jun 17 08:54:33 2008
New Revision: 52401
URL: http://llvm.org/viewvc/llvm-project?rev=52401&view=rev
Log:
Forgot to commit the ValueTracking header file along with r52396.
Modified:
llvm/trunk/include/llvm/Analysis/ValueTracking.h
Modified: llvm/trunk/include/llvm/Analysis/ValueTracking.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ValueTracking.h?rev=52401&r1=52400&r2=52401&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ValueTracking.h (original)
+++ llvm/trunk/include/llvm/Analysis/ValueTracking.h Tue Jun 17 08:54:33 2008
@@ -62,6 +62,13 @@
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
More information about the llvm-commits
mailing list