[all-commits] [llvm/llvm-project] b6a462: [NFC][TableGen] Minor code cleanup in SearchableTa...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Thu Jul 10 14:52:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6a4621f3b6e7c59a6c6fe8a37f161d687ea441c
      https://github.com/llvm/llvm-project/commit/b6a4621f3b6e7c59a6c6fe8a37f161d687ea441c
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M llvm/utils/TableGen/SearchableTableEmitter.cpp

  Log Message:
  -----------
  [NFC][TableGen] Minor code cleanup in SearchableTableEmitter (#147856)

- Add braces around if/else bodies per LLVM coding standards.
- Use range for loops and structured bindings.
- use auto for variables initialized with `dyn_cast`.
- Refactor `compareBy` to also use early return in the comparison loop
by extracting the comparison into lambdas.



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