diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-17 13:54:33 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-17 13:54:33 +0000 |
commit | 21d678009509964af354d5b1e3572db2929b2b17 (patch) | |
tree | 4042bac451b7841e95b50d2dedbcbaa798900057 | |
parent | bfb4e84913551f92dccd3b725b66f2ba9bd81f47 (diff) | |
download | external_llvm-21d678009509964af354d5b1e3572db2929b2b17.zip external_llvm-21d678009509964af354d5b1e3572db2929b2b17.tar.gz external_llvm-21d678009509964af354d5b1e3572db2929b2b17.tar.bz2 |
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
-rw-r--r-- | include/llvm/Analysis/ValueTracking.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 4804fc5..73f8771 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 |