[PATCH] D46668: [STLExtras] Add distance() for ranges, pred_size(), and succ_size()
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 10 13:31:59 PDT 2018
vsk updated this revision to Diff 146214.
vsk marked 3 inline comments as done.
vsk retitled this revision from "[STLExtras] Add a range-based distance()" to "[STLExtras] Add distance() for ranges, pred_size(), and succ_size()".
vsk edited the summary of this revision.
vsk added a comment.
- Add {pred,succ}_size helpers and use getNumUses() as suggested.
https://reviews.llvm.org/D46668
Files:
include/llvm/ADT/STLExtras.h
include/llvm/IR/CFG.h
lib/Analysis/BranchProbabilityInfo.cpp
lib/Analysis/LazyCallGraph.cpp
lib/Analysis/LoopInfo.cpp
lib/AsmParser/LLParser.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/CodeGen/ImplicitNullChecks.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/IR/Value.cpp
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
lib/Transforms/IPO/PartialInlining.cpp
lib/Transforms/Scalar/GVNHoist.cpp
lib/Transforms/Scalar/JumpThreading.cpp
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/Transforms/Vectorize/VPlan.cpp
unittests/ADT/IteratorTest.cpp
unittests/IR/BasicBlockTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46668.146214.patch
Type: text/x-patch
Size: 18896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/fa908fa4/attachment.bin>
More information about the llvm-commits
mailing list