[all-commits] [llvm/llvm-project] 035486: [NFC][TableGen] Remove small heap allocations in S...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Thu Jul 10 09:04:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0354867cdea411dc74847f1e9c5d983aea5d7ea8
      https://github.com/llvm/llvm-project/commit/0354867cdea411dc74847f1e9c5d983aea5d7ea8
  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] Remove small heap allocations in SearchableTableEmitter (#147845)

Change `GenericEnum` to not heap allocate its entries. Instead stash
them directly in the `Entries` vector. Change `EntryMap` to hold an
index as opposed to a pointer to the entry (the original reason why they
were unique_ptr).



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