[LLVMdev] Floating point number format in .ll files changed?

Neil Booth neil at daikokuya.co.uk
Wed Oct 3 06:36:56 PDT 2007


Dale Johannesen wrote:-

> > Does LLVM
> > provide any help converting floats to hexadecimal representation?
> 
> Sure, there are internal conversion routines.   Most constants are  
> held in APFloat objects these days, you might want to look at that.   

As far as I know APFloat doesn't provide this yet, if we're talking
about strings (which is the only way I can make sense of conversions
to hexadecimal representations).

However, I wrote most of it yesterday, and if it passes testing
I'll be pushing soon.

Neil.



More information about the llvm-dev mailing list