[all-commits] [llvm/llvm-project] 749372: [NFC][TableGen] Code cleanup in CodeGenTarget.cpp ...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Feb 3 20:04:53 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 749372ba242354d783b20937d22868f4e6e83955
      https://github.com/llvm/llvm-project/commit/749372ba242354d783b20937d22868f4e6e83955
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-02-03 (Mon, 03 Feb 2025)

  Changed paths:
    M llvm/utils/TableGen/Common/CodeGenTarget.cpp

  Log Message:
  -----------
  [NFC][TableGen] Code cleanup in CodeGenTarget.cpp (#125569)

- Use StringRef::str() instead of std::string(StringRef).
- Use const pointers for `Candidates` in getSuperRegForSubReg().
- Make `AsmParserCat` and `AsmWriterCat` static.
- Use enumerate() in `ComputeInstrsByEnum` to assign inst enums.
- Use range-based for loops.



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