[all-commits] [llvm/llvm-project] 7c57e8: [NFC][TableGen] Code cleanup in Record.h/cpp (#138...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Wed May 14 06:10:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c57e82456c882b2e8cca728e3ff79030c9ae619
      https://github.com/llvm/llvm-project/commit/7c57e82456c882b2e8cca728e3ff79030c9ae619
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp

  Log Message:
  -----------
  [NFC][TableGen] Code cleanup in Record.h/cpp (#138876)

- Use range for loops in several places.
- Change some variable names to conform to LLVM coding standard.
- Use ListSeparator instead of manual code to generate comma interleaved
strings.
- Remove unnecessary copies in SETDAGOP evaluation in BinOpInit::Fold.
- Eliminate duplicated code in the 2 overloads of RecordVal::setValue.
- Use explicit type in some range for loops.
- Tested by verifying that all the .inc files generated by building all
the *CommonTableGen targets stay unchanged.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list