diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-12-13 20:47:34 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-13 20:47:34 +0000 |
commit | 5bb504f4ea73fc46b4fb64d4ba970aafde1381b7 (patch) | |
tree | c5418a0810049b6e5e2b9d6a2fc3276992088bc8 /include/llvm/ADT/APInt.h | |
parent | a23bd2e761f528e91e2b4d14cc495b7afde3b4f2 (diff) | |
download | llvm-5bb504f4ea73fc46b4fb64d4ba970aafde1381b7.tar.gz llvm-5bb504f4ea73fc46b4fb64d4ba970aafde1381b7.tar.bz2 llvm-5bb504f4ea73fc46b4fb64d4ba970aafde1381b7.tar.xz |
[block-freq] Add the APInt method extractBit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r-- | include/llvm/ADT/APInt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index d494ad2535..2073fa08cb 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1244,6 +1244,9 @@ public: /// as "bitPosition". void flipBit(unsigned bitPosition); + /// \brief Returns true if the bit in bitPosition is set. + bool extractBit(unsigned bitPosition) const; + /// @} /// \name Value Characterization Functions /// @{ |