aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/ValueTracking.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-17 13:54:33 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-17 13:54:33 +0000
commitde9256ad2e33a203e97328e285c3909f67aad4b0 (patch)
tree4042bac451b7841e95b50d2dedbcbaa798900057 /include/llvm/Analysis/ValueTracking.h
parent2fbabf6e6dc61e0627b93a596bf13e272345c5e8 (diff)
downloadexternal_llvm-de9256ad2e33a203e97328e285c3909f67aad4b0.zip
external_llvm-de9256ad2e33a203e97328e285c3909f67aad4b0.tar.gz
external_llvm-de9256ad2e33a203e97328e285c3909f67aad4b0.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
Diffstat (limited to 'include/llvm/Analysis/ValueTracking.h')
-rw-r--r--include/llvm/Analysis/ValueTracking.h7
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