aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/ScalarEvolutionExpander.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-06-28 05:07:32 +0000
committerAndrew Trick <atrick@apple.com>2011-06-28 05:07:32 +0000
commit5e7645be4c9dd2193add44d30b5fef8036d7a3ce (patch)
tree94316fe58dfda17aa196497196625ee45ecd22e3 /include/llvm/Analysis/ScalarEvolutionExpander.h
parenta5d950f673c29710d0e9e2afefe74b7003362a06 (diff)
downloadexternal_llvm-5e7645be4c9dd2193add44d30b5fef8036d7a3ce.zip
external_llvm-5e7645be4c9dd2193add44d30b5fef8036d7a3ce.tar.gz
external_llvm-5e7645be4c9dd2193add44d30b5fef8036d7a3ce.tar.bz2
SCEVExpander: give new insts a name that identifies the reponsible pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpander.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h
index 39d378e..6879fa6 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -30,6 +30,10 @@ namespace llvm {
/// memory.
class SCEVExpander : public SCEVVisitor<SCEVExpander, Value*> {
ScalarEvolution &SE;
+
+ // New instructions receive a name to identifies them with the current pass.
+ const char* Label;
+
std::map<std::pair<const SCEV *, Instruction *>, AssertingVH<Value> >
InsertedExpressions;
std::set<AssertingVH<Value> > InsertedValues;
@@ -67,8 +71,8 @@ namespace llvm {
public:
/// SCEVExpander - Construct a SCEVExpander in "canonical" mode.
- explicit SCEVExpander(ScalarEvolution &se)
- : SE(se), IVIncInsertLoop(0), CanonicalMode(true),
+ explicit SCEVExpander(ScalarEvolution &se, const char *label)
+ : SE(se), Label(label), IVIncInsertLoop(0), CanonicalMode(true),
Builder(se.getContext(), TargetFolder(se.TD)) {}
/// clear - Erase the contents of the InsertedExpressions map so that users