Comment only: Annotate loop as per mailing list discussion
authorJean-Luc Duprat <jduprat@apple.com>
Fri, 29 Aug 2014 22:43:30 +0000 (22:43 +0000)
committerJean-Luc Duprat <jduprat@apple.com>
Fri, 29 Aug 2014 22:43:30 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216798 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGParser.cpp

index 7efaa66de27a4a9fcb8134d8b5a2976006f7229e..150397920421bf4fa5492442e852dd3277eafdca 100644 (file)
@@ -1315,6 +1315,9 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
     // first.  We'll first read everything in to a vector, then we can reverse
     // it to get the bits in the correct order for the BitsInit value.
     for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
+      // FIXME: The following two loops would not be duplicated
+      //        if the API was a little more orthogonal.
+
       // bits<n> values are allowed to initialize n bits.
       if (BitsInit *BI = dyn_cast<BitsInit>(Vals[i])) {
         for (unsigned i = 0, e = BI->getNumBits(); i != e; ++i)