[all-commits] [llvm/llvm-project] d20c29: [TableGen] Make getRegisterValueType stricter abou...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Apr 23 23:29:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d20c29d9964188dabfaef9c510e59b895f4ad869
      https://github.com/llvm/llvm-project/commit/d20c29d9964188dabfaef9c510e59b895f4ad869
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-23 (Sun, 23 Apr 2023)

  Changed paths:
    M llvm/utils/TableGen/DAGISelMatcherGen.cpp

  Log Message:
  -----------
  [TableGen] Make getRegisterValueType stricter about HwModes.

I don't think this code would work correctly if the register class
used used HwModes. Add asserts to make sure it's not used with HwModes.

Also fix a long outdated comment on the function.




More information about the All-commits mailing list