OSDN Git Service

[SDAG] Add versions of computeKnownBits that return a value
authorJustin Bogner <mail@justinbogner.com>
Fri, 24 Aug 2018 02:42:24 +0000 (02:42 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 24 Aug 2018 02:42:24 +0000 (02:42 +0000)
commit2024fa294b08a05380f984d28e39d1258d5d8e88
tree2efa6296149635727e867f3c98a10114d03f5095
parenta11014c68c0a13f79de4a6e54459083cf3f3d681
[SDAG] Add versions of computeKnownBits that return a value

Having the KnownBits as an output parameter is kind of awkward to use
and a holdover from when it was two separate APInts. Instead, just
return a KnownBits object.

I'm leaving the existing interface in place for now, since updating
the callers all at once would be thousands of lines of diff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340594 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp