aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-29 20:27:52 +0000
committerDan Gohman <gohman@apple.com>2009-04-29 20:27:52 +0000
commit36b8e53fe069862627cd06d82767a4253e24638d (patch)
tree47f01cc8bd18b9b648ca0d3173dda216d418c5ed /lib
parenta641575828192c741531d431fbf191e6c1ba17c5 (diff)
downloadexternal_llvm-36b8e53fe069862627cd06d82767a4253e24638d.zip
external_llvm-36b8e53fe069862627cd06d82767a4253e24638d.tar.gz
external_llvm-36b8e53fe069862627cd06d82767a4253e24638d.tar.bz2
Include the source type in SCEV cast expression debug output, and
print sext, zext, and trunc, instead of signextend, zeroextend, and truncate, respectively, for consistency with the main IR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 42d2fdd..b81df12 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -219,7 +219,7 @@ SCEVTruncateExpr::~SCEVTruncateExpr() {
}
void SCEVTruncateExpr::print(raw_ostream &OS) const {
- OS << "(truncate " << *Op << " to " << *Ty << ")";
+ OS << "(trunc " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVZeroExtends - Only allow the creation of one SCEVZeroExtendExpr for any
@@ -240,7 +240,7 @@ SCEVZeroExtendExpr::~SCEVZeroExtendExpr() {
}
void SCEVZeroExtendExpr::print(raw_ostream &OS) const {
- OS << "(zeroextend " << *Op << " to " << *Ty << ")";
+ OS << "(zext " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVSignExtends - Only allow the creation of one SCEVSignExtendExpr for any
@@ -261,7 +261,7 @@ SCEVSignExtendExpr::~SCEVSignExtendExpr() {
}
void SCEVSignExtendExpr::print(raw_ostream &OS) const {
- OS << "(signextend " << *Op << " to " << *Ty << ")";
+ OS << "(sext " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVCommExprs - Only allow the creation of one SCEVCommutativeExpr for any