aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/ValueTracking.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-16 13:28:31 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-16 13:28:31 +0000
commit977289121996f0afb781592f92a4aee1be3010fe (patch)
tree9cc7012def69f4d3215b33f34fae5fd22ae7de70 /include/llvm/Analysis/ValueTracking.h
parent0a7413dad84887bee51f20d7a5f1c4c1c7bb4c1e (diff)
downloadexternal_llvm-977289121996f0afb781592f92a4aee1be3010fe.zip
external_llvm-977289121996f0afb781592f92a4aee1be3010fe.tar.gz
external_llvm-977289121996f0afb781592f92a4aee1be3010fe.tar.bz2
Make the InsertBefore argument to FindInsertedValue optional, so you can find an inserted value without modifying the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ValueTracking.h')
-rw-r--r--include/llvm/Analysis/ValueTracking.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h
index 1dc1468..1e54e7d 100644
--- a/include/llvm/Analysis/ValueTracking.h
+++ b/include/llvm/Analysis/ValueTracking.h
@@ -55,10 +55,13 @@ namespace llvm {
/// FindScalarValue - Given an aggregrate and an sequence of indices, see if the
/// scalar value indexed is already around as a register, for example if it were
/// inserted directly into the aggregrate.
+ ///
+ /// If InsertBefore is not null, this function will duplicate (modified)
+ /// insertvalues when a part of a nested struct is extracted.
Value *FindInsertedValue(Value *V,
const unsigned *idx_begin,
const unsigned *idx_end,
- Instruction *InsertBefore);
+ Instruction *InsertBefore = 0);
} // end namespace llvm
#endif