What is the proper way to get the bit pattern associated with a ConstantFP?
The 32 bit pattern if MVT::f32 or pair of 32 bit patterns with MVT::f64 ?
Tia.
Reed
What is the proper way to get the bit pattern associated with a ConstantFP?
The 32 bit pattern if MVT::f32 or pair of 32 bit patterns with MVT::f64 ?
Tia.
Reed
I recently did this, and I used ConstantFP::getValueAPF().bitcastToAPInt()
thanks.
I just found that too.
I guess it's safe to do it this way then.
Reed
What about rounding?
I guess it will give the proper rounded value for MVT:f32 or MVT:64?