[LLVMdev] creating 80/128bit FP constants?

edA-qa mort-ora-y eda-qa at disemia.com
Wed May 1 03:28:31 PDT 2013


On 01/05/13 12:21, Duncan Sands wrote:
>> How do I emit 80/128 bit FP constants. There is one ConstantFP::get
>> function which takes a double and another that takes a StringRef.  Does
>> the StringRef version somehow do what I want?
> Use the one that takes an APFloat.

APFloat then offers the float/double/string constructors, and various
operations. I'm still not sure on how I can get a 80/128 bit float. Is
there an example somewhere?


-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130501/2440da41/attachment.sig>


More information about the llvm-dev mailing list