[llvm-commits] [llvm] r153794 - in /llvm/trunk/utils/TableGen: CodeGenRegisters.cpp CodeGenRegisters.h

Andrew Trick atrick at apple.com
Mon Apr 2 18:08:01 PDT 2012


On Mar 31, 2012, at 2:40 AM, Chandler Carruth <chandlerc at google.com> wrote:

> Tiny coding style nits...
> 
> On Fri, Mar 30, 2012 at 6:35 PM, Andrew Trick <atrick at apple.com> wrote:
> --- llvm/trunk/utils/TableGen/CodeGenRegisters.cpp (original)
> +++ llvm/trunk/utils/TableGen/CodeGenRegisters.cpp Fri Mar 30 20:35:59 2012
> @@ -88,6 +88,26 @@
>   return TheDef->getName();
>  }
> 
> +// Merge two RegUnitLists maintining the order and removing duplicates.
> +// Overwrites MergedRU in the process.
> 
> This worth a doxyment? We use them heavily on static functions in Clang, but I've seen both ways fly in LLVM...

None of the tablegen code in this file is doxidized. Which is fine by me.

> +static void mergeRegUnits(CodeGenRegister::RegUnitList &MergedRU,
> +                          const CodeGenRegister::RegUnitList &RRU)
> +{
> 
> curly brace should go after the close paren... at least, i think it fits there even w/ 80-columns...

oops. done.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120402/75882109/attachment.html>


More information about the llvm-commits mailing list