diff options
author | River Riddle <riddleriver@gmail.com> | 2020-04-14 14:53:07 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-04-14 15:14:40 -0700 |
commit | 204c3b551626a925dfdc3822a6f240bdc8ef5d3a (patch) | |
tree | 2586b0ed4ba254677c19a4b3913614eeb15fdf38 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 8cbe371c28a30ca5b0775b095a754702e57aa7ea (diff) | |
download | llvm-204c3b551626a925dfdc3822a6f240bdc8ef5d3a.zip llvm-204c3b551626a925dfdc3822a6f240bdc8ef5d3a.tar.gz llvm-204c3b551626a925dfdc3822a6f240bdc8ef5d3a.tar.bz2 |
[llvm][STLExtras] Move various iterator/range utilities from MLIR to LLVM
This revision moves the various range utilities present in MLIR to LLVM to enable greater reuse. This revision moves the following utilities:
* indexed_accessor_*
This is set of utility iterator/range base classes that allow for building a range class where the iterators are represented by an object+index pair.
* make_second_range
Given a range of pairs, returns a range iterating over the `second` elements.
* hasSingleElement
Returns if the given range has 1 element. size() == 1 checks end up being very common, but size() is not always O(1) (e.g., ilist). This method provides O(1) checks for those cases.
Differential Revision: https://reviews.llvm.org/D78064
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions