Use range-based for loops in TableGen.
Nice cleanup! I presume this passes all the TableGen tests?
I guess you should capitalize all the range iterator variables.
Code in LLVM almost always uses "unsigned" instead of "unsigned int". This occurs several more times.
Why are reference? Isn't ProctResourceDef a Record *?
Why can't this be on one line now?
This is a pointer so should be "auto *". LLVM prefers not to obscure pointers with auto. I think this applies to other places in the patch. We might even want "Record *" here. We're pretty conservative about auto unless the type is obvious for the reader.