BitVector currently provides find_first() and find_first_unset(), this adds methods to search in reverse.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D32302
[BitVector] Add find_last() and find_last_unset() ClosedPublic Authored by zturner on Apr 20 2017, 10:53 AM.
Details Summary BitVector currently provides find_first() and find_first_unset(), this adds methods to search in reverse.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 21 2017, 10:35 AM Closed by commit rL301014: [BitVector] Add find_last() and find_last_unset(). (authored by zturner). · Explain WhyApr 21 2017, 11:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 96162 llvm/include/llvm/ADT/BitVector.h
llvm/include/llvm/ADT/SmallBitVector.h
llvm/include/llvm/DebugInfo/PDB/UDTLayout.h
llvm/lib/DebugInfo/PDB/UDTLayout.cpp
llvm/tools/llvm-pdbdump/PrettyClassDefinitionDumper.cpp
llvm/tools/llvm-pdbdump/PrettyClassLayoutGraphicalDumper.cpp
llvm/unittests/ADT/BitVectorTest.cpp
|
The for loop above seems simpler?
If you really want, you can use: