summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-12-13 20:47:34 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-12-13 20:47:34 +0000
commit5bb504f4ea73fc46b4fb64d4ba970aafde1381b7 (patch)
treec5418a0810049b6e5e2b9d6a2fc3276992088bc8 /include/llvm/ADT/APInt.h
parenta23bd2e761f528e91e2b4d14cc495b7afde3b4f2 (diff)
downloadllvm-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.h3
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
/// @{