SIL: some improvements to the BasicBlockBitfield utilities

* add a BasicBlockSetVector class
* add a second argument to BasicBlockFlag::set, for the set value.
* rename BasicBlockSet::remove -> BasicBlockSet::erase.
* add a MaxBitfieldID statistics value in SILFunction.cpp
This commit is contained in:
Erik Eckstein
2021-01-25 13:11:33 +01:00
parent ddd0f4d3a9
commit 2f890dcbbf
4 changed files with 72 additions and 13 deletions

View File

@@ -199,7 +199,7 @@ private:
/// A monotonically increasing ID which is incremented whenever a
/// BasicBlockBitfield is constructed.
/// Usually this stays below 1000, so a 32-bit unsigned is more than
/// Usually this stays below 100000, so a 32-bit unsigned is more than
/// sufficient.
/// For details see BasicBlockBitfield::bitfieldID;
unsigned currentBitfieldID = 1;