[all-commits] [llvm/llvm-project] d705e7: [NFC][TableGen] Code cleanup in CodeGenMapTable `E...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Fri Feb 7 11:48:10 PST 2025


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

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

  Log Message:
  -----------
  [NFC][TableGen] Code cleanup in CodeGenMapTable `EmitMapTable` (#126157)

- Emit C++17 nested namespaces.
- Shorten the binary search table name to just `Table` since its
declared in the scope of each search function.
- Use `using namespace XXX` in the search function to avoid emitting the
Target Inst Namespace prefix in the table entries.
- Add short-cut handling of `TableSize` == 0 case (verified in Hexagon
target).
- Use `SetVector` in `ColFieldValueMap` to get automatic deduplication
and eliminate manual deduplication code.
- Use range 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