diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-10-19 14:37:34 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-10-19 14:38:21 +0100 |
commit | 71e39e3f1867032a2fc0c19fa8d4881b39fc5a49 (patch) | |
tree | ab3472c7731bdf9ac806b9c9489e1a973950179f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7df912c65d1963c5403f1d645329b20f7e2d60ea (diff) | |
download | llvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.zip llvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.tar.gz llvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.tar.bz2 |
[ADT] Add APInt::isNegatedPowerOf2() helper
Inspired by D111968, provide a isNegatedPowerOf2() wrapper instead of obfuscating code with (-Value).isPowerOf2() patterns, which I'm sure are likely avenues for typos.....
Differential Revision: https://reviews.llvm.org/D111998
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions