diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-30 22:53:21 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-30 22:53:21 +0000 |
commit | f84d4c16b3d5b0c687dd6f25c340b3b86c76fc34 (patch) | |
tree | c213874eec52aea198424235414a29dd57f9bda5 /include | |
parent | f9cd7738a3966986dd50db56d8a74952b3016cc0 (diff) | |
download | external_llvm-f84d4c16b3d5b0c687dd6f25c340b3b86c76fc34.zip external_llvm-f84d4c16b3d5b0c687dd6f25c340b3b86c76fc34.tar.gz external_llvm-f84d4c16b3d5b0c687dd6f25c340b3b86c76fc34.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/IRBuilder.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index a137bbf..567f5cb 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/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); } |