diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-01-15 02:27:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-01-15 02:27:26 +0000 |
| commit | 03c4953cdd0dc8f0d8379488c46fd65e96dd5b86 (patch) | |
| tree | 39bdfdfe809d0c5e7b06cd2d7e19d1036f1c3d54 /llvm/lib/Transforms/IPO | |
| parent | c1be5ac420bb53ee5c6a220256d09c92877e5d9e (diff) | |
| download | bcm5719-llvm-03c4953cdd0dc8f0d8379488c46fd65e96dd5b86.tar.gz bcm5719-llvm-03c4953cdd0dc8f0d8379488c46fd65e96dd5b86.zip | |
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! :)
llvm-svn: 33225
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/DeadTypeElimination.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp index b599e5a089c..18724bb9db3 100644 --- a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -52,13 +52,13 @@ ModulePass *llvm::createDeadTypeEliminationPass() { // 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; diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index ea57ab0a21f..db0c492f723 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -398,7 +398,7 @@ struct ExitInMainOptimization : public LibCallOptimization { // 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 @@ struct memcmpOptimization : public LibCallOptimization { 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 @@ public: : 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. |

