Changes in directory llvm/lib/Transforms/IPO:
DeadTypeElimination.cpp updated: 1.60 -> 1.61 SimplifyLibCalls.cpp updated: 1.87 -> 1.88 --- Log message: rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger. rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, there are now no longer any instances of IntegerType that are not considered isInteger! :) --- Diffs of the changes: (+7 -7) DeadTypeElimination.cpp | 4 ++-- SimplifyLibCalls.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) Index: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp diff -u llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.60 llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.61 --- llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.60 Fri Jan 12 01:05:14 2007 +++ llvm/lib/Transforms/IPO/DeadTypeElimination.cpp Sun Jan 14 20:27:26 2007 @@ -52,13 +52,13 @@ // static inline bool ShouldNukeSymtabEntry(const Type *Ty){ // Nuke all names for primitive types! - if (Ty->isPrimitiveType() || Ty->isIntegral()) + if (Ty->isPrimitiveType() || Ty->isInteger()) return true; // Nuke all pointers to primitive types as well... if (const PointerType *PT = dyn_cast<PointerType>(Ty)) if (PT->getElementType()->isPrimitiveType() || - PT->getElementType()->isIntegral()) + PT->getElementType()->isInteger()) return true; return false; Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.87 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.88 --- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.87 Sun Jan 14 19:55:30 2007 +++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp Sun Jan 14 20:27:26 2007 @@ -398,7 +398,7 @@ // Make sure the called function looks like exit (int argument, int return // type, external linkage, not varargs). virtual bool ValidateCalledFunction(const Function *F, SimplifyLibCalls &SLC){ - return F->arg_size() >= 1 && F->arg_begin()->getType()->isIntegral(); + return F->arg_size() >= 1 && F->arg_begin()->getType()->isInteger(); } virtual bool OptimizeCall(CallInst* ci, SimplifyLibCalls& SLC) { @@ -960,8 +960,8 @@ Function::const_arg_iterator AI = F->arg_begin(); if (F->arg_size() != 3 || !isa<PointerType>(AI->getType())) return false; if (!isa<PointerType>((++AI)->getType())) return false; - if (!(++AI)->getType()->isIntegral()) return false; - if (!F->getReturnType()->isIntegral()) return false; + if (!(++AI)->getType()->isInteger()) return false; + if (!F->getReturnType()->isInteger()) return false; return true; } @@ -1725,8 +1725,8 @@ : LibCallOptimization("isascii", "Number of 'isascii' calls simplified") {} virtual bool ValidateCalledFunction(const Function *F, SimplifyLibCalls &SLC){ - return F->arg_size() == 1 && F->arg_begin()->getType()->isIntegral() && - F->getReturnType()->isIntegral(); + return F->arg_size() == 1 && F->arg_begin()->getType()->isInteger() && + F->getReturnType()->isInteger(); } /// @brief Perform the isascii optimization. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits