If my code is generating LLVM SSA for a platform that is possibly different than the one on which it is currently running, how do I obtain values like FLT_MAX
or FLT_EPSILON
(or the same for doubles, or any other floating point width)?
I'm guessing it's not correct, in general, to obtain those values for my own system and use them. It's also not an acceptable solution to delegate the question to clang
or gcc
.
When generating LLVM code, how do I know what value to emit for FLT_MAX
?