[llvm-commits] [SignlessTypes] CVS: llvm/lib/VMCore/Constants.cpp
Reid Spencer
reid at x10sys.com
Fri Oct 20 00:40:05 PDT 2006
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.163.2.5 -> 1.163.2.6
---
Log message:
Remove the Div -> S/UDiv changes for tagging purposes.
---
Diffs of the changes: (+3 -6)
Constants.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.163.2.5 llvm/lib/VMCore/Constants.cpp:1.163.2.6
--- llvm/lib/VMCore/Constants.cpp:1.163.2.5 Fri Oct 20 02:33:53 2006
+++ llvm/lib/VMCore/Constants.cpp Fri Oct 20 02:39:50 2006
@@ -419,11 +419,8 @@
Constant *ConstantExpr::getMul(Constant *C1, Constant *C2) {
return get(Instruction::Mul, C1, C2);
}
-Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2) {
- return get(Instruction::UDiv, C1, C2);
-}
-Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2) {
- return get(Instruction::SDiv, C1, C2);
+Constant *ConstantExpr::getDiv(Constant *C1, Constant *C2) {
+ return get(Instruction::Div, C1, C2);
}
Constant *ConstantExpr::getRem(Constant *C1, Constant *C2) {
return get(Instruction::Rem, C1, C2);
@@ -1413,7 +1410,7 @@
#ifndef NDEBUG
switch (Opcode) {
case Instruction::Add: case Instruction::Sub:
- case Instruction::Mul: case Instruction::UDiv: case Instruction::SDiv:
+ case Instruction::Mul: case Instruction::Div:
case Instruction::Rem:
assert(C1->getType() == C2->getType() && "Op types should be identical!");
assert((C1->getType()->isInteger() || C1->getType()->isFloatingPoint() ||
More information about the llvm-commits
mailing list