diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
commit | 7111b02c734c992b8c97d9918118768026dad79e (patch) | |
tree | c6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/ExecutionEngine | |
parent | a6bf66d0d6c1ed9bb657f72bc89c432c4ee96f63 (diff) | |
download | external_llvm-7111b02c734c992b8c97d9918118768026dad79e.zip external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.gz external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.bz2 |
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional
change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 1771ad7..0731672 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -467,7 +467,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { (void)apf.convertFromAPInt(GV.IntVal, false, APFloat::rmNearestTiesToEven); - GV.IntVal = apf.convertToAPInt(); + GV.IntVal = apf.bitcastToAPInt(); } return GV; } @@ -483,7 +483,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { (void)apf.convertFromAPInt(GV.IntVal, true, APFloat::rmNearestTiesToEven); - GV.IntVal = apf.convertToAPInt(); + GV.IntVal = apf.bitcastToAPInt(); } return GV; } @@ -614,23 +614,23 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { default: assert(0 && "Invalid long double opcode"); abort(); case Instruction::Add: apfLHS.add(APFloat(RHS.IntVal), APFloat::rmNearestTiesToEven); - GV.IntVal = apfLHS.convertToAPInt(); + GV.IntVal = apfLHS.bitcastToAPInt(); break; case Instruction::Sub: apfLHS.subtract(APFloat(RHS.IntVal), APFloat::rmNearestTiesToEven); - GV.IntVal = apfLHS.convertToAPInt(); + GV.IntVal = apfLHS.bitcastToAPInt(); break; case Instruction::Mul: apfLHS.multiply(APFloat(RHS.IntVal), APFloat::rmNearestTiesToEven); - GV.IntVal = apfLHS.convertToAPInt(); + GV.IntVal = apfLHS.bitcastToAPInt(); break; case Instruction::FDiv: apfLHS.divide(APFloat(RHS.IntVal), APFloat::rmNearestTiesToEven); - GV.IntVal = apfLHS.convertToAPInt(); + GV.IntVal = apfLHS.bitcastToAPInt(); break; case Instruction::FRem: apfLHS.mod(APFloat(RHS.IntVal), APFloat::rmNearestTiesToEven); - GV.IntVal = apfLHS.convertToAPInt(); + GV.IntVal = apfLHS.bitcastToAPInt(); break; } } @@ -656,7 +656,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID: - Result.IntVal = cast <ConstantFP>(C)->getValueAPF().convertToAPInt(); + Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); break; case Type::IntegerTyID: Result.IntVal = cast<ConstantInt>(C)->getValue(); |