llvm.org GIT mirror llvm / 60840c8
Rename bitcastToAPInt to convertToAPInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_24@58003 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 10 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
20592059
20602060 if (FPC->getType() == Type::DoubleTy) {
20612061 double Val = FPC->getValueAPF().convertToDouble();
2062 uint64_t i = FPC->getValueAPF().bitcastToAPInt().getZExtValue();
2062 uint64_t i = FPC->getValueAPF().convertToAPInt().getZExtValue();
20632063 Out << "static const ConstantDoubleTy FPConstant" << FPCounter++
20642064 << " = 0x" << utohexstr(i)
20652065 << "ULL; /* " << Val << " */\n";
20662066 } else if (FPC->getType() == Type::FloatTy) {
20672067 float Val = FPC->getValueAPF().convertToFloat();
2068 uint32_t i = (uint32_t)FPC->getValueAPF().bitcastToAPInt().
2068 uint32_t i = (uint32_t)FPC->getValueAPF().convertToAPInt().
20692069 getZExtValue();
20702070 Out << "static const ConstantFloatTy FPConstant" << FPCounter++
20712071 << " = 0x" << utohexstr(i)
20722072 << "U; /* " << Val << " */\n";
20732073 } else if (FPC->getType() == Type::X86_FP80Ty) {
20742074 // api needed to prevent premature destruction
2075 APInt api = FPC->getValueAPF().bitcastToAPInt();
2075 APInt api = FPC->getValueAPF().convertToAPInt();
20762076 const uint64_t *p = api.getRawData();
20772077 Out << "static const ConstantFP80Ty FPConstant" << FPCounter++
20782078 << " = { 0x"
20802080 << "ULL, 0x" << utohexstr((uint16_t)(p[0] >> 48)) << ",{0,0,0}"
20812081 << "}; /* Long double constant */\n";
20822082 } else if (FPC->getType() == Type::PPC_FP128Ty) {
2083 APInt api = FPC->getValueAPF().bitcastToAPInt();
2083 APInt api = FPC->getValueAPF().convertToAPInt();
20842084 const uint64_t *p = api.getRawData();
20852085 Out << "static const ConstantFP128Ty FPConstant" << FPCounter++
20862086 << " = { 0x"