diff options
author | Florian Hahn <flo@fhahn.com> | 2021-03-28 12:48:58 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-03-28 12:48:58 +0100 |
commit | eb3d9f2eb619132d75fbe228c7aac1eee1667f3c (patch) | |
tree | 954c29e2e7b4a8f3fe7c8f5437569dcf5cddc4ef /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | ea2225a10be986d226e041d20d36dff17e78daed (diff) | |
download | llvm-eb3d9f2eb619132d75fbe228c7aac1eee1667f3c.zip llvm-eb3d9f2eb619132d75fbe228c7aac1eee1667f3c.tar.gz llvm-eb3d9f2eb619132d75fbe228c7aac1eee1667f3c.tar.bz2 |
[SelDag] Add isIntOrFPConstant helper function.
This patch adds a new isIntOrFPConstant helper function to check if a
SDValue is a integer of FP constant. This pattern is used in various
places.
There also are places that incorrectly just check for integer constants,
e.g. D99384, so hopefully this helper will help people avoid that issue.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D99428
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions