aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-03-28 12:48:58 +0100
committerFlorian Hahn <flo@fhahn.com>2021-03-28 12:48:58 +0100
commiteb3d9f2eb619132d75fbe228c7aac1eee1667f3c (patch)
tree954c29e2e7b4a8f3fe7c8f5437569dcf5cddc4ef /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentea2225a10be986d226e041d20d36dff17e78daed (diff)
downloadllvm-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