llvm-project/llvm/lib/AsmParser
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
..
CMakeLists.txt
LLLexer.cpp Add the ShadowCallStack attribute 2018-04-03 20:10:40 +00:00
LLLexer.h
LLParser.cpp [STLExtras] Add distance() for ranges, pred_size(), and succ_size() 2018-05-10 23:01:54 +00:00
LLParser.h Make the LLParser accept call instructions of variables in the program AS 2018-02-27 11:15:11 +00:00
LLToken.h Add the ShadowCallStack attribute 2018-04-03 20:10:40 +00:00
LLVMBuild.txt Add dependency from AsmParser to BinaryFormat. 2017-06-07 04:24:33 +00:00
Parser.cpp LLParser: add an argument for overriding data layout and do not check alloca addr space 2018-01-30 22:32:39 +00:00