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? -- 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/20130430/40ed308a/attachment.sig>
On 30/04/13 07:33, edA-qa mort-ora-y 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. Ciao, Duncan.
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>