llvm-project/llvm/lib/Bitcode/Writer
Vedant Kumar e0b5f86b30 [STLExtras] Add distance() for ranges, pred_size(), and succ_size()
This commit adds a wrapper for std::distance() which works with ranges.
As it would be a common case to write `distance(predecessors(BB))`, this
also introduces `pred_size()` and `succ_size()` helpers to make that
easier to write.

Differential Revision: https://reviews.llvm.org/D46668

llvm-svn: 332057
2018-05-10 23:01:54 +00:00
..
BitWriter.cpp Pass a reference to a module to the bitcode writer. 2018-02-14 19:11:32 +00:00
BitcodeWriter.cpp [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
BitcodeWriterPass.cpp Pass a reference to a module to the bitcode writer. 2018-02-14 19:11:32 +00:00
CMakeLists.txt
LLVMBuild.txt Add missing library dependency. 2017-06-28 00:05:27 +00:00
ValueEnumerator.cpp [STLExtras] Add distance() for ranges, pred_size(), and succ_size() 2018-05-10 23:01:54 +00:00
ValueEnumerator.h Modularize: Include some required headers 2017-11-03 20:24:19 +00:00