[Scalar] Remove partially wrong and unused functions.

I originally thought about fixing them, but hey, nobody is
using them anyway.

llvm-svn: 352643
This commit is contained in:
Davide Italiano 2019-01-30 18:40:05 +00:00
parent 5590a4355f
commit 042f770738
2 changed files with 0 additions and 54 deletions

View File

@ -252,10 +252,6 @@ public:
llvm::APInt UInt128(const llvm::APInt &fail_value) const;
llvm::APInt SInt256(llvm::APInt &fail_value) const;
llvm::APInt UInt256(const llvm::APInt &fail_value) const;
float Float(float fail_value = 0.0f) const;
double Double(double fail_value = 0.0) const;

View File

@ -1649,56 +1649,6 @@ llvm::APInt Scalar::UInt128(const llvm::APInt &fail_value) const {
return fail_value;
}
llvm::APInt Scalar::SInt256(llvm::APInt &fail_value) const {
switch (m_type) {
case e_void:
break;
case e_sint:
case e_uint:
case e_slong:
case e_ulong:
case e_slonglong:
case e_ulonglong:
case e_sint128:
case e_uint128:
case e_sint256:
case e_uint256:
case e_uint512:
case e_sint512:
return m_integer;
case e_float:
case e_double:
case e_long_double:
return m_float.bitcastToAPInt();
}
return fail_value;
}
llvm::APInt Scalar::UInt256(const llvm::APInt &fail_value) const {
switch (m_type) {
case e_void:
break;
case e_sint:
case e_uint:
case e_slong:
case e_ulong:
case e_slonglong:
case e_ulonglong:
case e_sint128:
case e_uint128:
case e_sint256:
case e_uint256:
case e_sint512:
case e_uint512:
return m_integer;
case e_float:
case e_double:
case e_long_double:
return m_float.bitcastToAPInt();
}
return fail_value;
}
float Scalar::Float(float fail_value) const {
switch (m_type) {
case e_void: