[all-commits] [llvm/llvm-project] 8cadfd: [TableGen] Fix CodeGenRegisterClass::hasType for s...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Jul 7 09:38:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cadfdf8e7a8e93208a3426f9a8f03d17484424d
      https://github.com/llvm/llvm-project/commit/8cadfdf8e7a8e93208a3426f9a8f03d17484424d
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/utils/TableGen/CodeGenRegisters.cpp
    M llvm/utils/TableGen/CodeGenRegisters.h

  Log Message:
  -----------
  [TableGen] Fix CodeGenRegisterClass::hasType for simple-type arguments

The `hasType` function may be given a type that has been modified from
its original form (in particular made "simple", due to a predicate).
Make sure that such a type is still recognized as associated with a
register class, if the class contains it under any hw-mode.
This is somewhat optimistic though, since there is no information as
to where that simple type originated from.




More information about the All-commits mailing list