[llvm] r305806 - [TableGen] Use range based for loop. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 09:34:35 PDT 2017
Author: ctopper
Date: Tue Jun 20 11:34:35 2017
New Revision: 305806
URL: http://llvm.org/viewvc/llvm-project?rev=305806&view=rev
Log:
[TableGen] Use range based for loop. NFC
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=305806&r1=305805&r2=305806&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Tue Jun 20 11:34:35 2017
@@ -3289,9 +3289,7 @@ void CodeGenDAGPatterns::InferInstructio
// Second, look for single-instruction patterns defined outside the
// instruction.
- for (ptm_iterator I = ptm_begin(), E = ptm_end(); I != E; ++I) {
- const PatternToMatch &PTM = *I;
-
+ for (const PatternToMatch &PTM : ptms()) {
// We can only infer from single-instruction patterns, otherwise we won't
// know which instruction should get the flags.
SmallVector<Record*, 8> PatInstrs;
More information about the llvm-commits
mailing list