[all-commits] [llvm/llvm-project] aca08a: [TableGen] Add assert to validate `Objects` list f...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Jan 27 13:45:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aca08a8515d48baff48328df5d54300fc7180bea
      https://github.com/llvm/llvm-project/commit/aca08a8515d48baff48328df5d54300fc7180bea
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-01-27 (Mon, 27 Jan 2025)

  Changed paths:
    M llvm/include/llvm/Target/Target.td
    M llvm/lib/TableGen/Main.cpp
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/test/TableGen/BitsInit.td
    A llvm/test/TableGen/BitsInitErrors.td
    M llvm/test/TableGen/HwModeSelect.td
    M llvm/utils/TableGen/Common/CodeGenHwModes.cpp
    M mlir/test/mlir-tblgen/attr-or-type-builder-invalid.td

  Log Message:
  -----------
  [TableGen] Add assert to validate `Objects` list for `HwModeSelect` (#123794)

- Bail out of TableGen if any asserts fail before running the backend. 
- Add asserts to validate that the `Objects` and `Modes` lists for
various `HwModeSelect` subclasses are of same length.
 - Eliminate equivalent check in CodeGenHWModes.cpp



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