[all-commits] [llvm/llvm-project] 8a4451: [llvm-tblgen] Support conditional definitions usin...

Philip Reames via All-commits all-commits at lists.llvm.org
Fri Mar 10 16:03:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a4451cdc3fffe121e5b5a0bddb7f44457dd0753
      https://github.com/llvm/llvm-project/commit/8a4451cdc3fffe121e5b5a0bddb7f44457dd0753
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M llvm/lib/TableGen/Record.cpp
    A llvm/test/TableGen/if-unresolved-cast.td

  Log Message:
  -----------
  [llvm-tblgen] Support conditional definitions using !casts clauses

This is a follow on to D145108. This started as simply fixing the crash on an error case reported against that change, but I think this also ends up fixing the original reported issue (https://github.com/llvm/llvm-project/issues/49830) as well. More accurately, D145108 fixed the case where the cast resolves to an existing record, and this change fixes the case where the named record doesn't exist.

Differential Revision: https://reviews.llvm.org/D145711




More information about the All-commits mailing list