[PATCH] D117121: [llvm] Remove uses of `std::vector<bool>`

Jan Svoboda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 12 08:01:49 PST 2022


jansvoboda11 created this revision.
jansvoboda11 added a reviewer: dexonsmith.
Herald added subscribers: ormris, wenlei, rupprecht, steven_wu, hiraditya.
Herald added a reviewer: jhenderson.
jansvoboda11 requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

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.

Depends on D117116 <https://reviews.llvm.org/D117116>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117121

Files:
  llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
  llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
  llvm/lib/MC/MCParser/MasmParser.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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117121.399333.patch
Type: text/x-patch
Size: 9071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220112/c7f58d67/attachment.bin>


More information about the llvm-commits mailing list