summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGParser.cpp
diff options
context:
space:
mode:
authorJean-Luc Duprat <jduprat@apple.com>2014-08-29 22:43:30 +0000
committerJean-Luc Duprat <jduprat@apple.com>2014-08-29 22:43:30 +0000
commit97bfbb84ebf301bff7a5b23d320c8ccf1c50321d (patch)
tree578f6bd56cf0d8fdaed884ec501707337994975a /llvm/lib/TableGen/TGParser.cpp
parent700964ea00fdf679a9992a562143101e5b66c866 (diff)
downloadbcm5719-llvm-97bfbb84ebf301bff7a5b23d320c8ccf1c50321d.tar.gz
bcm5719-llvm-97bfbb84ebf301bff7a5b23d320c8ccf1c50321d.zip
Comment only: Annotate loop as per mailing list discussion
llvm-svn: 216798
Diffstat (limited to 'llvm/lib/TableGen/TGParser.cpp')
-rw-r--r--llvm/lib/TableGen/TGParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 7efaa66de27..15039792042 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -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)
OpenPOWER on IntegriCloud