[all-commits] [llvm/llvm-project] 04540f: [TableGen] Print record location when record asser...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Fri Oct 4 05:46:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04540fac5bfa6c1630e84ccdc7f817bd8bc1a986
      https://github.com/llvm/llvm-project/commit/04540fac5bfa6c1630e84ccdc7f817bd8bc1a986
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M llvm/include/llvm/TableGen/Error.h
    M llvm/lib/TableGen/Error.cpp
    M llvm/lib/TableGen/Record.cpp
    M llvm/test/TableGen/assert.td

  Log Message:
  -----------
  [TableGen] Print record location when record asserts fail (#111029)

When record assertions fail, print an error message with the record's
location, so it's easier to see where the record that caused the assert
to fail was instantiated. This is useful when the assert condition in a
class depends on a template parameter, so we need to know the context of
the definition to determine why the assert failed.

Also enhanced the assert.td test to check for these context messages,
and also add checks for some assert failures that were missing in the
test.



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