summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-01-30 22:53:21 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-01-30 22:53:21 +0000
commit96564056840f66cb7b4a0055f7f55eaab5ed2d83 (patch)
treed0895e406d0396481197abf1000fd34a4683b1cf /llvm/include
parentb3fc509b232d38cea380612a718b1841abd5cca2 (diff)
downloadbcm5719-llvm-96564056840f66cb7b4a0055f7f55eaab5ed2d83.tar.gz
bcm5719-llvm-96564056840f66cb7b4a0055f7f55eaab5ed2d83.zip
Removed CreateFPExtOrFPTrunc for now until I have the time to get in my vector convert patch.
What I thought was going to be a quick thing has extended out a little bit in time *sigh*. So after some thought in order to not cruft up the tree I am removing this for now since it is the right thing to do. llvm-svn: 173985
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/IRBuilder.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index a137bbf7fa3..567f5cbf7fb 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -1056,20 +1056,6 @@ public:
return CreateTrunc(V, DestTy, Name);
return V;
}
- /// \brief Create a FPExt or FPTrunc from the float value V to DestTy. Return
- /// the value untouched if the type of V is already DestTy.
- Value *CreateFPExtOrFPTrunc(Value *V, Type *DestTy,
- const Twine &Name = "") {
- assert(V->getType()->isFPOrFPVectorTy() &&
- DestTy->isFPOrFPVectorTy() &&
- "Can only FPExt/FPTrunc floating point types!");
- Type *VTy = V->getType();
- if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
- return CreateFPExt(V, DestTy, Name);
- if (VTy->getScalarSizeInBits() > DestTy->getScalarSizeInBits())
- return CreateFPTrunc(V, DestTy, Name);
- return V;
- }
Value *CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = ""){
return CreateCast(Instruction::FPToUI, V, DestTy, Name);
}
OpenPOWER on IntegriCloud