diff options
author | JF Bastien <jfbastien@apple.com> | 2018-12-10 19:27:38 +0000 |
---|---|---|
committer | JF Bastien <jfbastien@apple.com> | 2018-12-10 19:27:38 +0000 |
commit | 69f6098e89312b934ed87e4cd3603401a9b436b4 (patch) | |
tree | 58af5357af19893d7f24253b6a419c888be8bf96 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | ce2837f880a519d435be9e220b62c10b6361d798 (diff) | |
download | llvm-69f6098e89312b934ed87e4cd3603401a9b436b4.zip llvm-69f6098e89312b934ed87e4cd3603401a9b436b4.tar.gz llvm-69f6098e89312b934ed87e4cd3603401a9b436b4.tar.bz2 |
APFloat: allow 64-bit of payload
Summary: The APFloat and Constant APIs taking an APInt allow arbitrary payloads,
and that's great. There's a convenience API which takes an unsigned, and that's
silly because it then directly creates a 64-bit APInt. Just change it to 64-bits
directly.
At the same time, add ConstantFP NaN getters which match the APFloat ones (with
getQNaN / getSNaN and APInt parameters).
Improve the APFloat testing to set more payload bits.
Reviewers: scanon, rjmccall
Subscribers: jkorous, dexonsmith, kristina, llvm-commits
Differential Revision: https://reviews.llvm.org/D55460
llvm-svn: 348791
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions