LLVM Programmer’s Manual strongly discourages the use of std::vector<bool> and suggests llvm::BitVector as a possible replacement.
This patch does just that for llvm.
Paths
| Differential D117121
[llvm] Remove uses of `std::vector<bool>` ClosedPublic Authored by jansvoboda11 on Jan 12 2022, 8:01 AM.
Details Summary LLVM Programmer’s Manual strongly discourages the use of std::vector<bool> and suggests llvm::BitVector as a possible replacement. This patch does just that for llvm.
Diff Detail
Event TimelineComment Actions Might be nice to stage a couple of these in whichever patch allows them to switch over, to make it clear why those APIs are needed/useful.
jansvoboda11 removed a parent revision: D117116: [llvm][ADT] Enable range-based for loops for `BitVector`. This revision is now accepted and ready to land.Jan 13 2022, 1:05 PM This revision was landed with ongoing or failed builds.Jan 18 2022, 9:20 AM Closed by commit rG5f4ae5645754: [llvm] Remove uses of `std::vector<bool>` (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 399588 llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Transforms/Utils/SampleProfileInference.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/llvm-rc/ResourceScriptParser.cpp
llvm/tools/llvm-rc/ResourceScriptStmt.h
llvm/tools/llvm-readobj/ELFDumper.cpp
llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
llvm/utils/TableGen/CodeGenInstruction.h
llvm/utils/TableGen/GlobalISel/GIMatchTree.h
|
clang-format: please reformat the code